AccountBrand.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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_brand}}".
  6. *
  7. * @property int $id
  8. * @property int|null $merchant_id
  9. * @property int|null $store_id 店铺ID
  10. * @property int|null $brand_id 品牌ID
  11. * @property string|null $brand_wording 品牌名称
  12. * @property int|null $status 状态(-1:已删除,0:禁用,1:正常)
  13. * @property int|null $created_at 创建时间
  14. * @property int|null $updated_at 修改时间
  15. */
  16. class AccountBrand extends \yii\db\ActiveRecord
  17. {
  18. /**
  19. * {@inheritdoc}
  20. */
  21. public static function tableName()
  22. {
  23. return '{{%addon_wechat_mini_video_account_brand}}';
  24. }
  25. /**
  26. * {@inheritdoc}
  27. */
  28. public function rules()
  29. {
  30. return [
  31. [['merchant_id', 'store_id', 'brand_id', 'status', 'created_at', 'updated_at'], 'integer'],
  32. [['brand_wording'], 'string', 'max' => 255],
  33. ];
  34. }
  35. /**
  36. * {@inheritdoc}
  37. */
  38. public function attributeLabels()
  39. {
  40. return [
  41. 'id' => 'ID',
  42. 'merchant_id' => 'Merchant ID',
  43. 'store_id' => '店铺ID',
  44. 'brand_id' => '品牌ID',
  45. 'brand_wording' => '品牌名称',
  46. 'status' => '状态',
  47. 'created_at' => '创建时间',
  48. 'updated_at' => '修改时间',
  49. ];
  50. }
  51. }
粤ICP备19079148号