| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- <?php
- namespace addons\WechatVideoShop\common\models;
- use Yii;
- /**
- * This is the model class for table "qimall_addons_wechat_video_shop_express_template".
- *
- * @property int $id
- * @property int $mall_id
- * @property int $status 状态[1启用 0禁用 -1删除]
- * @property int $created_at 创建时间
- * @property int $updated_at 更新事件
- * @property int $template_id 模板ID
- * @property int $third_template_id 第三方模板ID
- * @property array $content 模板内容
- * @property int $is_free 是否包邮
- * @property int $shop_id 是否包邮
- * @property int $goods_id 是否包邮
- * @property string $t_hash 是否包邮
- */
- class WechatVideoShopExpressTemplate extends \common\models\base\BaseActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return 'qimall_addons_wechat_video_shop_express_template';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['mall_id', 'status', 'created_at', 'updated_at', 'template_id', 'third_template_id', 'is_free', 'shop_id', 'goods_id'], 'integer'],
- [['content'], 'required'],
- [['content'], 'safe'],
- [['t_hash'], 'string', 'max' => 32],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'mall_id' => 'Mall ID',
- 'status' => 'Status',
- 'created_at' => 'Created At',
- 'updated_at' => 'Updated At',
- 'template_id' => 'Template ID',
- 'third_template_id' => 'Third Template ID',
- 'content' => 'Content',
- 'is_free' => 'Is Free',
- ];
- }
- }
|