|
- <?php
-
- namespace backend\modules\api\models;
-
- use Yii;
-
- /**
- * This is the model class for table "opera_hotel_log".
- *
- * @property integer $ID
- * @property integer $CREATE_USER_ID
- * @property string $CREATE_TIME
- * @property integer $LOG_TYPE
- * @property integer $HOTEL_ID
- * @property integer $PARENT_ROOM_TYPE
- * @property integer $ROOM_TYPE
- * @property string $LOG_DESC
- * @property integer $ORDER_ID
- */
- class OperaHotelLog extends \yii\db\ActiveRecord
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return 'opera_hotel_log';
- }
-
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['CREATE_USER_ID', 'LOG_TYPE', 'HOTEL_ID', 'PARENT_ROOM_TYPE', 'ROOM_TYPE', 'ORDER_ID'], 'integer'],
- [['CREATE_TIME'], 'required'],
- [['CREATE_TIME'], 'string', 'max' => 20],
- [['LOG_DESC'], 'string', 'max' => 200],
- ];
- }
-
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- 'ID' => 'ID',
- 'CREATE_USER_ID' => '记录创建用户ID',
- 'CREATE_TIME' => '记录创建时间',
- 'LOG_TYPE' => '日志类型 1:酒店操作日志 2:酒店房型操作日志 3:订单操作日志',
- 'HOTEL_ID' => '酒店ID,对应opera_hotel.hotel_id',
- 'PARENT_ROOM_TYPE' => '基础房型',
- 'ROOM_TYPE' => '子房型,对应opera_hotel_room.room_type',
- 'LOG_DESC' => '日志描述',
- 'ORDER_ID' => 'Order ID',
- ];
- }
- }
|