| Current Path : /var/www/html/autisme/backend/modules/documentAutomation/models/ |
| Current File : /var/www/html/autisme/backend/modules/documentAutomation/models/Answer.php |
<?php
namespace backend\modules\documentAutomation\models;
use Yii;
/**
* This is the model class for table "document_automation_answer".
*
* @property int $id
* @property int|null $document_id
* @property int|null $tags_id
* @property string|null $tags_code
* @property string|null $tags_label
* @property string|null $answer
* @property string|null $created_at
* @property string|null $created_by
* @property string|null $updated_at
* @property string|null $updated_by
*/
class Answer extends \yii\db\ActiveRecord
{
/**
* {@inheritdoc}
*/
public static function tableName()
{
return 'document_automation_answer';
}
/**
* {@inheritdoc}
*/
public function rules()
{
return [
[['document_id', 'tags_id'], 'integer'],
[['answer'], 'string'],
[['created_at', 'updated_at'], 'safe'],
[['tags_code', 'tags_label', 'created_by', 'updated_by'], 'string', 'max' => 255],
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels()
{
return [
'id' => 'ID',
'document_id' => 'Document ID',
'tags_id' => 'Tags ID',
'tags_code' => 'Tags Code',
'tags_label' => 'Tags Label',
'answer' => 'Answer',
'created_at' => 'Created At',
'created_by' => 'Created By',
'updated_at' => 'Updated At',
'updated_by' => 'Updated By',
];
}
}