xhMerchantAccount.php 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <?php
  2. namespace common\models;
  3. /**
  4. * This is the model class for table "xhMerchantAccount".
  5. *
  6. * @property int $id
  7. * @property string $subjectTitles 商事主体名称
  8. * @property string $businessLicense 营业执照
  9. * @property string $idCard 身份证正面
  10. * @property string $idCardBack 身份证背面
  11. * @property string $bankCard 银行卡照片
  12. * @property string $bankCardInfo 银行卡开户行信息
  13. * @property string $bankCardNo 银行卡号
  14. * @property int $userId 用户id
  15. * @property string $alipayId 支付宝用户id
  16. * @property string $mobile 联系电话
  17. * @property string $telephone 座机,如 0592-3531672
  18. * @property string $applyName 要申请公众号的名称
  19. * @property string $email 联系邮箱
  20. * @property string $createTime 创建时间
  21. * @property string $updateTime
  22. */
  23. class xhMerchantAccount extends xhBaseModel
  24. {
  25. /**
  26. * @inheritdoc
  27. */
  28. public static function tableName()
  29. {
  30. return 'xhMerchantAccount';
  31. }
  32. /**
  33. * @inheritdoc
  34. */
  35. public function rules()
  36. {
  37. return [
  38. [['userId'], 'integer'],
  39. [['createTime'], 'required'],
  40. [['createTime', 'updateTime'], 'safe'],
  41. [['subjectTitles', 'bankCardInfo', 'bankCardNo', 'alipayId', 'email'], 'string', 'max' => 50],
  42. [['businessLicense', 'idCard', 'idCardBack', 'bankCard'], 'string', 'max' => 100],
  43. [['mobile', 'telephone', 'applyName'], 'string', 'max' => 20],
  44. [['businessLicense'], 'unique'],
  45. [['bankCardNo'], 'unique'],
  46. [['email'], 'unique'],
  47. ];
  48. }
  49. /**
  50. * @inheritdoc
  51. */
  52. public function attributeLabels()
  53. {
  54. return [
  55. 'id' => 'ID',
  56. 'subjectTitles' => 'Subject Titles',
  57. 'businessLicense' => 'Business License',
  58. 'idCard' => 'Id Card',
  59. 'idCardBack' => 'Id Card Back',
  60. 'bankCard' => 'Bank Card',
  61. 'bankCardInfo' => 'Bank Card Info',
  62. 'bankCardNo' => 'Bank Card No',
  63. 'userId' => 'User ID',
  64. 'alipayId' => 'Alipay ID',
  65. 'mobile' => 'Mobile',
  66. 'telephone' => 'Telephone',
  67. 'applyName' => 'Apply Name',
  68. 'email' => 'Email',
  69. 'createTime' => 'Create Time',
  70. 'updateTime' => 'Update Time',
  71. ];
  72. }
  73. }