diff --git a/person/parties.go b/person/parties.go new file mode 100644 index 0000000..5fbd78d --- /dev/null +++ b/person/parties.go @@ -0,0 +1,24 @@ +package person + +import ( + "github.com/ectrc/snow/aid" + "github.com/google/uuid" +) + +type Party struct{ + ID string + Members []*Person +} + +var ( + Parties = aid.GenericSyncMap[Party]{} +) + +func NewParty() *Party { + party := &Party{ + ID: uuid.New().String(), + } + Parties.Set(party.ID, party) + + return party +} \ No newline at end of file