MemberBoth.php 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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 MemberBoth.
  8. *
  9. * @package namespace App\Models;
  10. * @property int $id
  11. * @property int $m_id m_id
  12. * @property int $left_id 左节点
  13. * @property int $right_id 右节点
  14. * @property int $parent_id 父级节点
  15. * @property int $direct_id 直推节点
  16. * @property string $parent_ids 父级族谱
  17. * @property string $child_ids 子族谱
  18. * @property \Illuminate\Support\Carbon|null $created_at
  19. * @property \Illuminate\Support\Carbon|null $updated_at
  20. * @method static \Illuminate\Database\Eloquent\Builder|MemberBoth newModelQuery()
  21. * @method static \Illuminate\Database\Eloquent\Builder|MemberBoth newQuery()
  22. * @method static \Illuminate\Database\Eloquent\Builder|MemberBoth query()
  23. * @method static \Illuminate\Database\Eloquent\Builder|MemberBoth whereChildIds($value)
  24. * @method static \Illuminate\Database\Eloquent\Builder|MemberBoth whereCreatedAt($value)
  25. * @method static \Illuminate\Database\Eloquent\Builder|MemberBoth whereDirectId($value)
  26. * @method static \Illuminate\Database\Eloquent\Builder|MemberBoth whereId($value)
  27. * @method static \Illuminate\Database\Eloquent\Builder|MemberBoth whereLeftId($value)
  28. * @method static \Illuminate\Database\Eloquent\Builder|MemberBoth whereMId($value)
  29. * @method static \Illuminate\Database\Eloquent\Builder|MemberBoth whereParentId($value)
  30. * @method static \Illuminate\Database\Eloquent\Builder|MemberBoth whereParentIds($value)
  31. * @method static \Illuminate\Database\Eloquent\Builder|MemberBoth whereRightId($value)
  32. * @method static \Illuminate\Database\Eloquent\Builder|MemberBoth whereUpdatedAt($value)
  33. * @mixin \Eloquent
  34. * @property int|null $tier_num 层级
  35. * @property int|null $is_end 是否完整
  36. * @method static \Illuminate\Database\Eloquent\Builder|MemberBoth whereIsEnd($value)
  37. * @method static \Illuminate\Database\Eloquent\Builder|MemberBoth whereTierNum($value)
  38. */
  39. class MemberBoth extends Model implements Transformable
  40. {
  41. use TransformableTrait;
  42. /**
  43. * The attributes that are mass assignable.
  44. *
  45. * @var array
  46. */
  47. protected $guarded = ['id', 'updated_at', 'created_at'];
  48. }