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.

55 lines
1.0 KiB

  1. <?php
  2. declare (strict_types=1);
  3. namespace App\Model;
  4. /**
  5. */
  6. class UserBalance extends Model
  7. {
  8. /**
  9. * 账户类型
  10. *
  11. * 总账
  12. * USER_TYPE_LEDGER / -1
  13. *
  14. * 用户
  15. * USER_TYPE_USER / 1
  16. *
  17. * MP用户账户,服务商、市场经理、服务站点等
  18. * USER_TYPE_MP / 2
  19. * USER_TYPE_MM / 3
  20. * USER_TYPE_CS / 4
  21. *
  22. * 商户账户
  23. * USER_TYPE_STORE / 5
  24. */
  25. const USER_TYPE_LEDGER = -1;
  26. const USER_TYPE_USER = 1;
  27. const USER_TYPE_MP = 2;
  28. const USER_TYPE_MM = 3;
  29. const USER_TYPE_CS = 4;
  30. const USER_TYPE_STORE = 5;
  31. /**
  32. * The table associated with the model.
  33. *
  34. * @var string
  35. */
  36. protected $table = 'lanzu_user_balance';
  37. /**
  38. * The attributes that are mass assignable.
  39. *
  40. * @var array
  41. */
  42. protected $fillable = [
  43. 'source_id',
  44. 'user_type',
  45. 'balance'
  46. ];
  47. /**
  48. * The attributes that should be cast to native types.
  49. *
  50. * @var array
  51. */
  52. protected $casts = [];
  53. }