| Current Path : /var/www/html/drsa/backend/modules/procurement/models/ |
| Current File : /var/www/html/drsa/backend/modules/procurement/models/Procurement.php |
<?php
namespace backend\modules\procurement\models;
use Yii;
/**
* This is the model class for table "procurement".
*
* @property int $ref_num
* @property string $title
* @property string $qua_tenderer
* @property string $doc_price
* @property string $start_date
* @property string $end_date
* @property string $start_time
* @property string $end_time
* @property string $bill_qua
* @property string $scope_work
*/
class Procurement extends \yii\db\ActiveRecord
{
/**
* {@inheritdoc}
*/
public static function tableName()
{
return 'procurement';
}
/**
* {@inheritdoc}
*/
public function rules()
{
return [
[['ref_num'], 'required'],
[['ref_num'], 'integer'],
[['start_date', 'end_date', 'start_time', 'end_time'], 'safe'],
[['title', 'qua_tenderer', 'doc_price', 'bill_qua', 'scope_work'], 'string', 'max' => 255],
[['ref_num'], 'unique'],
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels()
{
return [
'ref_num' => 'Reference Number',
'title' => 'Title',
'qua_tenderer' => 'Qualification',
'doc_price' => 'Price',
'start_date' => 'Start Date',
'end_date' => 'End Date',
'start_time' => 'Start Time',
'end_time' => 'End Time',
'bill_qua' => 'Bill of Quatities',
'scope_work' => 'Scope of Work',
];
}
}