28 lines
728 B
Python
28 lines
728 B
Python
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__'
|