| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- <?php
- /**
- * 厦门云联储网络科技有限公司
- * https://www.baokuaiyun.com
- * Copyright (c) 2023 爆块云 All rights reserved.
- */
- namespace app\models;
- use yii\db\ActiveRecord;
- use yii\behaviors\TimestampBehavior;
- use Yii;
- /**
- * This is the model class for table "{{%merchant_info}}".
- *
- * @property integer $id
- * @property integer $store_id
- * @property integer $saas_user_id
- * @property string $business_code
- * @property string $contact_info
- * @property string $subject_info
- * @property string $business_info
- * @property string $settlement_info
- * @property string $bank_account_info
- * @property string $applyment_id
- * @property integer $status
- * @property string $state
- * @property string $refuse_desc
- * @property integer $bind_store_id
- * @property integer $from
- * @property string $sub_mch_id
- * @property integer $created_at
- * @property integer $updated_at
- * @property string $app_status
- * @property string $sign_url
- * @property integer $is_use
- * @property integer $is_yunst
- * @property integer $is_delete
- */
- class MerchantInfo extends \yii\db\ActiveRecord
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return '{{%merchant_info}}';
- }
- public function behaviors()
- {
- return [
- [
- 'class' => TimestampBehavior::class,
- 'attributes' => [
- ActiveRecord::EVENT_BEFORE_INSERT => ['created_at'],
- ActiveRecord::EVENT_BEFORE_UPDATE => ['updated_at']
- ]
- ]
- ];
- }
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['updated_at', 'saas_user_id', 'created_at', 'store_id', 'bind_store_id', 'from', 'is_use', 'is_yunst'], 'integer'],
- [['sub_mch_id', 'state', 'business_code', 'contact_info', 'business_info', 'subject_info', 'settlement_info', 'bank_account_info', 'applyment_id','app_status', 'sign_url'], 'string'],
- [['created_at', 'updated_at'], 'safe']
- ];
- }
- }
|