You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

64 lines
1.7 KiB

  1. <?php
  2. namespace backend\modules\hotel\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "opera_hotel_gift".
  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 $CANCEL_FLAG
  13. * @property integer $HOTEL_ID
  14. * @property string $GIFT_NAME
  15. * @property string $GIFT_CONTENT
  16. */
  17. class OperaHotelGift extends \yii\db\ActiveRecord
  18. {
  19. /**
  20. * @inheritdoc
  21. */
  22. public static function tableName()
  23. {
  24. return 'opera_hotel_gift';
  25. }
  26. /**
  27. * @inheritdoc
  28. */
  29. public function rules()
  30. {
  31. return [
  32. [['CREATE_USER_ID', 'UPDATE_USER_ID', 'CANCEL_FLAG', 'HOTEL_ID'], 'integer'],
  33. [['UPDATE_TIME'], 'safe'],
  34. [['HOTEL_ID', 'GIFT_NAME', 'GIFT_CONTENT'], 'required'],
  35. [['CREATE_TIME'], 'string', 'max' => 20],
  36. [['GIFT_NAME'], 'string', 'max' => 30],
  37. [['GIFT_CONTENT'], 'string', 'max' => 255],
  38. ];
  39. }
  40. /**
  41. * @inheritdoc
  42. *
  43. */
  44. public function attributeLabels()
  45. {
  46. return [
  47. 'ID' => Yii::t('app', 'ID'),
  48. 'CREATE_USER_ID' => Yii::t('app', '记录创建用户ID'),
  49. 'CREATE_TIME' => Yii::t('app', '记录创建时间'),
  50. 'UPDATE_USER_ID' => Yii::t('app', '记录最后更新用户ID'),
  51. 'UPDATE_TIME' => Yii::t('app', '记录最后更新时间'),
  52. 'CANCEL_FLAG' => Yii::t('app', '记录有效性标记,0:记录有效;1:记录已删除'),
  53. 'HOTEL_ID' => Yii::t('app', '酒店ID'),
  54. 'GIFT_NAME' => Yii::t('app', '礼盒名称'),
  55. 'GIFT_CONTENT' => Yii::t('app', '礼盒内容'),
  56. ];
  57. }
  58. }