| Current Path : /var/www/html/hr/models/ |
| Current File : /var/www/html/hr/models/UserContact.php |
<?php
namespace app\models;
use Yii;
/**
* This is the model class for table "user_contact".
*
* @property int $id
* @property string $uuid
* @property int $user_id
* @property string $name
* @property string $identification_no
* @property string $relationship
* @property string $phone_no
* @property string $email
* @property int $created_by
* @property string $created_dt
* @property int $updated_by
* @property string $updated_dt
*/
class UserContact extends \yii\db\ActiveRecord {
/**
* {@inheritdoc}
*/
public static function tableName() {
return 'user_contact';
}
/**
* {@inheritdoc}
*/
public function rules() {
return [
[['name', 'relationship', 'phone_no'], 'required'],
[['user_id', 'created_by', 'updated_by'], 'integer'],
[['created_dt', 'updated_dt', 'uuid'], 'safe'],
[['name', 'identification_no', 'relationship', 'phone_no', 'email'], 'string', 'max' => 255],
['email', 'email'],
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels() {
return [
'id' => 'ID',
'uuid' => 'Uuid',
'user_id' => 'User ID',
'name' => 'Contact Person',
'identification_no' => 'IC No. or Passport No.',
'relationship' => 'Relationship',
'phone_no' => 'Mobile Number',
'email' => 'Email Address',
'created_by' => 'Created By',
'created_dt' => 'Created Dt',
'updated_by' => 'Updated By',
'updated_dt' => 'Updated Dt',
];
}
}