1
0
Fork 0
forked from sr2/cloud-api
cloud-api/src/service/models.py

20 lines
346 B
Python
Raw Normal View History

"""
Database models for the services module
Models:
2026-05-28 14:41:11 +01:00
- 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)