| Current Path : /var/www/html/crm/models/ |
| Current File : /var/www/html/crm/models/ServerDetails.php |
<?php
namespace app\models;
use Yii;
/**
* This is the model class for table "server_details".
*
* @property int $id
* @property int $owner_id
* @property string $location
* @property string $type
* @property string $domain
* @property string $username
* @property string $pwd
* @property string $remarks
* @property string $created_dt
* @property int $created_by
* @property string $updated_dt
* @property int $updated_by
*/
class ServerDetails extends \yii\db\ActiveRecord
{
/**
* {@inheritdoc}
*/
public static function tableName()
{
return 'server_details';
}
/**
* {@inheritdoc}
*/
public function rules()
{
return [
[['owner_id', 'created_by', 'updated_by'], 'integer'],
[['remarks'], 'string'],
[['created_dt', 'updated_dt'], 'safe'],
[['location', 'type', 'domain', 'username', 'pwd'], 'string', 'max' => 255],
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels()
{
return [
'id' => 'ID',
'owner_id' => 'Owner ID',
'location' => 'Location',
'type' => 'Type',
'domain' => 'Domain',
'username' => 'Username',
'pwd' => 'Pwd',
'remarks' => 'Remarks',
'created_dt' => 'Created Dt',
'created_by' => 'Created By',
'updated_dt' => 'Updated Dt',
'updated_by' => 'Updated By',
];
}
}