初始化仓库
This commit is contained in:
44
common/modelsgii/ProductOrderItems.php
Normal file
44
common/modelsgii/ProductOrderItems.php
Normal file
@@ -0,0 +1,44 @@
|
||||
<?php
|
||||
|
||||
namespace common\modelsgii;
|
||||
|
||||
class ProductOrderItems extends \common\core\BaseActiveRecord
|
||||
{
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public static function tableName()
|
||||
{
|
||||
return 'yii_product_order_items';
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function rules()
|
||||
{
|
||||
return [
|
||||
[['product_order_id', 'drug_id'], 'integer'],
|
||||
[['drug_image', 'drug_name', 'small_info', 'created_at', 'updated_at'], 'string'],
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function attributeLabels()
|
||||
{
|
||||
return [
|
||||
'id' => 'id',
|
||||
'product_order_id' => 'product_order_id',
|
||||
'drug_id' => 'drug_id',
|
||||
'drug_image' => 'drug_image',
|
||||
'number' => 'number',
|
||||
'price' => 'price',
|
||||
'drug_name' => 'drug_name',
|
||||
'small_info' => 'small_info',
|
||||
'created_at' => 'created_at',
|
||||
'updated_at' => 'updated_at',
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user