Files
Pulse-API/solution/pulse/api/countries/models.py
T
2024-03-02 13:22:29 +03:00

16 lines
345 B
Python

from django.db import models
class Country(models.Model):
name = models.CharField(max_length=100)
alpha2 = models.CharField(max_length=2)
alpha3 = models.CharField(max_length=3)
region = models.CharField()
class Meta:
db_table = "countries"
managed = False
def __str__(self):
return self.name