<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "oauth_account_local".
 *
 * @property int $id
 * @property int|null $created_at
 * @property int|null $updated_at
 * @property string $admin_uid
 * @property string $account_id
 * @property string $advertiser_name
 * @property string $advertiser_id
 * @property int|null $is_delete
 * @property int $is_active
 */
class OauthAccountLocal extends \app\models\BaseModel
{


    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'oauth_account_local';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['is_active'], 'default', 'value' => 0],
            [['advertiser_id'], 'default', 'value' => ''],
            [['created_at', 'updated_at', 'is_delete', 'is_active'], 'integer'],
            [['admin_uid', 'account_id', 'advertiser_id'], 'string', 'max' => 64],
            [['advertiser_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',
            'advertiser_name' => 'Advertiser Name',
            'advertiser_id' => 'Advertiser ID',
            'is_delete' => 'Is Delete',
            'is_active' => 'Is Active',
        ];
    }

}
