xhActiveTicketClass.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?php
  2. namespace common\models;
  3. /**
  4. * This is the model class for table "xhActiveTicketClass".
  5. *
  6. * @property int $id
  7. * @property int $activeId 活动id
  8. * @property int $merchantId 商家id
  9. * @property string $name 票名
  10. * @property string $price 价格
  11. * @property string $createTime 创建时间
  12. * @property string $updateTime 修改时间
  13. */
  14. class xhActiveTicketClass extends xhBaseModel
  15. {
  16. /**
  17. * @inheritdoc
  18. */
  19. public static function tableName()
  20. {
  21. return 'xhActiveTicketClass';
  22. }
  23. /**
  24. * @inheritdoc
  25. */
  26. public function rules()
  27. {
  28. return [
  29. [['activeId', 'merchantId'], 'integer'],
  30. [['price'], 'number'],
  31. [['createTime'], 'required'],
  32. [['createTime', 'updateTime'], 'safe'],
  33. [['name'], 'string', 'max' => 20],
  34. ];
  35. }
  36. /**
  37. * @inheritdoc
  38. */
  39. public function attributeLabels()
  40. {
  41. return [
  42. 'id' => 'ID',
  43. 'activeId' => 'Active ID',
  44. 'merchantId' => 'Merchant ID',
  45. 'name' => 'Name',
  46. 'price' => 'Price',
  47. 'createTime' => 'Create Time',
  48. 'updateTime' => 'Update Time',
  49. ];
  50. }
  51. }