Files
Open-Assistant/backend/app/models/service_client.py
T
2022-12-13 12:38:59 +01:00

18 lines
439 B
Python

# -*- coding: utf-8 -*-
from typing import Optional
from sqlmodel import Field, SQLModel
class ServiceClient(SQLModel, table=True):
__tablename__ = "service_client"
id: Optional[int] = Field(default=None, primary_key=True)
name: str
api_key: str
service_admin_email: Optional[str] = None
api_key: str
can_append: bool = True
can_write: bool = False
can_delete: bool = False
can_read: bool = True