| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- <?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 "{{%agent_apply}}".
- *
- * @property integer $id
- * @property string $username
- * @property string $password
- * @property string $mobile
- * @property string $name
- * @property integer $saas_user_id
- * @property integer $province_id
- * @property integer $city_id
- * @property integer $district_id
- * @property integer $area_level
- * @property string $address
- * @property string $lat
- * @property string $lng
- * @property integer $agent_type
- * @property integer $status
- * @property integer $is_delete
- * @property integer $admin_id
- * @property string $reason
- */
- class AgentApply extends \yii\db\ActiveRecord
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return '{{%agent_apply}}';
- }
- public function behaviors()
- {
- return [
- [
- 'class' => TimestampBehavior::class,
- 'attributes' => [
- ActiveRecord::EVENT_BEFORE_INSERT => ['updated_at', 'created_at'],
- ActiveRecord::EVENT_BEFORE_UPDATE => 'updated_at'
- ]
- ]
- ];
- }
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [["id", "saas_user_id", "province_id", "city_id", "district_id", "agent_type", "status", "is_delete", "admin_id", "area_level"], 'integer'],
- [["username", "password", "mobile", "name", "address", "lat", "lng", "reason"], 'string']
- ];
- }
- }
|