changed back to datetime

This commit is contained in:
Philip Cheung 2024-10-08 12:27:36 +08:00
parent 8921bc080c
commit dbe997f140
2 changed files with 30 additions and 1 deletions

View File

@ -0,0 +1,29 @@
"""changed back to datetime
Revision ID: 7acc8c28d84c
Revises: 16f759612879
Create Date: 2024-10-08 12:27:12.985853
"""
from alembic import op
import sqlalchemy as sa
import sqlmodel.sql.sqltypes
# revision identifiers, used by Alembic.
revision = '7acc8c28d84c'
down_revision = '16f759612879'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
pass
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
pass
# ### end Alembic commands ###

View File

@ -212,7 +212,7 @@ class CoursePublic(CourseBase):
images: list["Image"] images: list["Image"]
info_images: list["Info_Image"] info_images: list["Info_Image"]
schedule: list["Schedule"] schedule: list["Schedule"]
created_at: str created_at: datetime
class CoursesPublic(SQLModel): class CoursesPublic(SQLModel):
data: list[CoursePublic] data: list[CoursePublic]