Skip to content

Commit

Permalink
track: add CreatedAt, DeletedAt and Last_Update fields (#16)
Browse files Browse the repository at this point in the history
Signed-off-by: Raphaël Pinson <[email protected]>
  • Loading branch information
raphink authored Dec 10, 2024
1 parent e5a132b commit f86c792
Showing 1 changed file with 24 additions and 18 deletions.
42 changes: 24 additions & 18 deletions instruqt/track.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,18 @@ type tracksQuery struct {

// Track represents the data structure for an Instruqt track.
type Track struct {
Slug string // The slug identifier for the track.
Id string // The unique identifier for the track.
Icon string // The icon associated with the track.
Title string // The title of the track.
Description string // The description of the track.
Teaser string // A teaser or short description of the track.
Level string // The difficulty level of the track.
Embed_Token string // The token used for embedding the track.
Statistics struct { // Statistics about the track.
Slug string // The slug identifier for the track.
Id string // The unique identifier for the track.
Icon string // The icon associated with the track.
Title string // The title of the track.
Description string // The description of the track.
Teaser string // A teaser or short description of the track.
Level string // The difficulty level of the track.
Embed_Token string // The token used for embedding the track.
CreatedAt time.Time // Timestamp of when track was created.
DeletedAt time.Time // Timestamp of when track was deleted.
Last_Update time.Time // Timestamp of when track has been last updated.
Statistics struct { // Statistics about the track.
Average_review_score float32 // The average review score of the track.
}
TrackTags []TrackTag // A list of tags associated with the track.
Expand All @@ -73,15 +76,18 @@ type TrackTag struct {
// SandboxTrack represents a track in a sandbox environment, including its details
// and associated challenges.
type SandboxTrack struct {
Id string // The unique identifier for the sandbox track.
Slug string // The slug identifier for the sandbox track.
Icon string // The icon associated with the sandbox track.
Title string // The title of the sandbox track.
Description string // The description of the sandbox track.
Teaser string // A teaser or short description of the sandbox track.
Level string // The difficulty level of the sandbox track.
Embed_Token string // The token used for embedding the sandbox track.
Statistics struct { // Statistics about the sandbox track.
Id string // The unique identifier for the sandbox track.
Slug string // The slug identifier for the sandbox track.
Icon string // The icon associated with the sandbox track.
Title string // The title of the sandbox track.
Description string // The description of the sandbox track.
Teaser string // A teaser or short description of the sandbox track.
Level string // The difficulty level of the sandbox track.
Embed_Token string // The token used for embedding the sandbox track.
CreatedAt time.Time // Timestamp of when track was created.
DeletedAt time.Time // Timestamp of when track was deleted.
Last_Update time.Time // Timestamp of when track has been last updated.
Statistics struct { // Statistics about the sandbox track.
Average_review_score float32 // The average review score of the sandbox track.
}
TrackTags []struct { // A list of tags associated with the sandbox track.
Expand Down

0 comments on commit f86c792

Please sign in to comment.