McDuck/users/serializers.py

28 lines
728 B
Python
Raw Normal View History

2024-08-29 09:21:58 +00:00
from rest_framework import serializers
from .models import User, DailyReward, DailyRewardsList, Balance, Levels
class UserSerializer(serializers.ModelSerializer):
class Meta:
model = User
fields = '__all__'
class DailyRewardSerializer(serializers.ModelSerializer):
class Meta:
model = DailyReward
fields = '__all__'
class DailyRewardsListSerializer(serializers.ModelSerializer):
class Meta:
model = User
fields = '__all__'
class BalanceSerializer(serializers.ModelSerializer):
class Meta:
model = Balance
fields = '__all__'
class LevelsSerializer(serializers.ModelSerializer):
class Meta:
model = Levels
fields = '__all__'