AsusgConditions.php 981 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. namespace app\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "asusg_conditions".
  6. *
  7. * @property int $job_id
  8. * @property int $finished_job_id
  9. * @property int $started
  10. */
  11. class AsusgConditions extends \yii\db\ActiveRecord
  12. {
  13. /**
  14. * {@inheritdoc}
  15. */
  16. public static function tableName()
  17. {
  18. return 'asusg_conditions';
  19. }
  20. /**
  21. * {@inheritdoc}
  22. */
  23. public function rules()
  24. {
  25. return [
  26. [['job_id', 'finished_job_id'], 'required'],
  27. [['job_id', 'finished_job_id', 'started'], 'integer'],
  28. [['job_id', 'finished_job_id'], 'unique', 'targetAttribute' => ['job_id', 'finished_job_id']],
  29. ];
  30. }
  31. /**
  32. * {@inheritdoc}
  33. */
  34. public function attributeLabels()
  35. {
  36. return [
  37. 'job_id' => 'Job ID',
  38. 'finished_job_id' => 'Finished Job ID',
  39. 'started' => 'Started',
  40. ];
  41. }
  42. }