You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
650 B

  1. <?php
  2. declare (strict_types=1);
  3. namespace App\Model\v3;
  4. use App\Model\Model;
  5. /**
  6. */
  7. class UserBalance extends Model
  8. {
  9. const USER_TYPE_MP = 1;
  10. const USER_TYPE_MM = 2;
  11. const USER_TYPE_CS = 3;
  12. /**
  13. * The table associated with the model.
  14. *
  15. * @var string
  16. */
  17. protected $table = 'lanzu_user_balance';
  18. /**
  19. * The attributes that are mass assignable.
  20. *
  21. * @var array
  22. */
  23. protected $fillable = [
  24. 'source_id',
  25. 'user_type',
  26. 'balance'
  27. ];
  28. /**
  29. * The attributes that should be cast to native types.
  30. *
  31. * @var array
  32. */
  33. protected $casts = [];
  34. }