Cancel.php 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <?php
  2. namespace common\models\member;
  3. use common\behaviors\MerchantStoreBehavior;
  4. use common\traits\HasOneMember;
  5. /**
  6. * This is the model class for table "{{%member_cancel}}".
  7. *
  8. * @property int $id
  9. * @property int|null $merchant_id 商户id
  10. * @property int|null $store_id 店铺ID
  11. * @property int|null $member_id 会员id
  12. * @property string|null $content 申请内容
  13. * @property int $audit_status 审核状态[0:申请;1通过;-1失败]
  14. * @property int|null $audit_time 审核时间
  15. * @property string|null $refusal_cause 拒绝原因
  16. * @property int|null $is_addon 是否插件
  17. * @property string|null $addon_name 插件名称
  18. * @property int|null $status 状态
  19. * @property int $created_at 创建时间
  20. * @property int $updated_at 更新时间
  21. */
  22. class Cancel extends \common\models\base\BaseModel
  23. {
  24. use MerchantStoreBehavior, HasOneMember;
  25. /**
  26. * {@inheritdoc}
  27. */
  28. public static function tableName()
  29. {
  30. return '{{%member_cancel}}';
  31. }
  32. /**
  33. * {@inheritdoc}
  34. */
  35. public function rules()
  36. {
  37. return [
  38. [['merchant_id', 'store_id', 'member_id', 'audit_status', 'audit_time', 'is_addon', 'status', 'created_at', 'updated_at'], 'integer'],
  39. [['content'], 'string'],
  40. [['refusal_cause', 'addon_name'], 'string', 'max' => 200],
  41. ];
  42. }
  43. /**
  44. * {@inheritdoc}
  45. */
  46. public function attributeLabels()
  47. {
  48. return [
  49. 'id' => 'ID',
  50. 'merchant_id' => '商户id',
  51. 'store_id' => '店铺ID',
  52. 'member_id' => '会员id',
  53. 'content' => '申请内容',
  54. 'audit_status' => '审核状态', // [0:申请;1通过;-1失败]
  55. 'audit_time' => '审核时间',
  56. 'refusal_cause' => '拒绝原因',
  57. 'is_addon' => '是否插件',
  58. 'addon_name' => '插件名称',
  59. 'status' => '状态',
  60. 'created_at' => '创建时间',
  61. 'updated_at' => '更新时间',
  62. ];
  63. }
  64. }
粤ICP备19079148号