2019-11-13 09:54:59 +00:00
|
|
|
import uuid
|
|
|
|
|
2019-09-05 09:10:53 +00:00
|
|
|
from django.db import models
|
|
|
|
|
2019-11-13 09:54:59 +00:00
|
|
|
|
2019-09-05 09:10:53 +00:00
|
|
|
# Create your models here.
|
2019-11-13 09:54:59 +00:00
|
|
|
class Points(models.Model):
|
|
|
|
id = models.UUIDField('id', primary_key=True, default=uuid.uuid4)
|
|
|
|
sn = models.CharField('id', max_length=256, blank=True, null=True)
|
2019-11-15 01:15:31 +00:00
|
|
|
point_lon = models.CharField(max_length=256,null=True, blank=True)
|
|
|
|
point_lat = models.CharField(max_length=256,null=True, blank=True)
|
|
|
|
x = models.CharField(max_length=256,null=True, blank=True)
|
|
|
|
y = models.CharField(max_length=256,null=True, blank=True)
|
2019-11-13 09:54:59 +00:00
|
|
|
created = models.DateTimeField('创建时间', auto_now_add=True)
|
|
|
|
updated = models.DateTimeField('更新时间', auto_now=True)
|
|
|
|
deleted = models.BooleanField(default=False)
|
|
|
|
|
|
|
|
def __str__(self):
|
|
|
|
return self.sn
|