CloudStockPriceDifferenceOrderDetail.php 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <?php
  2. namespace addons\CloudStock\common\models;
  3. use common\models\base\BaseActiveRecord;
  4. use Yii;
  5. /**
  6. * This is the model class for table "qimall_addons_cloud_stock_price_difference_order_detail".
  7. *
  8. * @property int $id
  9. * @property int $mall_id 商城id
  10. * @property int $user_id 补货代理商用户id
  11. * @property int $price_difference_order_id 补货代理商用户id
  12. * @property float $goods_price 支付金额
  13. * @property int $goods_id 商品id
  14. * @property int $self_pickup_num 自提数量
  15. * @property int $cloud_warehouse_num 云仓数量
  16. * @property int $status 状态[-1:删除;0:禁用;1启用]
  17. * @property int $created_at
  18. * @property int $updated_at
  19. * @property int $is_send_recommend_reward
  20. */
  21. class CloudStockPriceDifferenceOrderDetail extends BaseActiveRecord
  22. {
  23. /**
  24. * {@inheritdoc}
  25. */
  26. public static function tableName()
  27. {
  28. return '{{%addons_cloud_stock_price_difference_order_detail}}';
  29. }
  30. /**
  31. * {@inheritdoc}
  32. */
  33. public function rules()
  34. {
  35. return [
  36. [['mall_id', 'user_id', 'price_difference_order_id', 'goods_id'], 'required'],
  37. [['mall_id', 'user_id', 'price_difference_order_id', 'goods_id', 'self_pickup_num', 'cloud_warehouse_num', 'status', 'created_at',
  38. 'updated_at', 'is_send_recommend_reward'], 'integer'],
  39. [['goods_price'], 'number'],
  40. ];
  41. }
  42. /**
  43. * {@inheritdoc}
  44. */
  45. public function attributeLabels()
  46. {
  47. return [
  48. 'id' => 'ID',
  49. 'mall_id' => 'Mall ID',
  50. 'user_id' => 'User ID',
  51. 'price_difference_order_id' => 'Price Difference Order ID',
  52. 'goods_price' => 'Goods Price',
  53. 'goods_id' => 'Goods ID',
  54. 'self_pickup_num' => 'Self Pickup Num',
  55. 'cloud_warehouse_num' => 'Cloud Warehouse Num',
  56. 'status' => 'Status',
  57. 'created_at' => 'Created At',
  58. 'updated_at' => 'Updated At',
  59. 'is_send_recommend_reward' => 'is_send_recommend_reward',
  60. ];
  61. }
  62. }