Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update models.go #14

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion models.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,16 @@ type Point struct {

// Interaction represents an event or relationship between actors.
type Interaction struct {
Type string // The type of interaction (e.g., conflict, alliance)
Type string // The type of interaction (e.g., problematization, interessment, enrollment, mobilization)
Participants []string // IDs of the actors involved
Location Point // Where the interaction takes place, if applicable
Timestamp int64 // When the interaction occurred
}

// Actors represent all actors in the network, whether human or non-human.
type Actor struct {
ID string `json:"id"` // Unique ID for the Actant
Type string `json:"iconType"` // The type of actor, if non-human
Location Point `json:"location"` // Where the Actant is located, if applicable
Faction Faction `json:"faction"` // Controlling faction, if applicable
}