| Current Path : /var/www/html/hr/models/ |
| Current File : /var/www/html/hr/models/UserChildren.php |
<?php
namespace app\models;
use Yii;
/**
* This is the model class for table "user_children".
*
* @property int $id
* @property string $uuid
* @property int $user_id
* @property string $name
* @property string $dob
* @property string $gender
* @property string $identification_no
* @property string $citizen
* @property string $tax_category
* @property string $tax_percentage
* @property int $created_by
* @property string $created_dt
* @property int $updated_by
* @property string $updated_dt
*/
class UserChildren extends \yii\db\ActiveRecord {
/**
* {@inheritdoc}
*/
public static function tableName() {
return 'user_children';
}
/**
* {@inheritdoc}
*/
public function rules() {
return [
[['name', 'dob', 'identification_no', 'gender', 'citizen', 'tax_category', 'tax_percentage'], 'required'],
[['user_id', 'created_by', 'updated_by'], 'integer'],
[['created_dt', 'updated_dt', 'uuid'], 'safe'],
[['name', 'dob', 'gender', 'identification_no', 'citizen', 'tax_category', 'tax_percentage'], 'string', 'max' => 255],
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels() {
return [
'id' => 'ID',
'uuid' => 'Uuid',
'user_id' => 'User ID',
'name' => 'Name',
'dob' => 'Date of Birth',
'gender' => 'Gender',
'identification_no' => 'Identification Number',
'citizen' => 'Malaysian Citizen',
'tax_category' => 'Tax Exemption Category',
'tax_percentage' => 'Tax Exemption Percentage',
'created_by' => 'Created By',
'created_dt' => 'Created Dt',
'updated_by' => 'Updated By',
'updated_dt' => 'Updated Dt',
];
}
}