AddonsCouponRemind.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?php
  2. namespace addons\Coupon\common\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "{{%addons_coupon_remind}}".
  6. *
  7. * @property int $id
  8. * @property int $mall_id
  9. * @property int $coupon_id
  10. * @property int $user_id
  11. * @property int $expire_time
  12. * @property int $status 状态[-1:删除;0:禁用;1启用]
  13. * @property int $send_status 提醒状态,1:未发送提醒,2:已发送提醒,3:不需要发送提醒,已使用或者已转赠或者优惠券已过期或者优惠券已经失效
  14. * @property int $created_at 创建时间
  15. * @property int $updated_at
  16. */
  17. class AddonsCouponRemind extends \common\models\base\BaseActiveRecord
  18. {
  19. /**
  20. * {@inheritdoc}
  21. */
  22. public static function tableName()
  23. {
  24. return '{{%addons_coupon_remind}}';
  25. }
  26. /**
  27. * {@inheritdoc}
  28. */
  29. public function rules()
  30. {
  31. return [
  32. [['mall_id', 'coupon_id', 'user_id', 'expire_time'], 'required'],
  33. [['mall_id', 'coupon_id', 'user_id', 'expire_time', 'status', 'send_status', 'created_at', 'updated_at'], 'integer'],
  34. ];
  35. }
  36. /**
  37. * {@inheritdoc}
  38. */
  39. public function attributeLabels()
  40. {
  41. return [
  42. 'id' => 'ID',
  43. 'mall_id' => 'Mall ID',
  44. 'coupon_id' => 'Coupon ID',
  45. 'user_id' => 'User ID',
  46. 'expire_time' => 'Expire Time',
  47. 'status' => 'Status',
  48. 'send_status' => 'Send Status',
  49. 'created_at' => 'Created At',
  50. 'updated_at' => 'Updated At',
  51. ];
  52. }
  53. }