CardRidingUserBags.php 739 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. namespace App\Models;
  3. class CardRidingUserBags extends Model
  4. {
  5. public $table = 'card_riding_user_bags';
  6. // protected $fillable = ['user_id','riding_card_id','card_riding_order_id','take_effect_time',
  7. // 'deduction_money','expiration_time','is_limit_times','can_ridding_times','day_can_ridding_times','status'];
  8. protected $guarded = [];
  9. const STATUS_OK = 1;
  10. const STATUS_NO = 0;
  11. public $statusMaps = [
  12. self::STATUS_OK => '骑行卡有效',
  13. self::STATUS_NO => '骑行卡失效'
  14. ];
  15. const LIMIT_TIMES_YES = 1;
  16. const LIMIT_TIMES_NO = 0;
  17. public static $limitTimesMaps = [
  18. self::LIMIT_TIMES_NO => '不限次',
  19. self::LIMIT_TIMES_YES => '限次',
  20. ];
  21. }