Files
piaps-course-work-university/lena_backend/app/models/orders/next_course.py

13 lines
466 B
Python

# models/orders/next_course.py
from sqlalchemy import Column, Integer
from ..order import AbstractOrder
from sqlalchemy.orm import relationship
class NextCourseOrder(AbstractOrder):
__tablename__ = "next_course_orders"
# Можно добавить поле для нового курса, если нужно
new_course = Column(Integer)
students = relationship("Student", secondary="next_student_association")
dean = relationship("Dean")