aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend/graphql/model/generated.go
blob: 11f96920a2ffb7ab104b34bce3ad11364fe772fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
// Code generated by github.com/99designs/gqlgen, DO NOT EDIT.

package model

// Represents an individual article/post from a feed
type Article struct {
	// Unique identifier for the article
	ID string `json:"id"`
	// ID of the feed this article belongs to
	FeedID string `json:"feedId"`
	// GUID from the RSS/Atom feed (unique identifier from feed)
	GUID string `json:"guid"`
	// Title of the article
	Title string `json:"title"`
	// URL/link to the original article
	URL string `json:"url"`
	// Whether the article has been marked as read
	IsRead bool `json:"isRead"`
	// The feed this article belongs to
	Feed *Feed `json:"feed"`
}

// Authentication payload returned from login mutation
type AuthPayload struct {
	// The authenticated user
	User *User `json:"user"`
}

// Represents a feed subscription in the system
type Feed struct {
	// Unique identifier for the feed
	ID string `json:"id"`
	// URL of the RSS/Atom feed
	URL string `json:"url"`
	// Title of the feed (extracted from feed metadata)
	Title string `json:"title"`
	// Timestamp when the feed was last fetched
	FetchedAt string `json:"fetchedAt"`
	// Whether the user is currently subscribed to this feed
	IsSubscribed bool `json:"isSubscribed"`
	// Articles belonging to this feed
	Articles []*Article `json:"articles"`
}

// Root mutation type for modifying data
type Mutation struct {
}

// Root query type for reading data
type Query struct {
}

// Represents a user in the system
type User struct {
	// Unique identifier for the user
	ID string `json:"id"`
	// Username of the user
	Username string `json:"username"`
}