tiago/db_structure #2

Merged
tscholten merged 7 commits from tiago/db_structure into master 2026-07-23 16:00:24 +00:00
2 changed files with 23 additions and 9 deletions
Showing only changes of commit 33d3b9db80 - Show all commits

23
src/fiber_package/refs.py Normal file
View File

@ -0,0 +1,23 @@
from dataclasses import dataclass
from pydantic import UUID7
from typing import Literal
@dataclass(slots=True)
class SystemRef(Ref):
uuid: UUID7
collection: Literal["system"] = "system"
class CommitteeRef(Ref):
uuid: UUID7
collection: Literal["committee"] = "committee"
Ref = SystemRef | CommitteeRef
# TODO....
EntityList = Annotated[list[UUID4], Field(default_factory=list)]
GroupList = Annotated[list[UUID4], Field(default_factory=list)]
EntityRef = UUID4
GroupRef = UUID4

View File

@ -1,9 +0,0 @@
from typing import Annotated
from pydantic import RootModel, Field, UUID4
EntityList = Annotated[list[UUID4], Field(default_factory=list)]
GroupList = Annotated[list[UUID4], Field(default_factory=list)]
EntityRef = UUID4
GroupRef = UUID4