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