Refactor Timetable model to change start and end fields from string to time type
This commit is contained in:
parent
dc79405e42
commit
512fcf45f5
1 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
||||||
from sqlmodel import *
|
from sqlmodel import *
|
||||||
from datetime import date, datetime, timedelta
|
from datetime import date, datetime, timedelta, time
|
||||||
from sqlalchemy import func
|
from sqlalchemy import func
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
|
|
||||||
|
@ -29,8 +29,8 @@ class Timetable(SQLModel, table=True):
|
||||||
position : int
|
position : int
|
||||||
date: date
|
date: date
|
||||||
room: str | None
|
room: str | None
|
||||||
start: str
|
start: time
|
||||||
end: str
|
end: time
|
||||||
subject: str | None
|
subject: str | None
|
||||||
teacher: str | None
|
teacher: str | None
|
||||||
group: str | None
|
group: str | None
|
||||||
|
|
Loading…
Add table
Reference in a new issue