19 lines
345 B
Python
19 lines
345 B
Python
|
|
"""
|
||
|
|
Database models for the services module
|
||
|
|
|
||
|
|
Models:
|
||
|
|
- List: Description
|
||
|
|
- Models: Description
|
||
|
|
"""
|
||
|
|
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)
|