add:管理页面页码+Banner配置
This commit is contained in:
+8
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user