AccountCate.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <?php
  2. namespace addons\WechatMini\common\models\video\account;
  3. use Yii;
  4. /**
  5. * This is the model class for table "{{%addon_wechat_mini_video_account_cate}}".
  6. *
  7. * @property int $id
  8. * @property int $merchant_id
  9. * @property int|null $store_id 店铺ID
  10. * @property int $first_cat_id 一级类目
  11. * @property string|null $first_cat_name 一级类目名称
  12. * @property int $second_cat_id 二级类目
  13. * @property string|null $second_cat_name 二级类目名称
  14. * @property int|null $third_cat_id 三级类目
  15. * @property string|null $third_cat_name 三级类目名称
  16. */
  17. class AccountCate extends \yii\db\ActiveRecord
  18. {
  19. /**
  20. * {@inheritdoc}
  21. */
  22. public static function tableName()
  23. {
  24. return '{{%addon_wechat_mini_video_account_cate}}';
  25. }
  26. /**
  27. * {@inheritdoc}
  28. */
  29. public function rules()
  30. {
  31. return [
  32. [['merchant_id', 'store_id', 'first_cat_id', 'second_cat_id', 'third_cat_id'], 'integer'],
  33. [['first_cat_name', 'second_cat_name', 'third_cat_name'], 'string', 'max' => 100],
  34. ];
  35. }
  36. /**
  37. * {@inheritdoc}
  38. */
  39. public function attributeLabels()
  40. {
  41. return [
  42. 'id' => 'ID',
  43. 'merchant_id' => 'Merchant ID',
  44. 'store_id' => '店铺ID',
  45. 'first_cat_id' => '一级类目',
  46. 'first_cat_name' => '一级类目名称',
  47. 'second_cat_id' => '二级类目',
  48. 'second_cat_name' => '二级类目名称',
  49. 'third_cat_id' => '三级类目',
  50. 'third_cat_name' => '三级类目名称',
  51. ];
  52. }
  53. }
粤ICP备19079148号