| Current Path : /var/www/html/crm/models/ |
| Current File : /var/www/html/crm/models/GrnParent.php |
<?php
namespace app\models;
use Yii;
/**
* This is the model class for table "grn_parent".
*
* @property int $id
* @property string $uuid
* @property int $do_id
* @property int $customer_id
* @property int $company_id
* @property string $received_dt
* @property string $created_dt
* @property int $created_by
* @property string $updated_dt
* @property int $updated_by
*/
class GrnParent extends \yii\db\ActiveRecord {
/**
* {@inheritdoc}
*/
public static function tableName() {
return 'grn_parent';
}
/**
* {@inheritdoc}
*/
public function rules() {
return [
[['uuid', 'do_id', 'received_dt'], 'required'],
[['do_id', 'customer_id', 'company_id', 'created_by', 'updated_by'], 'integer'],
[['received_dt', 'created_dt', 'updated_dt', 'cn_id'], 'safe'],
//[['uuid'], 'string', 'max' => 255],
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels() {
return [
'id' => 'ID',
'uuid' => 'Uuid',
'do_id' => 'DO Number',
'customer_id' => 'Customer',
'company_id' => 'Company',
'received_dt' => 'Received Date',
'created_dt' => 'Created Dt',
'created_by' => 'Created By',
'updated_dt' => 'Updated Dt',
'updated_by' => 'Updated By',
'cn_id' => 'Credit Note'
];
}
}