| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- <?php
- /**
- * 厦门云联储网络科技有限公司
- * https://www.baokuaiyun.com
- * Copyright (c) 2023 爆块云 All rights reserved.
- */
- namespace app\models;
- use Yii;
- /**
- * This is the model class for table "{{%user_card}}".
- *
- * @property int $id
- * @property int|null $store_id
- * @property int|null $user_id 用户ID
- * @property int|null $card_id 卡券ID
- * @property string|null $card_name 卡券名称
- * @property string|null $card_pic_url
- * @property string|null $card_content 卡券描述
- * @property int|null $is_use 是否使用 0--未使用 1--已使用
- * @property int|null $is_delete
- * @property int|null $created_at
- * @property int|null $clerk_id 核销人id
- * @property int|null $shop_id 店铺ID
- * @property int|null $clerk_time 核销时间
- * @property int $order_id 发放卡券的订单id
- * @property int $goods_id 商品ID
- */
- class UserCard extends \yii\db\ActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return '{{%user_card}}';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['store_id', 'user_id', 'card_id', 'is_use', 'is_delete', 'created_at', 'clerk_id', 'shop_id', 'clerk_time',
- 'order_id', 'goods_id'], 'integer'],
- [['card_content'], 'string'],
- [['card_name'], 'string', 'max' => 255],
- [['card_pic_url'], 'string', 'max' => 2048],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'store_id' => 'Store ID',
- 'user_id' => '用户ID',
- 'card_id' => '卡券ID',
- 'card_name' => '卡券名称',
- 'card_pic_url' => 'Card Pic Url',
- 'card_content' => '卡券描述',
- 'is_use' => '是否使用 0--未使用 1--已使用',
- 'is_delete' => 'Is Delete',
- 'created_at' => 'Created At',
- 'clerk_id' => '核销人id',
- 'shop_id' => '店铺ID',
- 'clerk_time' => ' 核销时间',
- 'order_id' => '发放卡券的订单id',
- 'goods_id' => '商品ID',
- ];
- }
- }
|