This commit is contained in:
2024-12-08 15:16:43 +03:00
parent ed33722449
commit 8fb349d74b
17 changed files with 251 additions and 4 deletions

14
schemas/models.py Normal file
View File

@@ -0,0 +1,14 @@
from django.db import models
# Create your models here.
class Schema(models.Model):
project = models.ForeignKey('web.Project', on_delete=models.CASCADE)
name = models.TextField()
data = models.TextField(default='', blank=True)
class Meta:
indexes = [
models.Index(fields=['project'])
]