| Current Path : /var/www/html/project/models/ |
| Current File : /var/www/html/project/models/Templates.php |
<?php
namespace app\models;
use Yii;
/**
* This is the model class for table "templates".
*
* @property int $id
* @property string $name
* @property string $created_dt
* @property int $created_by
* @property string $updated_dt
* @property int $updated_by
*/
class Templates extends \yii\db\ActiveRecord {
/**
* {@inheritdoc}
*/
public static function tableName() {
return 'templates';
}
/**
* {@inheritdoc}
*/
public function rules() {
return [
[['name'], 'required'],
[['id', 'created_by', 'updated_by'], 'integer'],
[['created_dt', 'updated_dt', 'status'], 'safe'],
[['name'], 'string', 'max' => 255],
[['id'], 'unique'],
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels() {
return [
'id' => 'ID',
'name' => 'Name',
'created_dt' => 'Created Dt',
'created_by' => 'Created By',
'updated_dt' => 'Updated Dt',
'updated_by' => 'Updated By',
];
}
}