1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <?php
- namespace app\models;
- use Yii;
- /**
- * This is the model class for table "asusg_conditions".
- *
- * @property int $job_id
- * @property int $finished_job_id
- * @property int $started
- */
- class AsusgConditions extends \yii\db\ActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return 'asusg_conditions';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['job_id', 'finished_job_id'], 'required'],
- [['job_id', 'finished_job_id', 'started'], 'integer'],
- [['job_id', 'finished_job_id'], 'unique', 'targetAttribute' => ['job_id', 'finished_job_id']],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'job_id' => 'Job ID',
- 'finished_job_id' => 'Finished Job ID',
- 'started' => 'Started',
- ];
- }
- }
|