mirror of
https://github.com/eigent-ai/eigent.git
synced 2026-05-01 05:00:13 +00:00
update
This commit is contained in:
parent
c8a0a21ef2
commit
3f21c2b2c2
83 changed files with 6355 additions and 0 deletions
13
server/app/model/user/admin_role.py
Normal file
13
server/app/model/user/admin_role.py
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
from pydantic import BaseModel
|
||||
from sqlmodel import Field
|
||||
from app.model.abstract.model import AbstractModel
|
||||
|
||||
|
||||
class AdminRole(AbstractModel, table=True):
|
||||
admin_id: int = Field(primary_key=True)
|
||||
role_id: int = Field(primary_key=True)
|
||||
|
||||
|
||||
class AdminRoleIn(BaseModel):
|
||||
admin_id: int
|
||||
role_ids: list[int]
|
||||
Loading…
Add table
Add a link
Reference in a new issue