lostplaces-backend/source/lostplaces/lostplaces_app/models.py

11 lines
288 B
Python

from django.db import models
# Create your models here.
class Place (models.Model):
name = models.CharField(max_length=50)
location = models.CharField(max_length=50)
latitude = models.FloatField()
longitude = models.FloatField()
description = models.TextField()