| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- <?php
- namespace addons\ReservationService\common\models;
- use Yii;
- /**
- * This is the model class for table "qimall_addons_reservation_service_work_time".
- *
- * @property int $id ID
- * @property int $created_at 创建时间
- * @property int $updated_at 更新时间
- * @property int $mall_id 商城ID
- * @property int $status 状态0禁用,-1删除,1正常
- * @property int $user_id 用户ID
- * @property int $week_day 工作日,0-周日,1-周一
- * @property int $start_time 开始时间,小时*100+分钟
- * @property int $end_time 结束时间,小时*100+分钟
- * @property string $text 显示时间
- */
- class ReservationServiceWorkTime extends \common\models\base\BaseActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return 'qimall_addons_reservation_service_work_time';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['created_at', 'updated_at', 'mall_id', 'status', 'user_id', 'week_day','start_time','end_time'], 'integer'],
- [['mall_id'], 'required'],
- [['text'], 'string', 'max' => 50],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'created_at' => 'Created At',
- 'updated_at' => 'Updated At',
- 'mall_id' => 'Mall ID',
- 'status' => 'Status',
- 'user_id' => 'User ID',
- 'week_day' => 'Week Day',
- 'hours' => 'Hours',
- ];
- }
- }
|