StoreMiniToken.php 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <?php
  2. /**
  3. * 厦门云联储网络科技有限公司
  4. * https://www.baokuaiyun.com
  5. * Copyright (c) 2023 爆块云 All rights reserved.
  6. */
  7. namespace app\models;
  8. /**
  9. * Class StoreMiniToken
  10. * @package app\models
  11. * @property integer $id
  12. * @property integer $store_id
  13. * @property string $app_auth_token
  14. * @property integer $created_at
  15. * @property integer $update_at
  16. * @property integer $type
  17. * @property integer $salesman_id
  18. * @property integer $status
  19. * @property string $url
  20. * @property string $batch_no
  21. * @property integer $batch_status
  22. * @property string $contact_name
  23. * @property string $contact_mobile
  24. * @property string $contact_email
  25. * @property string $account
  26. * @property string $batch_url
  27. * @property string $fail_reason
  28. * @property string $license_no
  29. * @property string $license_pic
  30. **/
  31. class StoreMiniToken extends \yii\db\ActiveRecord
  32. {
  33. /**
  34. * @inheritdoc
  35. */
  36. public static function tableName()
  37. {
  38. return '{{%store_mini_token}}';
  39. }
  40. /**
  41. * @inheritdoc
  42. */
  43. public function rules()
  44. {
  45. return [
  46. [['id', 'store_id', 'created_at', 'update_at', 'type', "salesman_id", 'status', 'batch_status'], 'integer'],
  47. [['app_auth_token', 'url', 'batch_no', 'contact_name', 'contact_mobile', 'contact_email', 'account', 'batch_url', 'fail_reason', 'license_no', 'license_pic'], 'string'],
  48. ];
  49. }
  50. /**
  51. * @inheritdoc
  52. */
  53. public function attributeLabels()
  54. {
  55. return [
  56. 'id' => "主键",
  57. 'store_id' => "商城ID",
  58. 'app_auth_token' => "token值",
  59. 'created_at' => "创建时间",
  60. 'update_at' => "修改时间",
  61. 'type' => "0微信 1支付宝",
  62. 'salesman_id' => "业务员ID",
  63. 'status' => "状态0签约中 1签约完成 2签约失败",
  64. "url" => "码地址",
  65. "batch_no" => "事务编号",
  66. "batch_status" => "事务状态",
  67. "contact_name" => "商户名称",
  68. "contact_mobile" => "商户手机号",
  69. "contact_email" => "商户邮箱",
  70. "account" => "商家支付宝账户",
  71. "batch_url" => "商户签约确认链接",
  72. "fail_reason" => "失败原因",
  73. "license_no" => "企业编码",
  74. "license_pic" => "营业执照",
  75. ];
  76. }
  77. }