text: from rest_framework import serializers
  
  from escape_rooms.accounts_app.models import User
  
  
  class UserNameSerializer(serializers.ModelSerializer):
      class Meta:
          model = User
          fields = ['id', 'username', 'first_name', 'last_name']
  
  
  class UserCreateSerializer(serializers.ModelSerializer):
      class Meta:
          model = User
          fields = ('id', 'username', 'password', 'email', 'phone_number', 'first_name', 'last_name')
          extra_kwargs = {'password': {'write_only': True, 'min_length': 8}}
          read_only_fields = ('id',)
  
      def create(self, validated_data):
          return User.objects.create_user(**validated_data)
  
  
  class UserUpdateSerializer(serializers.ModelSerializer):
      class Meta:
          model = User
          fields = ('id', 'username', 'email', 'phone_number', 'first_name', 'last_name')
          read_only_fields = ('id',)
  