First steps with the new registration app
This commit is contained in:
9
new-registration-app/models.py
Normal file
9
new-registration-app/models.py
Normal file
@@ -0,0 +1,9 @@
|
||||
from sqlmodel import Field, SQLModel
|
||||
from datetime import datetime
|
||||
|
||||
class Event(SQLModel, table=True):
|
||||
id: int | None = Field(default=None, primary_key=True)
|
||||
title: str = Field(nullable=False)
|
||||
event_time: datetime = Field(nullable=False)
|
||||
registration_deadline: datetime = Field(nullable=False)
|
||||
description: str
|
||||
Reference in New Issue
Block a user