from sqlalchemy import (
    Table,
    Column,
    Integer,
    String,
    DateTime,
    Text,
    Boolean,
    Enum,
    ForeignKey,
)
from sqlalchemy.orm import relationship
from datetime import datetime
from pytz import timezone

from .base import Base

from app.schema.authority import Authority as AuthEnum


class Authority(Base):
    authority = Column(Enum(AuthEnum), primary_key=True)
    app_id = Column(String(36), primary_key=True)

    app = relationship("ClientApp", back_populates="authorities")

1c6eb91db2b249a5524da59b3ccc602dea474e11
<mask token>

<mask token>


class Authority(Base):
    <mask token>
    <mask token>
    <mask token>

<mask token>


class Authority(Base):
    authority = Column(Enum(AuthEnum), primary_key=True)
    app_id = Column(String(36), primary_key=True)
    app = relationship('ClientApp', back_populates='authorities')

from sqlalchemy import Table, Column, Integer, String, DateTime, Text, Boolean, Enum, ForeignKey
from sqlalchemy.orm import relationship
from datetime import datetime
from pytz import timezone
from .base import Base
from app.schema.authority import Authority as AuthEnum


class Authority(Base):
    authority = Column(Enum(AuthEnum), primary_key=True)
    app_id = Column(String(36), primary_key=True)
    app = relationship('ClientApp', back_populates='authorities')

from sqlalchemy import (
    Table,
    Column,
    Integer,
    String,
    DateTime,
    Text,
    Boolean,
    Enum,
    ForeignKey,
)
from sqlalchemy.orm import relationship
from datetime import datetime
from pytz import timezone

from .base import Base

from app.schema.authority import Authority as AuthEnum


class Authority(Base):
    authority = Column(Enum(AuthEnum), primary_key=True)
    app_id = Column(String(36), primary_key=True)

    app = relationship("ClientApp", back_populates="authorities")
