forked from sr2/cloud-api
18 lines
345 B
Python
18 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)
|