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
686 B

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