first commit
This commit is contained in:
74
models/Oauth.php
Normal file
74
models/Oauth.php
Normal file
@ -0,0 +1,74 @@
|
||||
<?php
|
||||
|
||||
namespace app\models;
|
||||
|
||||
use Yii;
|
||||
|
||||
/**
|
||||
* This is the model class for table "oauth".
|
||||
*
|
||||
* @property int $id
|
||||
* @property string $access_token
|
||||
* @property string $refresh_token
|
||||
* @property int $created_at
|
||||
* @property int $updated_at
|
||||
* @property string $app_id
|
||||
* @property string $auth_code
|
||||
* @property string $material_auth_status
|
||||
* @property string $scope
|
||||
* @property string $uid
|
||||
* @property int $is_init
|
||||
* @property int|null $is_delete
|
||||
* @property string|null $advertiser_ids
|
||||
*/
|
||||
class Oauth extends \app\models\BaseModel
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public static function tableName()
|
||||
{
|
||||
return 'oauth';
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function rules()
|
||||
{
|
||||
return [
|
||||
[['advertiser_ids'], 'default', 'value' => null],
|
||||
[['uid'], 'default', 'value' => ''],
|
||||
[['is_delete'], 'default', 'value' => 0],
|
||||
[['created_at', 'updated_at', 'is_init', 'is_delete'], 'integer'],
|
||||
[['advertiser_ids'], 'string'],
|
||||
[['access_token', 'refresh_token', 'auth_code', 'material_auth_status', 'scope', 'uid'], 'string', 'max' => 255],
|
||||
[['app_id'], 'string', 'max' => 64],
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function attributeLabels()
|
||||
{
|
||||
return [
|
||||
'id' => 'ID',
|
||||
'access_token' => 'Access Token',
|
||||
'refresh_token' => 'Refresh Token',
|
||||
'created_at' => 'Created At',
|
||||
'updated_at' => 'Updated At',
|
||||
'app_id' => 'App ID',
|
||||
'auth_code' => 'Auth Code',
|
||||
'material_auth_status' => 'Material Auth Status',
|
||||
'scope' => 'Scope',
|
||||
'uid' => 'Uid',
|
||||
'is_init' => 'Is Init',
|
||||
'is_delete' => 'Is Delete',
|
||||
'advertiser_ids' => 'Advertiser Ids',
|
||||
];
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user