| Current Path : /var/www/html/dyna-hr/models/ |
| Current File : /var/www/html/dyna-hr/models/UserDocument.php |
<?php
namespace app\models;
use Yii;
/**
* This is the model class for table "user_document".
*
* @property int $id
* @property string $uuid
* @property int $user_id
* @property string $descr
* @property string $doc_url
* @property int $created_by
* @property string $created_dt
* @property int $updated_by
* @property string $updated_dt
*/
class UserDocument extends \yii\db\ActiveRecord {
/**
* {@inheritdoc}
*/
public static function tableName() {
return 'user_document';
}
/**
* {@inheritdoc}
*/
public function rules() {
return [
[['descr'], 'required'],
[['doc_url'], 'required', 'on' => 'create'],
[['user_id', 'created_by', 'updated_by'], 'integer'],
[['created_dt', 'updated_dt', 'uuid'], 'safe'],
[['descr', 'doc_url'], 'string', 'max' => 255],
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels() {
return [
'id' => 'ID',
'uuid' => 'Uuid',
'user_id' => 'User ID',
'descr' => 'Description',
'doc_url' => 'Document',
'created_by' => 'Created By',
'created_dt' => 'Created Dt',
'updated_by' => 'Updated By',
'updated_dt' => 'Updated Dt',
];
}
}