No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 
 
 
 

67 líneas
1.8 KiB

  1. <?php
  2. namespace backend\modules\api\models;
  3. use yii\db\ActiveRecord;
  4. /**
  5. * This is the model class for table "run_hotel".
  6. *
  7. * @property integer $ID
  8. * @property integer $CREATE_USER_ID
  9. * @property string $CREATE_TIME
  10. * @property integer $UPDATE_USER_ID
  11. * @property string $UPDATE_TIME
  12. * @property integer $HOTEL_ID
  13. * @property integer $BASE_ROOM_TYPE
  14. * @property string $RUN_DATE
  15. * @property integer $STOCK_TYPE
  16. * @property integer $REMAINING_COUNT
  17. * @property integer $SALED_COUNT
  18. * @property integer $IS_ONSALE
  19. */
  20. class RunHotel extends ActiveRecord
  21. {
  22. /**
  23. * @inheritdoc
  24. */
  25. public static function tableName()
  26. {
  27. return 'run_hotel';
  28. }
  29. /**
  30. * @inheritdoc
  31. */
  32. public function rules()
  33. {
  34. return [
  35. [['CREATE_USER_ID', 'UPDATE_USER_ID', 'HOTEL_ID', 'BASE_ROOM_TYPE', 'STOCK_TYPE', 'REMAINING_COUNT', 'SALED_COUNT', 'IS_ONSALE'], 'integer'],
  36. [['CREATE_TIME', 'RUN_DATE'], 'required'],
  37. [['UPDATE_TIME'], 'safe'],
  38. [['CREATE_TIME', 'RUN_DATE'], 'string', 'max' => 20],
  39. ];
  40. }
  41. /**
  42. * @inheritdoc
  43. */
  44. public function attributeLabels()
  45. {
  46. return [
  47. 'ID' => 'ID',
  48. 'CREATE_USER_ID' => '记录创建用户ID',
  49. 'CREATE_TIME' => '记录创建时间',
  50. 'UPDATE_USER_ID' => '记录最后更新用户ID',
  51. 'UPDATE_TIME' => '记录最后更新时间',
  52. 'HOTEL_ID' => '酒店ID',
  53. 'BASE_ROOM_TYPE' => '基础房型',
  54. 'RUN_DATE' => '售卖日期',
  55. 'STOCK_TYPE' => '库存类型',
  56. 'REMAINING_COUNT' => '库存剩余数量',
  57. 'SALED_COUNT' => '已售数量',
  58. 'IS_ONSALE' => ' 上下线标志 1:上线 0:下线',
  59. ];
  60. }
  61. }