SupplierGoods.php 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <?php
  2. namespace addons\Supplier\common\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "qimall_addons_supplier_goods".
  6. *
  7. * @property int $id
  8. * @property int $mall_id 商城id
  9. * @property int $goods_id 商品id
  10. * @property string|null $agent_price 代理进销价
  11. * @property string|null $agent_intermediary_fee 代理居间费
  12. * @property string|null $store_price 门店进销价
  13. * @property string|null $business_promotion_expenses 业务推广费
  14. * @property int $sort 排序值
  15. * @property int $is_on_sale 是否上架
  16. * @property int $created_at 添加时间
  17. * @property int $updated_at 更新时间
  18. * @property int|null $deleted_at 删除时间
  19. */
  20. class SupplierGoods extends \yii\db\ActiveRecord
  21. {
  22. /**
  23. * {@inheritdoc}
  24. */
  25. public static function tableName()
  26. {
  27. return 'qimall_addons_supplier_goods';
  28. }
  29. /**
  30. * {@inheritdoc}
  31. */
  32. public function rules()
  33. {
  34. return [
  35. [['mall_id', 'goods_id', 'sort', 'is_on_sale', 'created_at', 'updated_at', 'deleted_at'], 'integer'],
  36. [['agent_price', 'agent_intermediary_fee', 'store_price', 'business_promotion_expenses'], 'safe'],
  37. ];
  38. }
  39. /**
  40. * {@inheritdoc}
  41. */
  42. public function attributeLabels()
  43. {
  44. return [
  45. 'id' => 'ID',
  46. 'mall_id' => 'Mall ID',
  47. 'goods_id' => 'Goods ID',
  48. 'agent_price' => 'Agent Price',
  49. 'agent_intermediary_fee' => 'Agent Intermediary Fee',
  50. 'store_price' => 'Store Price',
  51. 'business_promotion_expenses' => 'Business Promotion Expenses',
  52. 'sort' => 'Sort',
  53. 'is_on_sale' => 'Is On Sale',
  54. 'created_at' => 'Created At',
  55. 'updated_at' => 'Updated At',
  56. 'deleted_at' => 'Deleted At',
  57. ];
  58. }
  59. }