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]