StoreCouponRemind.php 1.6 KB

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