| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- <?php
- namespace addons\ReservationService\common\models;
- use Yii;
- /**
- * This is the model class for table "{{%addons_reservation_service_user_book_time}}".
- *
- * @property int $id ID
- * @property int $mall_id 商城ID
- * @property int $user_id 用户ID
- * @property int $status 状态;1正常,0禁用,-1删除
- * @property int $start_time 预约开始时间戳
- * @property int|null $end_time 预约结束时间戳
- * @property int|null $order_id 预约对应订单id
- * @property int $created_at 创建时间
- * @property int $updated_at 更新时间
- */
- class ReservationServiceUserBookTime extends \common\models\base\BaseActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return '{{%addons_reservation_service_user_book_time}}';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['mall_id', 'user_id', 'status', 'start_time', 'end_time', 'order_id', 'created_at', 'updated_at'], 'integer'],
- [['user_id'], 'required'],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'mall_id' => 'Mall ID',
- 'user_id' => 'User ID',
- 'status' => 'Status',
- 'start_time' => 'Start Time',
- 'end_time' => 'End Time',
- 'order_id' => 'Order ID',
- 'created_at' => 'Created At',
- 'updated_at' => 'Updated At',
- ];
- }
- }
|