diff --git a/appview/models/recents.go b/appview/models/recents.go new file mode 100644 index 00000000..265c4cba --- /dev/null +++ b/appview/models/recents.go @@ -0,0 +1,19 @@ +package models + +import "time" + +type RecentLinkType string + +const ( + RecentLinkTypeRepo RecentLinkType = "repo" + RecentLinkTypeIssue RecentLinkType = "issue" + RecentLinkTypePull RecentLinkType = "pull" +) + +type RecentLink struct { + Id int64 + UserDid string + LinkType RecentLinkType + Target string // repo DID for repos; AT-URI string for issues/pulls + Visited time.Time +}