GrantItem.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 GrantItem.
  8. *
  9. * @package namespace App\Models;
  10. * @property int $id
  11. * @property int $m_id 会员ID
  12. * @property int $contract_id 合约ID
  13. * @property float $add_money 分配数量
  14. * @property \Illuminate\Support\Carbon|null $created_at
  15. * @property \Illuminate\Support\Carbon|null $updated_at
  16. * @method static \Illuminate\Database\Eloquent\Builder|GrantItem newModelQuery()
  17. * @method static \Illuminate\Database\Eloquent\Builder|GrantItem newQuery()
  18. * @method static \Illuminate\Database\Eloquent\Builder|GrantItem query()
  19. * @method static \Illuminate\Database\Eloquent\Builder|GrantItem whereAddMoney($value)
  20. * @method static \Illuminate\Database\Eloquent\Builder|GrantItem whereContractId($value)
  21. * @method static \Illuminate\Database\Eloquent\Builder|GrantItem whereCreatedAt($value)
  22. * @method static \Illuminate\Database\Eloquent\Builder|GrantItem whereId($value)
  23. * @method static \Illuminate\Database\Eloquent\Builder|GrantItem whereMId($value)
  24. * @method static \Illuminate\Database\Eloquent\Builder|GrantItem whereUpdatedAt($value)
  25. * @mixin \Eloquent
  26. */
  27. class GrantItem extends Model implements Transformable
  28. {
  29. use TransformableTrait;
  30. /**
  31. * The attributes that are mass assignable.
  32. *
  33. * @var array
  34. */
  35. protected $guarded = ['id', 'updated_at', 'created_at'];
  36. }