| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- <?php
- namespace addons\Coupon\common\models;
- use Yii;
- /**
- * This is the model class for table "{{%addons_coupon_remind}}".
- *
- * @property int $id
- * @property int $mall_id
- * @property int $coupon_id
- * @property int $user_id
- * @property int $expire_time
- * @property int $status 状态[-1:删除;0:禁用;1启用]
- * @property int $send_status 提醒状态,1:未发送提醒,2:已发送提醒,3:不需要发送提醒,已使用或者已转赠或者优惠券已过期或者优惠券已经失效
- * @property int $created_at 创建时间
- * @property int $updated_at
- */
- class AddonsCouponRemind extends \common\models\base\BaseActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return '{{%addons_coupon_remind}}';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['mall_id', 'coupon_id', 'user_id', 'expire_time'], 'required'],
- [['mall_id', 'coupon_id', 'user_id', 'expire_time', 'status', 'send_status', 'created_at', 'updated_at'], 'integer'],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'mall_id' => 'Mall ID',
- 'coupon_id' => 'Coupon ID',
- 'user_id' => 'User ID',
- 'expire_time' => 'Expire Time',
- 'status' => 'Status',
- 'send_status' => 'Send Status',
- 'created_at' => 'Created At',
- 'updated_at' => 'Updated At',
- ];
- }
- }
|