InviteCode.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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 InviteCode.
  8. *
  9. * @package namespace App\Models;
  10. * @method static \Illuminate\Database\Eloquent\Builder|InviteCode newModelQuery()
  11. * @method static \Illuminate\Database\Eloquent\Builder|InviteCode newQuery()
  12. * @method static \Illuminate\Database\Eloquent\Builder|InviteCode query()
  13. * @mixin \Eloquent
  14. * @property int $id
  15. * @property int $code 编码
  16. * @property int $status 状态
  17. * @property \Illuminate\Support\Carbon|null $created_at
  18. * @property \Illuminate\Support\Carbon|null $updated_at
  19. * @method static \Illuminate\Database\Eloquent\Builder|InviteCode whereCode($value)
  20. * @method static \Illuminate\Database\Eloquent\Builder|InviteCode whereCreatedAt($value)
  21. * @method static \Illuminate\Database\Eloquent\Builder|InviteCode whereId($value)
  22. * @method static \Illuminate\Database\Eloquent\Builder|InviteCode whereStatus($value)
  23. * @method static \Illuminate\Database\Eloquent\Builder|InviteCode whereUpdatedAt($value)
  24. */
  25. class InviteCode extends Model implements Transformable
  26. {
  27. use TransformableTrait;
  28. /**
  29. * The attributes that are mass assignable.
  30. *
  31. * @var array
  32. */
  33. protected $guarded = ['id', 'updated_at', 'created_at'];
  34. }