mirror of https://github.com/openspug/spug
U api update
parent
94be8d2dff
commit
630d107e35
|
@ -7,7 +7,7 @@ import json
|
|||
|
||||
class App(models.Model, ModelMixin):
|
||||
name = models.CharField(max_length=50)
|
||||
key = models.CharField(max_length=50)
|
||||
key = models.CharField(max_length=50, unique=True)
|
||||
desc = models.CharField(max_length=255, null=True)
|
||||
rel_apps = models.TextField(null=True)
|
||||
rel_services = models.TextField(null=True)
|
||||
|
|
|
@ -20,7 +20,7 @@ class Environment(models.Model, ModelMixin):
|
|||
|
||||
class Service(models.Model, ModelMixin):
|
||||
name = models.CharField(max_length=50)
|
||||
key = models.CharField(max_length=50)
|
||||
key = models.CharField(max_length=50, unique=True)
|
||||
desc = models.CharField(max_length=255, null=True)
|
||||
created_at = models.CharField(max_length=20, default=human_datetime)
|
||||
created_by = models.ForeignKey(User, on_delete=models.PROTECT)
|
||||
|
|
Loading…
Reference in New Issue