mirror of
https://github.com/koloideal/DutyLog.git
synced 2026-06-10 10:25:29 +03:00
12 lines
352 B
Python
12 lines
352 B
Python
from sqlalchemy import Integer
|
|
from sqlalchemy.orm import Mapped, mapped_column
|
|
|
|
from dutylog.infrastructure.database.models.base import Base
|
|
|
|
|
|
class Room(Base):
|
|
__tablename__ = "rooms"
|
|
|
|
id: Mapped[int] = mapped_column(Integer, primary_key=True, autoincrement=True)
|
|
number: Mapped[int] = mapped_column(Integer, nullable=False, unique=True)
|