AsusgJob.php 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?php
  2. namespace app\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "asusg_job".
  6. *
  7. * @property int $id
  8. * @property int $smopp_task_id
  9. * @property int $type_id
  10. * @property int $order
  11. * @property int $employee_id
  12. * @property string $created
  13. * @property string $assigned
  14. * @property string $accepted
  15. * @property string $finished
  16. * @property string $smopp_task_created
  17. */
  18. class AsusgJob extends \yii\db\ActiveRecord
  19. {
  20. /**
  21. * {@inheritdoc}
  22. */
  23. public static function tableName()
  24. {
  25. return 'asusg_job';
  26. }
  27. /**
  28. * {@inheritdoc}
  29. */
  30. public function rules()
  31. {
  32. return [
  33. [['smopp_task_id', 'type_id', 'order', 'employee_id'], 'integer'],
  34. [['type_id'], 'required'],
  35. [['created', 'assigned', 'accepted', 'finished', 'smopp_task_created'], 'safe'],
  36. ];
  37. }
  38. /**
  39. * {@inheritdoc}
  40. */
  41. public function attributeLabels()
  42. {
  43. return [
  44. 'id' => 'ID',
  45. 'smopp_task_id' => 'Smopp Task ID',
  46. 'type_id' => 'Type ID',
  47. 'order' => 'Order',
  48. 'employee_id' => 'Employee ID',
  49. 'created' => 'Created',
  50. 'assigned' => 'Assigned',
  51. 'accepted' => 'Accepted',
  52. 'finished' => 'Finished',
  53. 'smopp_task_created' => 'Smopp Task Created',
  54. ];
  55. }
  56. }