| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- <?php
- namespace addons\UserGift\common\models;
- use Yii;
- /**
- * This is the model class for table "{{%addons_user_gift_statistics}}".
- *
- * @property int $id
- * @property int $mall_id 商城id
- * @property int $gift_type 礼包类型
- * @property string|null $coupon 优惠券详细
- * @property int|null $coupon_num 优惠券数量
- * @property int|null $actual_coupon_num 实发优惠券数量
- * @property float|null $score 应发积分
- * @property float|null $actual_score 实发积分
- * @property float|null $balance 应发余额
- * @property float|null $actual_balance 实发余额
- * @property int $grant_num 发放总人数
- * @property int $status 状态[-1:删除;0:禁用;1启用]
- * @property int $created_at 创建时间
- * @property int $updated_at 更新时间
- */
- class UserGiftStatistics extends \common\models\base\BaseActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return '{{%addons_user_gift_statistics}}';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['mall_id', 'coupon_num', 'actual_coupon_num', 'grant_num', 'status', 'created_at', 'updated_at'], 'integer'],
- [['score', 'actual_score', 'balance', 'actual_balance'], 'number'],
- [['gift_type'], 'string', 'max' => 20],
- [['coupon'], 'string', 'max' => 1024],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'mall_id' => '商城id',
- 'gift_type' => '礼包类型',
- 'coupon' => '优惠券详细',
- 'coupon_num' => '优惠券数量',
- 'actual_coupon_num' => '实发优惠券数量',
- 'score' => '应发积分',
- 'actual_score' => '实发积分',
- 'balance' => '应发余额',
- 'actual_balance' => '实发余额',
- 'grant_num' => '发放总人数',
- 'status' => '状态[-1:删除;0:禁用;1启用]',
- 'created_at' => '创建时间',
- 'updated_at' => '更新时间',
- ];
- }
- }
|