feat: Initialize FastAPI AI Gateway project structure with authentication, module management, and LLM API routing.
This commit is contained in:
1
app/models/__init__.py
Normal file
1
app/models/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
from app.models.module import Module
|
||||
16
app/models/module.py
Normal file
16
app/models/module.py
Normal file
@@ -0,0 +1,16 @@
|
||||
from sqlalchemy import Column, Integer, String, Boolean, DateTime
|
||||
from datetime import datetime
|
||||
from app.core.database import Base
|
||||
|
||||
class Module(Base):
|
||||
__tablename__ = "modules"
|
||||
|
||||
id = Column(Integer, primary_key=True, index=True)
|
||||
name = Column(String, unique=True, index=True)
|
||||
secret_key = Column(String, unique=True, index=True)
|
||||
program = Column(String, nullable=True)
|
||||
lob = Column(String, nullable=True)
|
||||
job_code = Column(String, nullable=True)
|
||||
is_active = Column(Boolean, default=True)
|
||||
created_at = Column(DateTime, default=datetime.utcnow)
|
||||
last_rotated_at = Column(DateTime, default=datetime.utcnow)
|
||||
Reference in New Issue
Block a user