| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- <?php
- namespace addons\Supplier\common\models;
- use Yii;
- /**
- * This is the model class for table "qimall_addons_supplier_goods".
- *
- * @property int $id
- * @property int $mall_id 商城id
- * @property int $goods_id 商品id
- * @property string|null $agent_price 代理进销价
- * @property string|null $agent_intermediary_fee 代理居间费
- * @property string|null $store_price 门店进销价
- * @property string|null $business_promotion_expenses 业务推广费
- * @property int $sort 排序值
- * @property int $is_on_sale 是否上架
- * @property int $created_at 添加时间
- * @property int $updated_at 更新时间
- * @property int|null $deleted_at 删除时间
- */
- class SupplierGoods extends \yii\db\ActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return 'qimall_addons_supplier_goods';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['mall_id', 'goods_id', 'sort', 'is_on_sale', 'created_at', 'updated_at', 'deleted_at'], 'integer'],
- [['agent_price', 'agent_intermediary_fee', 'store_price', 'business_promotion_expenses'], 'safe'],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'mall_id' => 'Mall ID',
- 'goods_id' => 'Goods ID',
- 'agent_price' => 'Agent Price',
- 'agent_intermediary_fee' => 'Agent Intermediary Fee',
- 'store_price' => 'Store Price',
- 'business_promotion_expenses' => 'Business Promotion Expenses',
- 'sort' => 'Sort',
- 'is_on_sale' => 'Is On Sale',
- 'created_at' => 'Created At',
- 'updated_at' => 'Updated At',
- 'deleted_at' => 'Deleted At',
- ];
- }
- }
|