first commit
This commit is contained in:
60
models/OauthAccount.php
Normal file
60
models/OauthAccount.php
Normal file
@ -0,0 +1,60 @@
|
||||
<?php
|
||||
|
||||
namespace app\models;
|
||||
|
||||
use Yii;
|
||||
|
||||
/**
|
||||
* This is the model class for table "oauth_account".
|
||||
*
|
||||
* @property int $id
|
||||
* @property int|null $created_at
|
||||
* @property int|null $updated_at
|
||||
* @property string $admin_uid
|
||||
* @property string $account_id
|
||||
* @property string $account_name
|
||||
* @property int|null $is_delete
|
||||
*/
|
||||
class OauthAccount extends \app\models\BaseModel
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public static function tableName()
|
||||
{
|
||||
return 'oauth_account';
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function rules()
|
||||
{
|
||||
return [
|
||||
[['is_delete'], 'default', 'value' => 0],
|
||||
[['account_name'], 'default', 'value' => ''],
|
||||
[['created_at', 'updated_at', 'is_delete'], 'integer'],
|
||||
[['admin_uid', 'account_id'], 'string', 'max' => 64],
|
||||
[['account_name'], 'string', 'max' => 255],
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function attributeLabels()
|
||||
{
|
||||
return [
|
||||
'id' => 'ID',
|
||||
'created_at' => 'Created At',
|
||||
'updated_at' => 'Updated At',
|
||||
'admin_uid' => 'Admin Uid',
|
||||
'account_id' => 'Account ID',
|
||||
'account_name' => 'Account Name',
|
||||
'is_delete' => 'Is Delete',
|
||||
];
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user