ShopShare.php 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <?php
  2. /**
  3. * 厦门云联储网络科技有限公司
  4. * https://www.baokuaiyun.com
  5. * Copyright (c) 2023 爆块云 All rights reserved.
  6. */
  7. /*
  8. * @Author: 凯
  9. * @Date: 2021-03-02 09:50:20
  10. * @LastEditTime: 2021-04-27 10:29:46
  11. * @LastEditors: Please set LastEditors
  12. * @Description: In User Settings Edit
  13. * @FilePath: \admin_php\models\ShopShare.php
  14. */
  15. namespace app\models;
  16. use Yii;
  17. /**
  18. * This is the model class for table "{{%shop_share}}".
  19. *
  20. * @property integer $id
  21. * @property integer $store_id
  22. * @property integer $type
  23. * @property integer $order_id
  24. * @property integer $shop_id
  25. * @property integer $amount
  26. * @property integer $is_delete
  27. * @property integer $status
  28. * @property string $version
  29. * @property string $the_desc
  30. * @property integer $user_id
  31. * @property integer $created_at
  32. */
  33. class ShopShare extends \yii\db\ActiveRecord
  34. {
  35. /**
  36. * @inheritdoc
  37. */
  38. public static function tableName()
  39. {
  40. return '{{%shop_share}}';
  41. }
  42. /**
  43. * @inheritdoc
  44. */
  45. public function rules()
  46. {
  47. return [
  48. [['store_id', 'type', 'order_id', 'shop_id', 'is_delete', 'user_id', 'created_at'], 'integer'],
  49. [['amount'], 'number'],
  50. [['version'], 'string', 'max' => 255],
  51. [['the_desc'], 'string', 'max' => 255],
  52. ];
  53. }
  54. /**
  55. * @inheritdoc
  56. */
  57. public function attributeLabels()
  58. {
  59. return [
  60. 'id' => 'ID',
  61. 'store_id' => 'Store ID',
  62. 'type' => '类型 类型 0--普通 1--秒杀',
  63. 'order_id' => '订单id',
  64. 'shop_id' => '团长id',
  65. 'amount' => '团长佣金',
  66. 'is_delete' => 'Is Delete',
  67. 'version' => 'Version',
  68. 'user_id' => '下单用户id',
  69. 'the_desc' => '备注',
  70. 'created_at' => '添加时间'
  71. ];
  72. }
  73. }