/
EastW
/
Reiai-python-FastAPI
Обзор
Документация
Войти
/
EastW
/
Reiai-python-FastAPI
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
api/core/models/role.py
12 строк
353 B
Dennis Mattews
code refactoring and updates
19 окт 2024, 05:44
19 окт 2024, 05:44
35c458d
Код
Авторство
О чём код?
# Модели для ролей from sqlalchemy import String from sqlalchemy.orm import Mapped, mapped_column from api.core.database.db_configs import Base # Модель для ролей class Role(Base): __tablename__ = 'roles' id: Mapped[int] = mapped_column(primary_key=True) name: Mapped[str] = mapped_column(String, unique=True)