1234567891011121314151617181920 |
-
- from sqlalchemy.ext.declarative import declarative_base
- from sqlalchemy.schema import MetaData
-
-
-
-
- NAMING_CONVENTION = {
- "ix": "ix_%(column_0_label)s",
- "uq": "uq__%(table_name)s__%(column_0_name)s",
-
-
-
- "fk": "fk_%(table_name)s_%(column_0_name)s_%(referred_table_name)s",
- "pk": "pk_%(table_name)s"
- }
-
- metadata = MetaData(naming_convention=NAMING_CONVENTION)
- DeclarativeBase = declarative_base(metadata=metadata)
|