| Current Path : /var/www/html/hr/models/ |
| Current File : /var/www/html/hr/models/ClaimPayment.php |
<?php
namespace app\models;
use Yii;
/**
* This is the model class for table "claim_payment".
*
* @property int $id
* @property string $uuid
* @property int $user_id
* @property string $status
* @property string $payment_dt
* @property string $ref_no
* @property string $total
* @property string $attachment
* @property string $remarks
* @property int $created_by
* @property string $created_dt
* @property int $updated_by
* @property string $updated_dt
*/
class ClaimPayment extends \yii\db\ActiveRecord {
/**
* {@inheritdoc}
*/
public static function tableName() {
return 'claim_payment';
}
/**
* {@inheritdoc}
*/
public function rules() {
return [
[['user_id', 'status', 'total'], 'required'],
[['user_id', 'created_by', 'updated_by'], 'integer'],
[['payment_dt', 'created_dt', 'updated_dt', 'uuid'], 'safe'],
[['remarks'], 'string'],
[['status', 'ref_no', 'total', 'attachment'], 'string', 'max' => 255],
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels() {
return [
'id' => 'ID',
'uuid' => 'Uuid',
'user_id' => 'Payment To',
'status' => 'Status',
'payment_dt' => 'Transaction Date',
'ref_no' => 'Reference Number',
'total' => 'Total',
'attachment' => 'Attachment',
'remarks' => 'Remarks',
'created_by' => 'Created By',
'created_dt' => 'Created Dt',
'updated_by' => 'Updated By',
'updated_dt' => 'Updated Dt',
];
}
}