|
- <?php
-
- namespace backend\modules\api\models;
-
- use yii\db\ActiveRecord;
-
- /**
- * This is the model class for table "run_hotel".
- *
- * @property integer $ID
- * @property integer $CREATE_USER_ID
- * @property string $CREATE_TIME
- * @property integer $UPDATE_USER_ID
- * @property string $UPDATE_TIME
- * @property integer $HOTEL_ID
- * @property integer $BASE_ROOM_TYPE
- * @property string $RUN_DATE
- * @property integer $STOCK_TYPE
- * @property integer $REMAINING_COUNT
- * @property integer $SALED_COUNT
- * @property integer $IS_ONSALE
- */
- class RunHotel extends ActiveRecord
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return 'run_hotel';
- }
-
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['CREATE_USER_ID', 'UPDATE_USER_ID', 'HOTEL_ID', 'BASE_ROOM_TYPE', 'STOCK_TYPE', 'REMAINING_COUNT', 'SALED_COUNT', 'IS_ONSALE'], 'integer'],
- [['CREATE_TIME', 'RUN_DATE'], 'required'],
- [['UPDATE_TIME'], 'safe'],
- [['CREATE_TIME', 'RUN_DATE'], 'string', 'max' => 20],
- ];
- }
-
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- 'ID' => 'ID',
- 'CREATE_USER_ID' => '记录创建用户ID',
- 'CREATE_TIME' => '记录创建时间',
- 'UPDATE_USER_ID' => '记录最后更新用户ID',
- 'UPDATE_TIME' => '记录最后更新时间',
- 'HOTEL_ID' => '酒店ID',
- 'BASE_ROOM_TYPE' => '基础房型',
- 'RUN_DATE' => '售卖日期',
- 'STOCK_TYPE' => '库存类型',
- 'REMAINING_COUNT' => '库存剩余数量',
- 'SALED_COUNT' => '已售数量',
- 'IS_ONSALE' => ' 上下线标志 1:上线 0:下线',
- ];
- }
- }
|