Contract.php 4.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Database\Eloquent\Model;
  4. use Prettus\Repository\Contracts\Transformable;
  5. use Prettus\Repository\Traits\TransformableTrait;
  6. /**
  7. * Class Contract.
  8. *
  9. * @package namespace App\Models;
  10. * @property int $id
  11. * @property int $m_id m_id
  12. * @property int $type 类型:1:初投,2:复投
  13. * @property int $status 1:广播中,2:成功,3:失败
  14. * @property string $hash 交易hash
  15. * @property string $broadcast_data 交易详情
  16. * @property float $money 投入金额
  17. * @property string $error_msg 错误内容
  18. * @property \Illuminate\Support\Carbon|null $created_at
  19. * @property \Illuminate\Support\Carbon|null $updated_at
  20. * @method static \Illuminate\Database\Eloquent\Builder|Contract newModelQuery()
  21. * @method static \Illuminate\Database\Eloquent\Builder|Contract newQuery()
  22. * @method static \Illuminate\Database\Eloquent\Builder|Contract query()
  23. * @method static \Illuminate\Database\Eloquent\Builder|Contract whereBroadcastData($value)
  24. * @method static \Illuminate\Database\Eloquent\Builder|Contract whereCreatedAt($value)
  25. * @method static \Illuminate\Database\Eloquent\Builder|Contract whereErrorMsg($value)
  26. * @method static \Illuminate\Database\Eloquent\Builder|Contract whereHash($value)
  27. * @method static \Illuminate\Database\Eloquent\Builder|Contract whereId($value)
  28. * @method static \Illuminate\Database\Eloquent\Builder|Contract whereMId($value)
  29. * @method static \Illuminate\Database\Eloquent\Builder|Contract whereMoney($value)
  30. * @method static \Illuminate\Database\Eloquent\Builder|Contract whereStatus($value)
  31. * @method static \Illuminate\Database\Eloquent\Builder|Contract whereType($value)
  32. * @method static \Illuminate\Database\Eloquent\Builder|Contract whereUpdatedAt($value)
  33. * @mixin \Eloquent
  34. * @property float $direct_proportion 直推比例
  35. * @property float $grant_proportion 均富比例
  36. * @property float $point_proportion 见点比例
  37. * @property float $dao_proportion dao比例
  38. * @property float $technology_proportion 技术比例
  39. * @property float $reveal_proportion 托底比例
  40. * @property float|null $parent_proportion 族谱比例
  41. * @method static \Illuminate\Database\Eloquent\Builder|Contract whereDaoProportion($value)
  42. * @method static \Illuminate\Database\Eloquent\Builder|Contract whereDirectProportion($value)
  43. * @method static \Illuminate\Database\Eloquent\Builder|Contract whereGrantProportion($value)
  44. * @method static \Illuminate\Database\Eloquent\Builder|Contract whereParentProportion($value)
  45. * @method static \Illuminate\Database\Eloquent\Builder|Contract wherePointProportion($value)
  46. * @method static \Illuminate\Database\Eloquent\Builder|Contract whereRevealProportion($value)
  47. * @method static \Illuminate\Database\Eloquent\Builder|Contract whereTechnologyProportion($value)
  48. * @property string|null $contract_sn 合约编号
  49. * @method static \Illuminate\Database\Eloquent\Builder|Contract whereContractSn($value)
  50. * @property float $platform_money 平台收益数量
  51. * @property float $indirect_proportion 间推比例
  52. * @property float $team_proportion 团队比例
  53. * @property float $common_proportion 公排比例
  54. * @property float $sediment_proportion 沉淀比例
  55. * @property float|null $agency_proportion 代币比例
  56. * @property int|null $is_out 是否公排出局
  57. * @method static \Illuminate\Database\Eloquent\Builder|Contract whereAgencyProportion($value)
  58. * @method static \Illuminate\Database\Eloquent\Builder|Contract whereCommonProportion($value)
  59. * @method static \Illuminate\Database\Eloquent\Builder|Contract whereIndirectProportion($value)
  60. * @method static \Illuminate\Database\Eloquent\Builder|Contract whereIsOut($value)
  61. * @method static \Illuminate\Database\Eloquent\Builder|Contract wherePlatformMoney($value)
  62. * @method static \Illuminate\Database\Eloquent\Builder|Contract whereSedimentProportion($value)
  63. * @method static \Illuminate\Database\Eloquent\Builder|Contract whereTeamProportion($value)
  64. */
  65. class Contract extends Model implements Transformable
  66. {
  67. use TransformableTrait;
  68. /**
  69. * The attributes that are mass assignable.
  70. *
  71. * @var array
  72. */
  73. protected $guarded = ['id', 'updated_at', 'created_at'];
  74. }