from rest_framework import serializers
from .models import Departments,Employees,Usermodel


class DeptSerializer(serializers.ModelSerializer):
    class Meta:
        model=Departments
        fields=(
            "deptID","deptName"
        )


class EmpSerializer(serializers.ModelSerializer):
    class Meta:
        model=Employees
        fields=(
            "empId","empName","dateJoin","department"
        )
class UserSerializer(serializers.ModelSerializer):
    class Meta:
        model=Usermodel
        fields=(
            "userId","userName","userPass"
        )
5ae973fc6a1448e79b217de94809871634d1aeb1
<mask token>


class UserSerializer(serializers.ModelSerializer):


    class Meta:
        model = Usermodel
        fields = 'userId', 'userName', 'userPass'

<mask token>


class EmpSerializer(serializers.ModelSerializer):


    class Meta:
        model = Employees
        fields = 'empId', 'empName', 'dateJoin', 'department'


class UserSerializer(serializers.ModelSerializer):


    class Meta:
        model = Usermodel
        fields = 'userId', 'userName', 'userPass'

<mask token>


class DeptSerializer(serializers.ModelSerializer):


    class Meta:
        model = Departments
        fields = 'deptID', 'deptName'


class EmpSerializer(serializers.ModelSerializer):


    class Meta:
        model = Employees
        fields = 'empId', 'empName', 'dateJoin', 'department'


class UserSerializer(serializers.ModelSerializer):


    class Meta:
        model = Usermodel
        fields = 'userId', 'userName', 'userPass'

from rest_framework import serializers
from .models import Departments, Employees, Usermodel


class DeptSerializer(serializers.ModelSerializer):


    class Meta:
        model = Departments
        fields = 'deptID', 'deptName'


class EmpSerializer(serializers.ModelSerializer):


    class Meta:
        model = Employees
        fields = 'empId', 'empName', 'dateJoin', 'department'


class UserSerializer(serializers.ModelSerializer):


    class Meta:
        model = Usermodel
        fields = 'userId', 'userName', 'userPass'

from rest_framework import serializers
from .models import Departments,Employees,Usermodel


class DeptSerializer(serializers.ModelSerializer):
    class Meta:
        model=Departments
        fields=(
            "deptID","deptName"
        )


class EmpSerializer(serializers.ModelSerializer):
    class Meta:
        model=Employees
        fields=(
            "empId","empName","dateJoin","department"
        )
class UserSerializer(serializers.ModelSerializer):
    class Meta:
        model=Usermodel
        fields=(
            "userId","userName","userPass"
        )