| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- <?php
- /**
- * 厦门云联储网络科技有限公司
- * https://www.baokuaiyun.com
- * Copyright (c) 2023 爆块云 All rights reserved.
- */
- namespace app\models;
- use Yii;
- use yii\behaviors\TimestampBehavior;
- use yii\db\ActiveRecord;
- /**
- * This is the model class for table "{{%store_audit}}".
- *
- * @property integer $id
- * @property integer $saas_user_id
- * @property integer $salesman_id
- * @property string $name
- * @property string $mobile
- * @property string $password
- * @property string $business_pic
- * @property string $permit_pic
- * @property integer $status
- * @property integer $cat_id
- * @property integer $merchant_info_id
- * @property string $logo
- * @property integer created_at
- * @property integer updated_at
- * @property integer $is_single_store
- * @property integer $district_id
- * @property integer $city_id
- * @property integer $province_id
- * @property string $store_number
- * @property string $currceny_percent_scan
- */
- class StoreAudit extends \yii\db\ActiveRecord
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return '{{%store_audit}}';
- }
- 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 [
- [['id', 'saas_user_id', 'salesman_id', 'status', 'created_at', 'updated_at', 'cat_id', 'merchant_info_id', 'is_single_store', 'district_id', 'city_id', 'province_id'], 'integer'],
- [['name', 'mobile', 'password', 'business_pic', 'permit_pic', 'logo','store_number'], 'string'],
- [['currceny_percent_scan'], 'number'],
- ];
- }
- }
|