mirror of
https://github.com/JefferyHcool/BiliNote.git
synced 2026-05-06 20:42:52 +08:00
17 lines
556 B
Python
17 lines
556 B
Python
from sqlalchemy import Column, String, Integer, DateTime, func
|
|
from sqlalchemy.orm import declarative_base
|
|
|
|
from app.db.engine import Base
|
|
|
|
|
|
class Provider(Base):
|
|
__tablename__ = "providers"
|
|
|
|
id = Column(String, primary_key=True)
|
|
name = Column(String, nullable=False)
|
|
logo = Column(String, nullable=False)
|
|
type = Column(String, nullable=False)
|
|
api_key = Column(String, nullable=False)
|
|
base_url = Column(String, nullable=False)
|
|
enabled = Column(Integer, default=1)
|
|
created_at = Column(DateTime, server_default=func.now()) |