13 lines
466 B
Python
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") |