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

11 lines
288 B
Python
Raw Normal View History

2020-07-19 00:13:49 +02:00
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()