64 lines
1.4 KiB
PHP
64 lines
1.4 KiB
PHP
<?php
|
|
|
|
namespace app\models;
|
|
|
|
use Yii;
|
|
|
|
/**
|
|
* This is the model class for table "user_advertiser".
|
|
*
|
|
* @property int $id
|
|
* @property int $user_id
|
|
* @property string $advertiser_id
|
|
* @property int|null $created_at
|
|
* @property int|null $updated_at
|
|
* @property int|null $is_delete
|
|
* @property int $local_id
|
|
* @property string $advertiser_name
|
|
*/
|
|
class UserAdvertiser extends \app\models\BaseModel
|
|
{
|
|
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public static function tableName()
|
|
{
|
|
return 'user_advertiser';
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function rules()
|
|
{
|
|
return [
|
|
[['is_delete'], 'default', 'value' => 0],
|
|
[['advertiser_id'], 'default', 'value' => ''],
|
|
[['user_id', 'created_at', 'updated_at', 'is_delete', 'local_id'], 'integer'],
|
|
[['local_id', 'advertiser_name'], 'required'],
|
|
[['advertiser_id'], 'string', 'max' => 255],
|
|
[['advertiser_name'], 'string', 'max' => 64],
|
|
];
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function attributeLabels()
|
|
{
|
|
return [
|
|
'id' => 'ID',
|
|
'user_id' => 'User ID',
|
|
'advertiser_id' => 'Advertiser ID',
|
|
'created_at' => 'Created At',
|
|
'updated_at' => 'Updated At',
|
|
'is_delete' => 'Is Delete',
|
|
'local_id' => 'Local ID',
|
|
'advertiser_name' => 'Advertiser Name',
|
|
];
|
|
}
|
|
|
|
}
|