VideoGoodsShare.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?php
  2. /**
  3. * 厦门云联储网络科技有限公司
  4. * https://www.baokuaiyun.com
  5. * Copyright (c) 2023 爆块云 All rights reserved.
  6. */
  7. namespace app\models;
  8. use yii\db\ActiveRecord;
  9. use yii\behaviors\TimestampBehavior;
  10. use Yii;
  11. /**
  12. * This is the model class for table "{{%video_goods_share}}".
  13. *
  14. * @property int $id
  15. * @property int $order_id 订单id
  16. * @property int $order_detail 订单详细表id
  17. * @property int $goods_id 商品id
  18. * @property int $video_goods_id 抖品id
  19. * @property int $author_user_id 作者user_id
  20. * @property float $proportion 金额比例
  21. * @property float $profit 金额
  22. * @property int $created_at 创建时间
  23. * @property int $send_time 发送时间
  24. * @property int $is_send 是否发送
  25. * @property int $store_id 商城id
  26. * @property int $num 购买数
  27. * @property int $is_pay 订单是否支付
  28. */
  29. class VideoGoodsShare extends \yii\db\ActiveRecord
  30. {
  31. /**
  32. * {@inheritdoc}
  33. */
  34. public static function tableName()
  35. {
  36. return '{{%video_goods_share}}';
  37. }
  38. /**
  39. * {@inheritdoc}
  40. */
  41. public function rules()
  42. {
  43. return [
  44. [['id', 'order_id', 'order_detail', 'goods_id', 'video_goods_id', 'author_user_id', 'store_id', 'created_at', 'send_time', 'is_send', 'num', 'is_pay'], 'integer'],
  45. [['proportion', 'profit'], 'number']
  46. ];
  47. }
  48. }