InviteNewUsersGiveGiftLog.php 750 B

123456789101112131415161718192021222324252627282930313233
  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. const GIFT_TYPE_CARD = 'card';
  19. const GIFT_TYPE_COUPON = 'coupon';
  20. const GIFT_TYPE_BALANCE = 'balance';
  21. public static $giftTypeMaps = [
  22. self::GIFT_TYPE_CARD => '骑行卡',
  23. self::GIFT_TYPE_COUPON => '优惠券',
  24. self::GIFT_TYPE_BALANCE => '余额',
  25. ];
  26. }