FeedAlgorithmModel.php 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php
  2. namespace App\Models\Common;
  3. use App\Models\Model;
  4. /**
  5. * App\Models\Common\FeedAlgorithmModel
  6. *
  7. * @property int $id 主键
  8. * @property \Illuminate\Support\Carbon $created_at 创建时间
  9. * @property \Illuminate\Support\Carbon $open_at 开启时间
  10. * @property \Illuminate\Support\Carbon $end_at 结束时间
  11. * @property string $name 方案名称
  12. * @property string|null $alias 方案别名
  13. * @property string $man_url 男生请求
  14. * @property string $woman_url 女生请求
  15. * @property int $rate 分配比例[0-100]
  16. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Common\FeedAlgorithmModel newModelQuery()
  17. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Common\FeedAlgorithmModel newQuery()
  18. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Common\FeedAlgorithmModel query()
  19. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Common\FeedAlgorithmModel whereAlias($value)
  20. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Common\FeedAlgorithmModel whereCreatedAt($value)
  21. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Common\FeedAlgorithmModel whereEndAt($value)
  22. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Common\FeedAlgorithmModel whereId($value)
  23. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Common\FeedAlgorithmModel whereManUrl($value)
  24. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Common\FeedAlgorithmModel whereName($value)
  25. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Common\FeedAlgorithmModel whereOpenAt($value)
  26. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Common\FeedAlgorithmModel whereRate($value)
  27. * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Common\FeedAlgorithmModel whereWomanUrl($value)
  28. * @mixin \Eloquent
  29. */
  30. class FeedAlgorithmModel extends Model
  31. {
  32. protected $table = "kdgx_fpdx_feed_algorithms";
  33. public const UPDATED_AT = null;
  34. protected $fillable = array(
  35. 'id',
  36. 'open_at',
  37. 'end_at',
  38. 'name',
  39. 'alias',
  40. 'man_url',
  41. 'woman_url'
  42. );
  43. protected $casts = array(
  44. 'open_at' => 'datetime',
  45. 'end_at' => 'datetime'
  46. );
  47. }