| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- <?php
- namespace common\models;
- /**
- * This is the model class for table "xhMerchantAccount".
- *
- * @property int $id
- * @property string $subjectTitles 商事主体名称
- * @property string $businessLicense 营业执照
- * @property string $idCard 身份证正面
- * @property string $idCardBack 身份证背面
- * @property string $bankCard 银行卡照片
- * @property string $bankCardInfo 银行卡开户行信息
- * @property string $bankCardNo 银行卡号
- * @property int $userId 用户id
- * @property string $alipayId 支付宝用户id
- * @property string $mobile 联系电话
- * @property string $telephone 座机,如 0592-3531672
- * @property string $applyName 要申请公众号的名称
- * @property string $email 联系邮箱
- * @property string $createTime 创建时间
- * @property string $updateTime
- */
- class xhMerchantAccount extends xhBaseModel
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return 'xhMerchantAccount';
- }
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['userId'], 'integer'],
- [['createTime'], 'required'],
- [['createTime', 'updateTime'], 'safe'],
- [['subjectTitles', 'bankCardInfo', 'bankCardNo', 'alipayId', 'email'], 'string', 'max' => 50],
- [['businessLicense', 'idCard', 'idCardBack', 'bankCard'], 'string', 'max' => 100],
- [['mobile', 'telephone', 'applyName'], 'string', 'max' => 20],
- [['businessLicense'], 'unique'],
- [['bankCardNo'], 'unique'],
- [['email'], 'unique'],
- ];
- }
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'subjectTitles' => 'Subject Titles',
- 'businessLicense' => 'Business License',
- 'idCard' => 'Id Card',
- 'idCardBack' => 'Id Card Back',
- 'bankCard' => 'Bank Card',
- 'bankCardInfo' => 'Bank Card Info',
- 'bankCardNo' => 'Bank Card No',
- 'userId' => 'User ID',
- 'alipayId' => 'Alipay ID',
- 'mobile' => 'Mobile',
- 'telephone' => 'Telephone',
- 'applyName' => 'Apply Name',
- 'email' => 'Email',
- 'createTime' => 'Create Time',
- 'updateTime' => 'Update Time',
- ];
- }
- }
|