MarketingCate.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?php
  2. namespace addons\TinyShop\common\models\marketing;
  3. use common\behaviors\MerchantBehavior;
  4. use Yii;
  5. /**
  6. * This is the model class for table "{{%addon_tiny_shop_marketing_cate}}".
  7. *
  8. * @property int $id 主键
  9. * @property int|null $merchant_id 店铺ID
  10. * @property int|null $cate_id 分类ID
  11. * @property int|null $marketing_id 对应活动
  12. * @property string|null $marketing_type 活动类型
  13. * @property int|null $prediction_time 预告时间
  14. * @property int|null $start_time 开始时间
  15. * @property int|null $end_time 结束时间
  16. * @property int|null $status 状态
  17. */
  18. class MarketingCate extends \yii\db\ActiveRecord
  19. {
  20. use MerchantBehavior;
  21. /**
  22. * {@inheritdoc}
  23. */
  24. public static function tableName()
  25. {
  26. return '{{%addon_tiny_shop_marketing_cate}}';
  27. }
  28. /**
  29. * {@inheritdoc}
  30. */
  31. public function rules()
  32. {
  33. return [
  34. [['merchant_id', 'cate_id', 'marketing_id', 'prediction_time', 'start_time', 'end_time', 'status'], 'integer'],
  35. [['marketing_type'], 'string', 'max' => 60],
  36. ];
  37. }
  38. /**
  39. * {@inheritdoc}
  40. */
  41. public function attributeLabels()
  42. {
  43. return [
  44. 'id' => '主键',
  45. 'merchant_id' => '店铺ID',
  46. 'cate_id' => '分类ID',
  47. 'marketing_id' => '对应活动',
  48. 'marketing_type' => '活动类型',
  49. 'prediction_time' => '预告时间',
  50. 'start_time' => '开始时间',
  51. 'end_time' => '结束时间',
  52. 'status' => '状态',
  53. ];
  54. }
  55. }
粤ICP备19079148号