ReservationServiceUserBookTime.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?php
  2. namespace addons\ReservationService\common\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "{{%addons_reservation_service_user_book_time}}".
  6. *
  7. * @property int $id ID
  8. * @property int $mall_id 商城ID
  9. * @property int $user_id 用户ID
  10. * @property int $status 状态;1正常,0禁用,-1删除
  11. * @property int $start_time 预约开始时间戳
  12. * @property int|null $end_time 预约结束时间戳
  13. * @property int|null $order_id 预约对应订单id
  14. * @property int $created_at 创建时间
  15. * @property int $updated_at 更新时间
  16. */
  17. class ReservationServiceUserBookTime extends \common\models\base\BaseActiveRecord
  18. {
  19. /**
  20. * {@inheritdoc}
  21. */
  22. public static function tableName()
  23. {
  24. return '{{%addons_reservation_service_user_book_time}}';
  25. }
  26. /**
  27. * {@inheritdoc}
  28. */
  29. public function rules()
  30. {
  31. return [
  32. [['mall_id', 'user_id', 'status', 'start_time', 'end_time', 'order_id', 'created_at', 'updated_at'], 'integer'],
  33. [['user_id'], 'required'],
  34. ];
  35. }
  36. /**
  37. * {@inheritdoc}
  38. */
  39. public function attributeLabels()
  40. {
  41. return [
  42. 'id' => 'ID',
  43. 'mall_id' => 'Mall ID',
  44. 'user_id' => 'User ID',
  45. 'status' => 'Status',
  46. 'start_time' => 'Start Time',
  47. 'end_time' => 'End Time',
  48. 'order_id' => 'Order ID',
  49. 'created_at' => 'Created At',
  50. 'updated_at' => 'Updated At',
  51. ];
  52. }
  53. }