first commit
This commit is contained in:
commit
f575355ebd
46 files changed
+2757
No files matched your search
@@ -0,0 +1,62 @@
|
||||
# This is an auto-generated Django model module.
|
||||
# You'll have to do the following manually to clean this up:
|
||||
# * Rearrange models' order
|
||||
# * Make sure each model has one field with primary_key=True
|
||||
# * Make sure each ForeignKey and OneToOneField has `on_delete` set to the desired behavior
|
||||
# * Remove `managed = False` lines if you wish to allow Django to create, modify, and delete the table
|
||||
# Feel free to rename the models, but don't rename db_table values or field names.
|
||||
from django.db import models
|
||||
|
||||
|
||||
class GdTeam(models.Model):
|
||||
id = models.BigAutoField(primary_key=True)
|
||||
name = models.CharField(max_length=100)
|
||||
ist_stamm = models.IntegerField()
|
||||
|
||||
class Meta:
|
||||
managed = False
|
||||
db_table = 'gd_team'
|
||||
|
||||
|
||||
class GdFolge(models.Model):
|
||||
id = models.BigAutoField(primary_key=True)
|
||||
folgen_nummer = models.IntegerField()
|
||||
datum = models.DateField()
|
||||
moderator = models.CharField(max_length=100)
|
||||
|
||||
class Meta:
|
||||
managed = False
|
||||
db_table = 'gd_folge'
|
||||
|
||||
|
||||
class GdFolgepanel(models.Model):
|
||||
id = models.BigAutoField(primary_key=True)
|
||||
position = models.IntegerField()
|
||||
folge = models.ForeignKey(GdFolge, models.DO_NOTHING)
|
||||
team_member = models.ForeignKey(GdTeam, models.DO_NOTHING)
|
||||
|
||||
class Meta:
|
||||
managed = False
|
||||
db_table = 'gd_folgepanel'
|
||||
unique_together = (('folge', 'position'),)
|
||||
|
||||
|
||||
class GdFrage(models.Model):
|
||||
id = models.BigAutoField(primary_key=True)
|
||||
frage_text = models.TextField()
|
||||
zuschauer_frage = models.IntegerField()
|
||||
folge = models.ForeignKey(GdFolge, models.DO_NOTHING)
|
||||
|
||||
class Meta:
|
||||
managed = False
|
||||
db_table = 'gd_frage'
|
||||
|
||||
|
||||
class GdFrageantwort(models.Model):
|
||||
id = models.BigAutoField(primary_key=True)
|
||||
antwort_text = models.TextField()
|
||||
frage = models.OneToOneField(GdFrage, models.DO_NOTHING)
|
||||
|
||||
class Meta:
|
||||
managed = False
|
||||
db_table = 'gd_frageantwort'
|
||||
Reference in new issue
Block a user