You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
381 B

from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker, declarative_base
# 修改为你自己的数据库信息
SQLALCHEMY_DATABASE_URL = "postgresql://postgres:123456@localhost:5433/hotel_management_system"
engine = create_engine(SQLALCHEMY_DATABASE_URL)
SessionLocal = sessionmaker(autocommit=False, autoflush=False, bind=engine)
Base = declarative_base()