初始化仓库
This commit is contained in:
61
common/modelsgii/DrugStoreRelations.php
Normal file
61
common/modelsgii/DrugStoreRelations.php
Normal file
@@ -0,0 +1,61 @@
|
||||
<?php
|
||||
|
||||
namespace common\modelsgii;
|
||||
|
||||
use Yii;
|
||||
|
||||
/**
|
||||
* This is the model class for table "yii_drug_store_relations".
|
||||
*
|
||||
* @property int $id
|
||||
* @property int $drug_id 药品id
|
||||
* @property int $store_id 门店id
|
||||
* @property int $status 状态1下架2上架
|
||||
* @property int $is_forbid 受否禁售0否1是
|
||||
* @property int $base_sales_volume 基础销量
|
||||
* @property int $true_sales_volume 真实销量
|
||||
* @property int $total_sales_volume 总销量
|
||||
* @property string|null $created_at
|
||||
* @property string|null $updated_at
|
||||
*/
|
||||
class DrugStoreRelations extends \common\core\BaseActiveRecord
|
||||
{
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public static function tableName()
|
||||
{
|
||||
return 'yii_drug_store_relations';
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function rules()
|
||||
{
|
||||
return [
|
||||
[['drug_id', 'store_id', 'status'], 'required'],
|
||||
[['drug_id', 'store_id', 'status', 'base_sales_volume', 'true_sales_volume', 'total_sales_volume','is_forbid'], 'integer'],
|
||||
[['created_at', 'updated_at'], 'safe'],
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function attributeLabels()
|
||||
{
|
||||
return [
|
||||
'id' => 'ID',
|
||||
'drug_id' => 'Drug ID',
|
||||
'store_id' => 'Store ID',
|
||||
'status' => 'Status',
|
||||
'is_forbid' => 'Is Forbid',
|
||||
'base_sales_volume' => 'Base Sales Volume',
|
||||
'true_sales_volume' => 'True Sales Volume',
|
||||
'total_sales_volume' => 'Total Sales Volume',
|
||||
'created_at' => 'Created At',
|
||||
'updated_at' => 'Updated At',
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user