ReservationServiceWorkTime.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?php
  2. namespace addons\ReservationService\common\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "qimall_addons_reservation_service_work_time".
  6. *
  7. * @property int $id ID
  8. * @property int $created_at 创建时间
  9. * @property int $updated_at 更新时间
  10. * @property int $mall_id 商城ID
  11. * @property int $status 状态0禁用,-1删除,1正常
  12. * @property int $user_id 用户ID
  13. * @property int $week_day 工作日,0-周日,1-周一
  14. * @property int $start_time 开始时间,小时*100+分钟
  15. * @property int $end_time 结束时间,小时*100+分钟
  16. * @property string $text 显示时间
  17. */
  18. class ReservationServiceWorkTime extends \common\models\base\BaseActiveRecord
  19. {
  20. /**
  21. * {@inheritdoc}
  22. */
  23. public static function tableName()
  24. {
  25. return 'qimall_addons_reservation_service_work_time';
  26. }
  27. /**
  28. * {@inheritdoc}
  29. */
  30. public function rules()
  31. {
  32. return [
  33. [['created_at', 'updated_at', 'mall_id', 'status', 'user_id', 'week_day','start_time','end_time'], 'integer'],
  34. [['mall_id'], 'required'],
  35. [['text'], 'string', 'max' => 50],
  36. ];
  37. }
  38. /**
  39. * {@inheritdoc}
  40. */
  41. public function attributeLabels()
  42. {
  43. return [
  44. 'id' => 'ID',
  45. 'created_at' => 'Created At',
  46. 'updated_at' => 'Updated At',
  47. 'mall_id' => 'Mall ID',
  48. 'status' => 'Status',
  49. 'user_id' => 'User ID',
  50. 'week_day' => 'Week Day',
  51. 'hours' => 'Hours',
  52. ];
  53. }
  54. }