From dbe997f140a79cbd2b25d4cd122cf74b87d89ff2 Mon Sep 17 00:00:00 2001 From: Philip Cheung Date: Tue, 8 Oct 2024 12:27:36 +0800 Subject: [PATCH] changed back to datetime --- .../7acc8c28d84c_changed_back_to_datetime.py | 29 +++++++++++++++++++ backend/app/models.py | 2 +- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 backend/app/alembic/versions/7acc8c28d84c_changed_back_to_datetime.py diff --git a/backend/app/alembic/versions/7acc8c28d84c_changed_back_to_datetime.py b/backend/app/alembic/versions/7acc8c28d84c_changed_back_to_datetime.py new file mode 100644 index 0000000..e50b50f --- /dev/null +++ b/backend/app/alembic/versions/7acc8c28d84c_changed_back_to_datetime.py @@ -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 ### diff --git a/backend/app/models.py b/backend/app/models.py index d3fc7ca..f97b97f 100644 --- a/backend/app/models.py +++ b/backend/app/models.py @@ -212,7 +212,7 @@ class CoursePublic(CourseBase): images: list["Image"] info_images: list["Info_Image"] schedule: list["Schedule"] - created_at: str + created_at: datetime class CoursesPublic(SQLModel): data: list[CoursePublic]