mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-06-27 16:10:30 +08:00
18 lines
439 B
Python
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
|