OrderShare.php 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <?php
  2. /**
  3. * 厦门云联储网络科技有限公司
  4. * https://www.baokuaiyun.com
  5. * Copyright (c) 2023 爆块云 All rights reserved.
  6. */
  7. namespace app\models;
  8. use Yii;
  9. /**
  10. * This is the model class for table "{{%order_share}}".
  11. *
  12. * @property integer $id
  13. * @property integer $store_id
  14. * @property integer $type
  15. * @property integer $order_id
  16. * @property integer $parent_id_1
  17. * @property integer $parent_id_2
  18. * @property integer $parent_id_3
  19. * @property string $first_price
  20. * @property string $second_price
  21. * @property string $third_price
  22. * @property integer $is_delete
  23. * @property string $version
  24. * @property string $rebate
  25. * @property integer $user_id
  26. */
  27. class OrderShare extends \yii\db\ActiveRecord
  28. {
  29. /**
  30. * @inheritdoc
  31. */
  32. public static function tableName()
  33. {
  34. return '{{%order_share}}';
  35. }
  36. /**
  37. * @inheritdoc
  38. */
  39. public function rules()
  40. {
  41. return [
  42. [['store_id', 'type', 'order_id', 'parent_id_1', 'parent_id_2', 'parent_id_3', 'is_delete', 'user_id'],
  43. 'integer'],
  44. [['first_price', 'second_price', 'third_price', 'rebate'], 'number'],
  45. [['version'], 'string', 'max' => 255],
  46. ];
  47. }
  48. /**
  49. * @inheritdoc
  50. */
  51. public function attributeLabels()
  52. {
  53. return [
  54. 'id' => 'ID',
  55. 'store_id' => 'Store ID',
  56. 'type' => '类型 0--拼团 1--错误数据 2--预约',
  57. 'order_id' => '订单id',
  58. 'parent_id_1' => '一级分销商id',
  59. 'parent_id_2' => '二级分销商id',
  60. 'parent_id_3' => '三级分销商id',
  61. 'first_price' => '一级分销佣金',
  62. 'second_price' => '二级分销佣金',
  63. 'third_price' => '三级分销佣金',
  64. 'is_delete' => 'Is Delete',
  65. 'version' => 'Version',
  66. 'rebate' => '自购返利',
  67. 'user_id' => '下单用户id',
  68. ];
  69. }
  70. }