WechatVideoShopExpressTemplate.php 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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_express_template".
  6. *
  7. * @property int $id
  8. * @property int $mall_id
  9. * @property int $status 状态[1启用 0禁用 -1删除]
  10. * @property int $created_at 创建时间
  11. * @property int $updated_at 更新事件
  12. * @property int $template_id 模板ID
  13. * @property int $third_template_id 第三方模板ID
  14. * @property array $content 模板内容
  15. * @property int $is_free 是否包邮
  16. * @property int $shop_id 是否包邮
  17. * @property int $goods_id 是否包邮
  18. * @property string $t_hash 是否包邮
  19. */
  20. class WechatVideoShopExpressTemplate extends \common\models\base\BaseActiveRecord
  21. {
  22. /**
  23. * {@inheritdoc}
  24. */
  25. public static function tableName()
  26. {
  27. return 'qimall_addons_wechat_video_shop_express_template';
  28. }
  29. /**
  30. * {@inheritdoc}
  31. */
  32. public function rules()
  33. {
  34. return [
  35. [['mall_id', 'status', 'created_at', 'updated_at', 'template_id', 'third_template_id', 'is_free', 'shop_id', 'goods_id'], 'integer'],
  36. [['content'], 'required'],
  37. [['content'], 'safe'],
  38. [['t_hash'], 'string', 'max' => 32],
  39. ];
  40. }
  41. /**
  42. * {@inheritdoc}
  43. */
  44. public function attributeLabels()
  45. {
  46. return [
  47. 'id' => 'ID',
  48. 'mall_id' => 'Mall ID',
  49. 'status' => 'Status',
  50. 'created_at' => 'Created At',
  51. 'updated_at' => 'Updated At',
  52. 'template_id' => 'Template ID',
  53. 'third_template_id' => 'Third Template ID',
  54. 'content' => 'Content',
  55. 'is_free' => 'Is Free',
  56. ];
  57. }
  58. }