| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- <?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_admin}}".
- *
- * @property integer $id
- * @property string $username
- * @property string $password
- * @property integer $store_id
- * @property integer $saas_id
- * @property integer $is_delete
- * @property integer $status
- * @property integer $created_at
- * @property integer $updated_at
- * @property string $rules
- */
- class StoreAdmin extends \yii\db\ActiveRecord
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return '{{%store_admin}}';
- }
- 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", "store_id", "is_delete", "status", "created_at", "updated_at", "saas_id"], 'integer'],
- [["username", "password", 'rules'], 'string']
- ];
- }
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- "id" => "",
- "username" => "用户名",
- "password" => "密码",
- "store_id" => "商城id",
- "is_delete" => "是否删除",
- "status" => "状态 0关闭 1开启",
- "created_at" => "",
- "updated_at" => "",
- "rules" => "规则",
- "saas_id" => '联盟用户id'
- ];
- }
- }
|