| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- <?php
- namespace addons\SignIn\common\models;
- use common\models\base\BaseActiveRecord;
- use Exception;
- use Yii;
- /**
- * This is the model class for table "{{%addons_user_sign_in_award}}".
- * @property int $id
- * @property int $mall_id
- * @property int $user_id
- * @property int $score_num 累计积分奖励数量
- * @property int $coupon_num 累计优惠券奖励数量
- * @property int $type 1:积分,2:优惠券
- * @property int $total_sign_in 累计签到天数
- * @property int $created_at 创建时间
- * @property int $updated_at 编辑时间
- */
- class UserSignInAward extends BaseActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return '{{%addons_user_sign_in_award}}';
- }
- /**
- * {@inheritdoc}
- */
- public function rules(){
- return [
- [['mall_id', 'user_id'], 'required'],
- [['mall_id', 'user_id', 'score_num', 'coupon_num', 'total_sign_in', 'sign_at', 'status', 'created_at', 'updated_at'], 'integer'],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels(){
- return [
- 'id' => 'ID',
- 'mall_id' => 'Mall ID',
- 'user_id' => '签到天数',
- 'score_num' => '累计积分奖励数量',
- 'coupon_num' => '累计优惠券奖励数量',
- 'total_sign_in'=> '累计签到天数',
- 'sign_at' => '最新签到时间',
- 'status' => '状态',
- 'created_at' => '创建时间',
- 'updated_at' => '修改时间'
- ];
- }
- }
|