Conversion_Kitchen_Code/kitchen_counter/institutional/serializers.py

74 lines
1.9 KiB
Python
Raw Normal View History

2024-04-27 09:33:09 +00:00
from rest_framework import serializers
from .models import CorporateMember, CorporateUser, Transaction, CreditRequest, Payment, CreditRequestFromMember, Institute, AffiliatedStudent, UnaffiliatedStudent, WaitForInstituteStudent, CreditRequestStudent, CreditRequestInstitute
class CorporateMemberSerializer(serializers.ModelSerializer):
class Meta:
model = CorporateMember
fields = '__all__'
class CorporateUserSerializer(serializers.ModelSerializer):
class Meta:
model = CorporateUser
fields = '__all__'
class TransactionSerializer(serializers.ModelSerializer):
class Meta:
model = Transaction
fields = '__all__'
class CreditRequestSerializer(serializers.ModelSerializer):
class Meta:
model = CreditRequest
fields = '__all__'
class CreditRequestMemberSerializer(serializers.ModelSerializer):
class Meta:
model = CreditRequestFromMember
fields = '__all__'
class PaymentSerializer(serializers.ModelSerializer):
class Meta:
model = Payment
fields = '__all__'
class InstituteSerializer(serializers.ModelSerializer):
class Meta:
model = Institute
fields = '__all__'
class AffiliatedStudentSerializer(serializers.ModelSerializer):
class Meta:
model = AffiliatedStudent
fields = '__all__'
class UnaffiliatedStudentSerializer(serializers.ModelSerializer):
class Meta:
model = UnaffiliatedStudent
fields = '__all__'
class WaitForInstituteStudentSerializer(serializers.ModelSerializer):
class Meta:
model = WaitForInstituteStudent
fields = '__all__'
class CreditRequestStudentSerializer(serializers.ModelSerializer):
class Meta:
model = CreditRequestStudent
fields = '__all__'
class CreditRequestInstituteSerializer(serializers.ModelSerializer):
class Meta:
model = CreditRequestInstitute
fields = '__all__'