Skip to content

Commit 6ccdee1

Browse files
committed
New WizardAtPycamp Model
1 parent 5e7dcd3 commit 6ccdee1

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/pycamp_bot/models.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,18 @@ class PycampistaAtPycamp(BaseModel):
8787
pycampista = pw.ForeignKeyField(Pycampista)
8888

8989

90+
class WizardAtPycamp(BaseModel):
91+
'''
92+
Many to many relationship. Ona pycampista will attend many pycamps. A
93+
pycamps will have many pycampistas
94+
'''
95+
pycamp = pw.ForeignKeyField(Pycamp)
96+
wizard = pw.ForeignKeyField(Pycampista)
97+
slot_ini = pw.DateTimeField()
98+
slot_end = pw.DateTimeField()
99+
100+
101+
90102
class Slot(BaseModel):
91103
'''
92104
Time slot representation

0 commit comments

Comments
 (0)