InviteNewUsersGiveGiftLog.php 789 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /**
  3. *
  4. *
  5. * @category xxx
  6. * @package PSR
  7. * @subpackage Documentation\API
  8. * @author xxx <xxx@xxx.com>
  9. * @license GPL https://xxx.com
  10. * @link https://xxx.com
  11. * @ctime: 2020/4/15 14:24
  12. */
  13. namespace App\Models;
  14. class InviteNewUsersGiveGiftLog extends Model
  15. {
  16. protected $table = 'invite_new_users_give_gift_logs';
  17. protected $fillable = ['user_id', 'invite_new_users_configs_id', 'gift_type', 'gift_id', 'gift_num'];
  18. protected $guarded = [];
  19. const GIFT_TYPE_CARD = 'card';
  20. const GIFT_TYPE_COUPON = 'coupon';
  21. const GIFT_TYPE_BALANCE = 'balance';
  22. public static $giftTypeMaps = [
  23. self::GIFT_TYPE_CARD => '骑行卡',
  24. self::GIFT_TYPE_COUPON => '优惠券',
  25. self::GIFT_TYPE_BALANCE => '余额',
  26. ];
  27. }