WechatVideoShopGoodsSetting.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?php
  2. namespace addons\WechatVideoShop\common\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "qimall_addons_wechat_video_shop_goods_setting".
  6. *
  7. * @property int $id 订单项ID
  8. * @property int $mall_id 商城ID
  9. * @property int $status 状态[-1:删除;0:禁用;1启用]
  10. * @property int $created_at 创建时间
  11. * @property int $updated_at 更新时间
  12. * @property int $item_id 商品ID
  13. * @property int $is_enable 商品ID
  14. * @property array $config 配置信息
  15. */
  16. class WechatVideoShopGoodsSetting extends \common\models\base\BaseActiveRecord
  17. {
  18. /**
  19. * {@inheritdoc}
  20. */
  21. public static function tableName()
  22. {
  23. return 'qimall_addons_wechat_video_shop_goods_setting';
  24. }
  25. /**
  26. * {@inheritdoc}
  27. */
  28. public function rules()
  29. {
  30. return [
  31. [['mall_id', 'status', 'created_at', 'updated_at', 'item_id', 'is_enable'], 'integer'],
  32. [['config'], 'safe'],
  33. ];
  34. }
  35. /**
  36. * {@inheritdoc}
  37. */
  38. public function attributeLabels()
  39. {
  40. return [
  41. 'id' => 'ID',
  42. 'mall_id' => 'Mall ID',
  43. 'status' => 'Status',
  44. 'created_at' => 'Created At',
  45. 'updated_at' => 'Updated At',
  46. 'goods_id' => 'Goods ID',
  47. 'config' => 'Config',
  48. ];
  49. }
  50. }