18 lines
345 B
Python
18 lines
345 B
Python
"""
|
|
Database models for the services module
|
|
|
|
Models:
|
|
- Service:
|
|
- id[PK], name[U], api_key[U]
|
|
"""
|
|
from sqlalchemy import Column, Integer, String
|
|
|
|
from src.database import Base
|
|
|
|
|
|
class Service(Base):
|
|
__tablename__ = "service"
|
|
|
|
id = Column(Integer, primary_key=True)
|
|
name = Column(String, unique=True)
|
|
api_key = Column(String, unique=True)
|