import uuid from django.db import models # Create your models here. 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) 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) created = models.DateTimeField('创建时间', auto_now_add=True) updated = models.DateTimeField('更新时间', auto_now=True) deleted = models.BooleanField(default=False) def __str__(self): return self.sn