add document module

This commit is contained in:
iIronside
2022-11-08 18:01:42 +03:00
parent 8648f5458e
commit 45b110ac44
23 changed files with 986 additions and 0 deletions

View File

@ -0,0 +1,46 @@
<?php
namespace common\models;
use Yii;
/**
* This is the model class for table "document_template".
*
* @property int $id
* @property string $title
* @property string $template_body
*/
class DocumentTemplate extends \yii\db\ActiveRecord
{
/**
* {@inheritdoc}
*/
public static function tableName()
{
return 'document_template';
}
/**
* {@inheritdoc}
*/
public function rules()
{
return [
[['template_body'], 'string'],
[['title'], 'string', 'max' => 255],
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels()
{
return [
'id' => 'ID',
'title' => 'Title',
'template_body' => 'Template Body',
];
}
}