add:管理页面页码+Banner配置

This commit is contained in:
lan
2022-12-19 18:01:50 +08:00
parent 1c938948fd
commit 8a93dd5e38
4 changed files with 221 additions and 27 deletions
+8 -1
View File
@@ -1,5 +1,5 @@
import datetime
from sqlalchemy import Boolean, Column, Integer, String, DateTime
from sqlalchemy import Boolean, Column, Integer, String, DateTime, JSON
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.ext.asyncio import create_async_engine
from sqlalchemy.ext.asyncio.session import AsyncSession
@@ -20,6 +20,13 @@ async def get_session():
yield s
class Values(Base):
__tablename__ = 'values'
id = Column(Integer, primary_key=True, index=True)
key = Column(String, unique=True)
value = Column(JSON)
class Codes(Base):
__tablename__ = "codes"
id = Column(Integer, primary_key=True, index=True)