Documentation ¶
Index ¶
- type Achievement
- type Achievementcondition
- type AchievementconditionsStudytopic
- type Achievementgroup
- type AchievementgroupsTranslation
- type AchievementsImage
- type AchievementsTranslation
- type AddSubscriptionParams
- type Agerating
- type AgeratingsTranslation
- type Application
- type ApplicationQueries
- type Applicationgroup
- type ApplicationgroupsUsergroup
- type ApplicationgroupsUsergroupsL
- type Asset
- type AssetIDsByMediabankenIDAndMinimumDurationParams
- type Assetfile
- type Assetstream
- type AssetstreamsAudioLanguage
- type AssetstreamsSubtitleLanguage
- type CalendarentriesTranslation
- type Calendarentry
- type Collection
- type CollectionQueries
- type CollectionsEntry
- type CollectionsTranslation
- type ComputeddataCondition
- type Computeddatagroup
- type Computeddatum
- type ConfirmAchievementParams
- type Contribution
- type DBTX
- type DirectusAccess
- type DirectusActivity
- type DirectusCollection
- type DirectusDashboard
- type DirectusExtension
- type DirectusField
- type DirectusFile
- type DirectusFlow
- type DirectusFolder
- type DirectusMigration
- type DirectusNotification
- type DirectusOperation
- type DirectusPanel
- type DirectusPermission
- type DirectusPolicy
- type DirectusPreset
- type DirectusRelation
- type DirectusRevision
- type DirectusRole
- type DirectusSession
- type DirectusSetting
- type DirectusShare
- type DirectusTranslation
- type DirectusUser
- type DirectusVersion
- type DirectusWebhook
- type Episode
- type EpisodeAvailability
- type EpisodeRole
- type EpisodesAsset
- type EpisodesTag
- type EpisodesTranslation
- type EpisodesUsergroup
- type EpisodesUsergroupsDownload
- type EpisodesUsergroupsEarlyaccess
- type Event
- type EventsTranslation
- type Faq
- type FaqcategoriesTranslation
- type Faqcategory
- type FaqsTranslation
- type FaqsUsergroup
- type FilterDataset
- type Game
- type GamesStyledimage
- type GamesTranslation
- type GamesUsergroup
- type GetAchievedAchievementsParams
- type GetAchievementsWithConditionAmountAchievedParams
- type GetAchievementsWithConditionAmountAchievedRow
- type GetAchievementsWithTopicsCompletedAchievedParams
- type GetAchievementsWithTopicsCompletedAchievedRow
- type GetAnsweredTasksParams
- type GetAnswersSinceRow
- type GetAssetTimedMetadataRow
- type GetCollectionSongIDParams
- type GetLessonProgressGroupedByOrgParams
- type GetLessonProgressGroupedByOrgRow
- type GetMediaProgressParams
- type GetMediaProgressRow
- type GetProgressedMediaIDsParams
- type GetPromptsRow
- type GetQuestionAlternativesByIDsRow
- type GetRolesForPlaylistsRow
- type GetRolesRow
- type GetRolesWithCodeRow
- type GetSelectedAlternativesAndLockStatusParams
- type GetSelectedAlternativesAndLockStatusRow
- type GetTargetsRow
- type Globalconfig
- type GooseDbVersion
- type Image
- type InsertAssetFileParams
- type InsertAssetParams
- type InsertAssetStreamAudioLanguageParams
- type InsertAssetStreamParams
- type InsertAssetStreamSubtitleLanguageParams
- type InsertContributionParams
- type InsertDirectusFileParams
- type InsertMediaItemParams
- type InsertMemberParams
- type InsertOrgCountsParams
- type InsertOrgParams
- type InsertPersonParams
- type InsertSongCollectionParams
- type InsertSongParams
- type InsertStyledImageParams
- type InsertTimedMetadataParams
- type InsertTimedMetadataStyledImageParams
- type Int32TranslationRow
- type Language
- type Lesson
- type LessonsImage
- type LessonsRelation
- type LessonsTranslation
- type Link
- type LinksTranslation
- type ListAchievementGroupOriginalTranslationsRow
- type ListAchievementGroupTranslationsRow
- type ListAchievementOriginalTranslationsRow
- type ListAchievementTranslationsRow
- type ListAlternativeTranslationsRow
- type ListCalendarEntryTranslationsRow
- type ListDevicesInApplicationGroupRow
- type ListEpisodeTranslationsRow
- type ListEventTranslationsRow
- type ListFAQCategoryOriginalTranslationsRow
- type ListFAQCategoryTranslationsRow
- type ListFAQOriginalTranslationsRow
- type ListFAQTranslationsRow
- type ListGameOriginalTranslationsRow
- type ListGameTranslationsRow
- type ListLessonOriginalTranslationsRow
- type ListLessonTranslationsRow
- type ListLinkTranslationsRow
- type ListMediaItemOriginalTranslationsRow
- type ListMediaItemTranslationsRow
- type ListPageTranslationsRow
- type ListPlaylistOriginalTranslationsRow
- type ListPlaylistTranslationsRow
- type ListQuestionAlternativesOriginalTranslationsRow
- type ListSeasonTranslationsRow
- type ListSectionTranslationsRow
- type ListSegmentedShortIDsForRolesRow
- type ListSegmentedShortIDsForRolesWithScoresRow
- type ListShowTranslationsRow
- type ListStudyTopicOriginalTranslationsRow
- type ListStudyTopicTranslationsRow
- type ListSurveyOriginalTranslationsRow
- type ListSurveyQuestionOriginalTranslationsRow
- type ListSurveyQuestionTranslationsRow
- type ListSurveyTranslationsRow
- type ListTaskOriginalTranslationsRow
- type ListTaskTranslationsRow
- type MaterializedViewsMetum
- type Mediaitem
- type MediaitemsAsset
- type MediaitemsStyledimage
- type MediaitemsTag
- type MediaitemsTranslation
- type MediaitemsUsergroup
- type MediaitemsUsergroupsDownload
- type MediaitemsUsergroupsEarlyaccess
- type MediaitemsView
- type MediaitemsViewV2
- type Message
- type MessagesMessagetemplate
- type Messagetemplate
- type MessagetemplatesTranslation
- type Notification
- type NotificationsTarget
- type Notificationtemplate
- type NotificationtemplatesTranslation
- type OriginalTranslationRow
- type Page
- type PagesTranslation
- type Person
- type PersonsStyledimage
- type Phrase
- type PhrasesTranslation
- type Playlist
- type PlaylistsStyledimage
- type PlaylistsTranslation
- type PlaylistsUsergroup
- type ProfileQueries
- func (pq *ProfileQueries) ClearProgress(ctx context.Context, episodeID int) error
- func (pq *ProfileQueries) DefaultEpisodeIDForSeasonIDs(ctx context.Context, seasonIDs []int) ([]loaders.Conversion[int, int], error)
- func (pq *ProfileQueries) DefaultEpisodeIDForShowIDs(ctx context.Context, seasonIDs []int) ([]loaders.Conversion[int, int], error)
- func (pq *ProfileQueries) GetAchievementsAchievedAt(ctx context.Context, ids []uuid.UUID) ([]common.Achieved, error)
- func (pq *ProfileQueries) GetDefaultLessonIDForTopicIDs(ctx context.Context, ids []uuid.UUID) ([]loaders.Conversion[uuid.UUID, uuid.UUID], error)
- func (pq *ProfileQueries) GetProgressForEpisodes(ctx context.Context, episodeIDs []int) ([]common.Progress, error)
- func (pq *ProfileQueries) GetSelectedAlternatives(ctx context.Context, ids []uuid.UUID) ([]common.SelectedAlternatives, error)
- func (pq *ProfileQueries) SaveProgress(ctx context.Context, progress common.Progress) error
- type Prompt
- type PromptsTarget
- type PromptsTranslation
- type Queries
- func (q *Queries) AddSubscription(ctx context.Context, arg AddSubscriptionParams) error
- func (q *Queries) ApplicationQueries(groupID uuid.UUID) *ApplicationQueries
- func (q *Queries) AssetIDByARN(ctx context.Context, awsArn string) (int32, error)
- func (q *Queries) AssetIDsByMediabankenIDAndMinimumDuration(ctx context.Context, arg AssetIDsByMediabankenIDAndMinimumDurationParams) ([]int32, error)
- func (q *Queries) ClearAchievementGroupTranslations(ctx context.Context, dollar_1 []uuid.UUID) error
- func (q *Queries) ClearAchievementTranslations(ctx context.Context, dollar_1 []uuid.UUID) error
- func (q *Queries) ClearAssetTimedMetadata(ctx context.Context, assetID null_v4.Int) error
- func (q *Queries) ClearCalendarEntryTranslations(ctx context.Context, dollar_1 []int32) error
- func (q *Queries) ClearEpisodeTimedMetadata(ctx context.Context, episodeID null_v4.Int) error
- func (q *Queries) ClearEpisodeTranslations(ctx context.Context, episodeIds []int32) error
- func (q *Queries) ClearEventTranslations(ctx context.Context, dollar_1 []int32) error
- func (q *Queries) ClearFAQCategoryTranslations(ctx context.Context, dollar_1 []uuid.UUID) error
- func (q *Queries) ClearFAQTranslations(ctx context.Context, dollar_1 []uuid.UUID) error
- func (q *Queries) ClearGameTranslations(ctx context.Context, dollar_1 []uuid.UUID) error
- func (q *Queries) ClearLessonTranslations(ctx context.Context, dollar_1 []uuid.UUID) error
- func (q *Queries) ClearMediaItemTimedMetadata(ctx context.Context, mediaitemID uuid.UUID) error
- func (q *Queries) ClearMediaItemTranslations(ctx context.Context, dollar_1 []uuid.UUID) error
- func (q *Queries) ClearPageTranslations(ctx context.Context, dollar_1 []int32) error
- func (q *Queries) ClearPlaylistTranslations(ctx context.Context, dollar_1 []uuid.UUID) error
- func (q *Queries) ClearQuestionAlternativeTranslations(ctx context.Context, dollar_1 []uuid.UUID) error
- func (q *Queries) ClearSeasonTranslations(ctx context.Context, dollar_1 []int32) error
- func (q *Queries) ClearSectionTranslations(ctx context.Context, dollar_1 []int32) error
- func (q *Queries) ClearShowTranslations(ctx context.Context, dollar_1 []int32) error
- func (q *Queries) ClearStudyTopicTranslations(ctx context.Context, dollar_1 []uuid.UUID) error
- func (q *Queries) ClearSurveyQuestionTranslations(ctx context.Context, dollar_1 []uuid.UUID) error
- func (q *Queries) ClearSurveyTranslations(ctx context.Context, dollar_1 []uuid.UUID) error
- func (q *Queries) ClearTaskTranslations(ctx context.Context, dollar_1 []uuid.UUID) error
- func (q *Queries) Collection(collection string) CollectionQueries
- func (q *Queries) ConfirmAchievement(ctx context.Context, arg ConfirmAchievementParams) error
- func (q *Queries) DeleteDevices(ctx context.Context, tokens []string) error
- func (q *Queries) DeletePath(ctx context.Context, path null_v4.String) error
- func (q *Queries) DeleteUserCollectionEntry(ctx context.Context, id uuid.UUID) error
- func (q *Queries) GetAchievedAchievements(ctx context.Context, arg GetAchievedAchievementsParams) ([]uuid.UUID, error)
- func (q *Queries) GetAchievementGroups(ctx context.Context, ids []uuid.UUID) ([]common.AchievementGroup, error)
- func (q *Queries) GetAchievements(ctx context.Context, ids []uuid.UUID) ([]common.Achievement, error)
- func (q *Queries) GetAchievementsForGroups(ctx context.Context, groupIDs []uuid.UUID) ([]loaders.Relation[uuid.UUID, uuid.UUID], error)
- func (q *Queries) GetAchievementsForProfiles(ctx context.Context, ids []uuid.UUID) ([]loaders.Relation[uuid.UUID, uuid.UUID], error)
- func (q *Queries) GetAchievementsWithConditionAmountAchieved(ctx context.Context, arg GetAchievementsWithConditionAmountAchievedParams) ([]GetAchievementsWithConditionAmountAchievedRow, error)
- func (q *Queries) GetAchievementsWithTopicsCompletedAchieved(ctx context.Context, arg GetAchievementsWithTopicsCompletedAchievedParams) ([]GetAchievementsWithTopicsCompletedAchievedRow, error)
- func (q *Queries) GetAllMemberIDs(ctx context.Context) ([]string, error)
- func (q *Queries) GetAnsweredTasks(ctx context.Context, arg GetAnsweredTasksParams) ([]uuid.UUID, error)
- func (q *Queries) GetAnswersSince(ctx context.Context, createdAt time.Time) ([]GetAnswersSinceRow, error)
- func (q *Queries) GetApplicationGroups(ctx context.Context, ids []uuid.UUID) ([]common.ApplicationGroup, error)
- func (q *Queries) GetApplicationIDsForCodes(ctx context.Context, codes []string) ([]loaders.Conversion[string, int], error)
- func (q *Queries) GetApplications(ctx context.Context, ids []int) ([]common.Application, error)
- func (q *Queries) GetAssetStoragePath(ctx context.Context, id int32) (null_v4.String, error)
- func (q *Queries) GetAssetTimedMetadata(ctx context.Context, assetID null_v4.Int) ([]GetAssetTimedMetadataRow, error)
- func (q *Queries) GetCalendarEntriesByID(ctx context.Context, ids []int) ([]common.CalendarEntry, error)
- func (q *Queries) GetCalendarEntriesForPeriod(ctx context.Context, from time.Time, to time.Time) ([]int, error)
- func (q *Queries) GetChaptersForEpisodeID(ctx context.Context, ids []int) ([]common.TimedMetadata, error)
- func (q *Queries) GetCollectionIDFromKey(ctx context.Context, key string) (uuid.UUID, error)
- func (q *Queries) GetCollectionIDsForCodes(ctx context.Context, codes []string) ([]loaders.Conversion[string, int], error)
- func (q *Queries) GetCollectionSongID(ctx context.Context, arg GetCollectionSongIDParams) (uuid.UUID, error)
- func (q *Queries) GetCollections(ctx context.Context, ids []int) ([]common.Collection, error)
- func (q *Queries) GetCompletedAndLockedTasks(ctx context.Context, profileIDs []uuid.UUID) ([]loaders.Relation[uuid.UUID, uuid.UUID], error)
- func (q *Queries) GetCompletedLessons(ctx context.Context, profileIDs []uuid.UUID) ([]loaders.Relation[uuid.UUID, uuid.UUID], error)
- func (q *Queries) GetCompletedTasks(ctx context.Context, profileIDs []uuid.UUID) ([]loaders.Relation[uuid.UUID, uuid.UUID], error)
- func (q *Queries) GetCompletedTopics(ctx context.Context, profileIDs []uuid.UUID) ([]loaders.Relation[uuid.UUID, uuid.UUID], error)
- func (q *Queries) GetComputedDataForGroups(ctx context.Context, ids []uuid.UUID) ([]common.ComputedData, error)
- func (q *Queries) GetContributionsForPerson(ctx context.Context, personID uuid.UUID) ([]Contribution, error)
- func (q *Queries) GetDevices(ctx context.Context, profileIDs []uuid.UUID) ([]common.Device, error)
- func (q *Queries) GetEntryIDsForEventIDs(ctx context.Context, ids []int) ([]loaders.Relation[int, int], error)
- func (q *Queries) GetEpisodeIDsByMediaItemID(ctx context.Context, id uuid.UUID) ([]int, error)
- func (q *Queries) GetEpisodeIDsForLegacyIDs(ctx context.Context, ids []int) ([]loaders.Conversion[int, int], error)
- func (q *Queries) GetEpisodeIDsForLegacyProgramIDs(ctx context.Context, ids []int) ([]loaders.Conversion[int, int], error)
- func (q *Queries) GetEpisodeIDsForUuids(ctx context.Context, uuids []uuid.UUID) ([]loaders.Conversion[uuid.UUID, int], error)
- func (q *Queries) GetEpisodeIDsWithProgress(ctx context.Context, profileIDs []uuid.UUID) ([]loaders.Relation[int, uuid.UUID], error)
- func (q *Queries) GetEpisodes(ctx context.Context, ids []int) ([]common.Episode, error)
- func (q *Queries) GetEvents(ctx context.Context, ids []int) ([]common.Event, error)
- func (q *Queries) GetEventsForPeriod(ctx context.Context, from time.Time, to time.Time) ([]int, error)
- func (q *Queries) GetFAQCategories(ctx context.Context, ids []uuid.UUID) ([]common.FAQCategory, error)
- func (q *Queries) GetFilesForAssets(ctx context.Context, ids []int) ([]common.File, error)
- func (q *Queries) GetFilesForEpisodes(ctx context.Context, ids []int) ([]common.File, error)
- func (q *Queries) GetGames(ctx context.Context, ids []uuid.UUID) ([]common.Game, error)
- func (q *Queries) GetGlobalConfig(ctx context.Context) (common.GlobalConfig, error)
- func (q *Queries) GetItemsForCollections(ctx context.Context, ids []int) ([]common.CollectionItem, error)
- func (q *Queries) GetLanguageKeys(ctx context.Context) ([]string, error)
- func (q *Queries) GetLanguages(ctx context.Context) ([]Language, error)
- func (q *Queries) GetLessonProgressGroupedByOrg(ctx context.Context, arg GetLessonProgressGroupedByOrgParams) ([]GetLessonProgressGroupedByOrgRow, error)
- func (q *Queries) GetLessons(ctx context.Context, ids []uuid.UUID) ([]common.Lesson, error)
- func (q *Queries) GetLinks(ctx context.Context, ids []int) ([]common.Link, error)
- func (q *Queries) GetMediaIDsForShortIDs(ctx context.Context, ids []uuid.UUID) ([]loaders.Conversion[uuid.UUID, uuid.UUID], error)
- func (q *Queries) GetMediaItemByID(ctx context.Context, id uuid.UUID) (Mediaitem, error)
- func (q *Queries) GetMediaProgress(ctx context.Context, arg GetMediaProgressParams) ([]GetMediaProgressRow, error)
- func (q *Queries) GetMemberIDs(ctx context.Context, everyone bool) ([]string, error)
- func (q *Queries) GetMessageGroups(ctx context.Context, ids []int) ([]common.MessageGroup, error)
- func (q *Queries) GetMyListCollectionForProfileIDs(ctx context.Context, profileIDs []uuid.UUID) ([]loaders.Conversion[uuid.UUID, uuid.UUID], error)
- func (q *Queries) GetNotifications(ctx context.Context, ids []uuid.UUID) ([]common.Notification, error)
- func (q *Queries) GetPageIDsForCodes(ctx context.Context, codes []string) ([]loaders.Conversion[string, int], error)
- func (q *Queries) GetPages(ctx context.Context, ids []int) ([]common.Page, error)
- func (q *Queries) GetPermissionsForEpisodes(ctx context.Context, ids []int) ([]common.Permissions[int], error)
- func (q *Queries) GetPermissionsForPages(ctx context.Context, ids []int) ([]common.Permissions[int], error)
- func (q *Queries) GetPermissionsForSeasons(ctx context.Context, ids []int) ([]common.Permissions[int], error)
- func (q *Queries) GetPermissionsForSections(ctx context.Context, ids []int) ([]common.Permissions[int], error)
- func (q *Queries) GetPermissionsForShows(ctx context.Context, ids []int) ([]common.Permissions[int], error)
- func (q *Queries) GetPersonIDsByNames(ctx context.Context, names []string) ([]Person, error)
- func (q *Queries) GetPersons(ctx context.Context, ids []uuid.UUID) ([]common.Person, error)
- func (q *Queries) GetPhrases(ctx context.Context, keys []string) ([]common.Phrase, error)
- func (q *Queries) GetPlaylists(ctx context.Context, ids []uuid.UUID) ([]common.Playlist, error)
- func (rq *Queries) GetPrimaryEpisodeIDForMediaItems(ctx context.Context, ids []uuid.UUID) ([]loaders.Conversion[uuid.UUID, int], error)
- func (q *Queries) GetProgressedMediaIDs(ctx context.Context, arg GetProgressedMediaIDsParams) ([]uuid.UUID, error)
- func (q *Queries) GetPromptIDsForRoles(ctx context.Context, roles []string) ([]uuid.UUID, error)
- func (q *Queries) GetPrompts(ctx context.Context, ids []uuid.UUID) ([]GetPromptsRow, error)
- func (q *Queries) GetQuestionAlternatives(ctx context.Context, ids []uuid.UUID) ([]common.QuestionAlternative, error)
- func (q *Queries) GetQuestionAlternativesByIDs(ctx context.Context, dollar_1 []uuid.UUID) ([]GetQuestionAlternativesByIDsRow, error)
- func (q *Queries) GetQuestions(ctx context.Context, ids []uuid.UUID) ([]common.Question, error)
- func (q *Queries) GetRedirectIDsForCodes(ctx context.Context, codes []string) ([]loaders.Conversion[string, uuid.UUID], error)
- func (q *Queries) GetRedirects(ctx context.Context, ids []uuid.UUID) ([]common.Redirect, error)
- func (q *Queries) GetRoles(ctx context.Context) ([]GetRolesRow, error)
- func (q *Queries) GetRolesByEmail(ctx context.Context, dollar_1 string) ([]string, error)
- func (q *Queries) GetRolesForPlaylists(ctx context.Context, ids []uuid.UUID) ([]GetRolesForPlaylistsRow, error)
- func (q *Queries) GetRolesWithCode(ctx context.Context, dollar_1 []string) ([]GetRolesWithCodeRow, error)
- func (q *Queries) GetSeasons(ctx context.Context, ids []int) ([]common.Season, error)
- func (q *Queries) GetSectionIDsForPages(ctx context.Context, ids []int) ([]loaders.Relation[int, int], error)
- func (q *Queries) GetSectionIDsWithMessageIDs(ctx context.Context, dollar_1 []int32) ([]int32, error)
- func (q *Queries) GetSections(ctx context.Context, ids []int) ([]common.Section, error)
- func (q *Queries) GetSelectedAlternativesAndLockStatus(ctx context.Context, arg GetSelectedAlternativesAndLockStatusParams) ([]GetSelectedAlternativesAndLockStatusRow, error)
- func (q *Queries) GetShortScores(ctx context.Context, id uuid.UUID) (float64, error)
- func (q *Queries) GetShorts(ctx context.Context, ids []uuid.UUID) ([]common.Short, error)
- func (q *Queries) GetShortsByMediaItemIDs(ctx context.Context, id uuid.UUID) ([]common.Short, error)
- func (q *Queries) GetShowIDsForUuids(ctx context.Context, uuids []uuid.UUID) ([]loaders.Conversion[uuid.UUID, int], error)
- func (q *Queries) GetShows(ctx context.Context, ids []int) ([]common.Show, error)
- func (q *Queries) GetSongs(ctx context.Context, ids []uuid.UUID) ([]common.Song, error)
- func (q *Queries) GetStreamsForAssets(ctx context.Context, ids []int) ([]common.Stream, error)
- func (q *Queries) GetStreamsForEpisodes(ctx context.Context, ids []int) ([]common.Stream, error)
- func (q *Queries) GetSurveyIDFromQuestionID(ctx context.Context, id uuid.UUID) (uuid.UUID, error)
- func (q *Queries) GetSurveyQuestions(ctx context.Context, ids []uuid.UUID) ([]common.SurveyQuestion, error)
- func (q *Queries) GetSurveys(ctx context.Context, ids []uuid.UUID) ([]common.Survey, error)
- func (q *Queries) GetTags(ctx context.Context, ids []int) ([]common.Tag, error)
- func (q *Queries) GetTargets(ctx context.Context, dollar_1 []uuid.UUID) ([]GetTargetsRow, error)
- func (q *Queries) GetTasks(ctx context.Context, ids []uuid.UUID) ([]common.Task, error)
- func (q *Queries) GetTimedMetadata(ctx context.Context, ids []uuid.UUID) ([]common.TimedMetadata, error)
- func (q *Queries) GetTopics(ctx context.Context, ids []uuid.UUID) ([]common.StudyTopic, error)
- func (q *Queries) GetUnconfirmedAchievementsForProfiles(ctx context.Context, ids []uuid.UUID) ([]loaders.Relation[uuid.UUID, uuid.UUID], error)
- func (q *Queries) GetUserCollectionEntries(ctx context.Context, ids []uuid.UUID) ([]common.UserCollectionEntry, error)
- func (q *Queries) GetUserCollectionEntryIDsForUserCollectionIDs(ctx context.Context, collectionIDs []uuid.UUID) ([]loaders.Relation[uuid.UUID, uuid.UUID], error)
- func (q *Queries) GetUserCollectionIDsForProfileIDs(ctx context.Context, profileIDs []uuid.UUID) ([]loaders.Relation[uuid.UUID, uuid.UUID], error)
- func (q *Queries) GetUserCollections(ctx context.Context, ids []uuid.UUID) ([]common.UserCollection, error)
- func (q *Queries) GetUserIDByEmail(ctx context.Context, email null_v4.String) (uuid.UUID, error)
- func (q *Queries) GetUserIDsWithRoles(ctx context.Context, roles []string) ([]string, error)
- func (q *Queries) GetUsers(ctx context.Context, ids []string) ([]common.User, error)
- func (q *Queries) InsertAsset(ctx context.Context, arg InsertAssetParams) (int32, error)
- func (q *Queries) InsertAssetFile(ctx context.Context, arg InsertAssetFileParams) (int32, error)
- func (q *Queries) InsertAssetStream(ctx context.Context, arg InsertAssetStreamParams) (int32, error)
- func (q *Queries) InsertAssetStreamAudioLanguage(ctx context.Context, arg InsertAssetStreamAudioLanguageParams) (int32, error)
- func (q *Queries) InsertAssetStreamSubtitleLanguage(ctx context.Context, arg InsertAssetStreamSubtitleLanguageParams) (int32, error)
- func (q *Queries) InsertContribution(ctx context.Context, arg InsertContributionParams) error
- func (q *Queries) InsertDirectusFile(ctx context.Context, arg InsertDirectusFileParams) (uuid.UUID, error)
- func (q *Queries) InsertMediaItem(ctx context.Context, arg InsertMediaItemParams) (uuid.UUID, error)
- func (q *Queries) InsertMember(ctx context.Context, arg InsertMemberParams) error
- func (q *Queries) InsertOrg(ctx context.Context, arg InsertOrgParams) error
- func (q *Queries) InsertOrgCounts(ctx context.Context, arg InsertOrgCountsParams) error
- func (q *Queries) InsertPerson(ctx context.Context, arg InsertPersonParams) error
- func (q *Queries) InsertSong(ctx context.Context, arg InsertSongParams) error
- func (q *Queries) InsertSongCollection(ctx context.Context, arg InsertSongCollectionParams) error
- func (q *Queries) InsertStyledImage(ctx context.Context, arg InsertStyledImageParams) (uuid.UUID, error)
- func (q *Queries) InsertTimedMetadata(ctx context.Context, arg InsertTimedMetadataParams) (uuid.UUID, error)
- func (q *Queries) InsertTimedMetadataStyledImage(ctx context.Context, arg InsertTimedMetadataStyledImageParams) (int32, error)
- func (q *Queries) ListAchievementGroupOriginalTranslations(ctx context.Context) ([]ListAchievementGroupOriginalTranslationsRow, error)
- func (q *Queries) ListAchievementGroupTranslations(ctx context.Context, language string) ([]ListAchievementGroupTranslationsRow, error)
- func (q *Queries) ListAchievementGroups(ctx context.Context) ([]uuid.UUID, error)
- func (q *Queries) ListAchievementOriginalTranslations(ctx context.Context) ([]ListAchievementOriginalTranslationsRow, error)
- func (q *Queries) ListAchievementTranslations(ctx context.Context, language string) ([]ListAchievementTranslationsRow, error)
- func (q *Queries) ListAchievements(ctx context.Context) ([]uuid.UUID, error)
- func (q *Queries) ListAllPermittedShowIDs(ctx context.Context, permissions []string) ([]int, error)
- func (q *Queries) ListAlternativeTranslations(ctx context.Context, language string) ([]ListAlternativeTranslationsRow, error)
- func (q *Queries) ListApplications(ctx context.Context) ([]common.Application, error)
- func (q *Queries) ListAssets(ctx context.Context) ([]Asset, error)
- func (q *Queries) ListCalendarEntryTranslations(ctx context.Context, language string) ([]ListCalendarEntryTranslationsRow, error)
- func (q *Queries) ListDevices(ctx context.Context) ([]common.Device, error)
- func (q *Queries) ListDevicesInApplicationGroup(ctx context.Context, groupID uuid.UUID) ([]ListDevicesInApplicationGroupRow, error)
- func (q *Queries) ListEpisodeTranslations(ctx context.Context, language string) ([]ListEpisodeTranslationsRow, error)
- func (q *Queries) ListEpisodes(ctx context.Context) ([]common.Episode, error)
- func (q *Queries) ListEventTranslations(ctx context.Context, language string) ([]ListEventTranslationsRow, error)
- func (q *Queries) ListEvents(ctx context.Context) ([]common.Event, error)
- func (q *Queries) ListFAQCategoryIDsForRoles(ctx context.Context, roles []string) ([]uuid.UUID, error)
- func (q *Queries) ListFAQCategoryOriginalTranslations(ctx context.Context) ([]ListFAQCategoryOriginalTranslationsRow, error)
- func (q *Queries) ListFAQCategoryTranslations(ctx context.Context, language string) ([]ListFAQCategoryTranslationsRow, error)
- func (q *Queries) ListFAQOriginalTranslations(ctx context.Context) ([]ListFAQOriginalTranslationsRow, error)
- func (q *Queries) ListFAQTranslations(ctx context.Context, language string) ([]ListFAQTranslationsRow, error)
- func (q *Queries) ListGameOriginalTranslations(ctx context.Context) ([]ListGameOriginalTranslationsRow, error)
- func (q *Queries) ListGameTranslations(ctx context.Context, language string) ([]ListGameTranslationsRow, error)
- func (q *Queries) ListLessonOriginalTranslations(ctx context.Context) ([]ListLessonOriginalTranslationsRow, error)
- func (q *Queries) ListLessonTranslations(ctx context.Context, language string) ([]ListLessonTranslationsRow, error)
- func (q *Queries) ListLinkTranslations(ctx context.Context, language string) ([]ListLinkTranslationsRow, error)
- func (q *Queries) ListMediaItemOriginalTranslations(ctx context.Context) ([]ListMediaItemOriginalTranslationsRow, error)
- func (q *Queries) ListMediaItemTranslations(ctx context.Context, language string) ([]ListMediaItemTranslationsRow, error)
- func (q *Queries) ListPageTranslations(ctx context.Context, language string) ([]ListPageTranslationsRow, error)
- func (q *Queries) ListPages(ctx context.Context) ([]common.Page, error)
- func (q *Queries) ListPlaylistOriginalTranslations(ctx context.Context) ([]ListPlaylistOriginalTranslationsRow, error)
- func (q *Queries) ListPlaylistTranslations(ctx context.Context, language string) ([]ListPlaylistTranslationsRow, error)
- func (q *Queries) ListPlaylists(ctx context.Context) ([]common.Playlist, error)
- func (q *Queries) ListQuestionAlternativesOriginalTranslations(ctx context.Context) ([]ListQuestionAlternativesOriginalTranslationsRow, error)
- func (q *Queries) ListSeasonTranslations(ctx context.Context, language string) ([]ListSeasonTranslationsRow, error)
- func (q *Queries) ListSeasons(ctx context.Context) ([]common.Season, error)
- func (q *Queries) ListSectionTranslations(ctx context.Context, language string) ([]ListSectionTranslationsRow, error)
- func (q *Queries) ListSegmentedShortIDsForRoles(ctx context.Context, roles []string) ([]ListSegmentedShortIDsForRolesRow, error)
- func (q *Queries) ListSegmentedShortIDsForRolesWithScores(ctx context.Context, roles []string) ([]ListSegmentedShortIDsForRolesWithScoresRow, error)
- func (q *Queries) ListShowTranslations(ctx context.Context, language string) ([]ListShowTranslationsRow, error)
- func (q *Queries) ListShows(ctx context.Context) ([]common.Show, error)
- func (q *Queries) ListStudyTopicOriginalTranslations(ctx context.Context) ([]ListStudyTopicOriginalTranslationsRow, error)
- func (q *Queries) ListStudyTopicTranslations(ctx context.Context, language string) ([]ListStudyTopicTranslationsRow, error)
- func (q *Queries) ListSubscriptions(ctx context.Context, profileID uuid.UUID) ([]string, error)
- func (q *Queries) ListSurveyOriginalTranslations(ctx context.Context) ([]ListSurveyOriginalTranslationsRow, error)
- func (q *Queries) ListSurveyQuestionOriginalTranslations(ctx context.Context) ([]ListSurveyQuestionOriginalTranslationsRow, error)
- func (q *Queries) ListSurveyQuestionTranslations(ctx context.Context, language string) ([]ListSurveyQuestionTranslationsRow, error)
- func (q *Queries) ListSurveyTranslations(ctx context.Context, language string) ([]ListSurveyTranslationsRow, error)
- func (q *Queries) ListTags(ctx context.Context) ([]common.Tag, error)
- func (q *Queries) ListTaskOriginalTranslations(ctx context.Context) ([]ListTaskOriginalTranslationsRow, error)
- func (q *Queries) ListTaskTranslations(ctx context.Context, language string) ([]ListTaskTranslationsRow, error)
- func (q *Queries) NewestPreviousAssetByMediabankenID(ctx context.Context, mediabankenID string) (Asset, error)
- func (q *Queries) NotificationMarkSendCompleted(ctx context.Context, id uuid.UUID) error
- func (q *Queries) NotificationMarkSendStarted(ctx context.Context, id uuid.UUID) error
- func (q *Queries) ProfileQueries(profileID uuid.UUID) *ProfileQueries
- func (q *Queries) RefreshView(ctx context.Context, view string) error
- func (q *Queries) RemoveProgressForMediaIDs(ctx context.Context, arg RemoveProgressForMediaIDsParams) error
- func (q *Queries) RemoveSubscription(ctx context.Context, arg RemoveSubscriptionParams) error
- func (q *Queries) RoleQueries(roles []string) *RoleQueries
- func (q *Queries) SaveDevice(ctx context.Context, device common.Device) error
- func (q *Queries) SaveMediaProgress(ctx context.Context, arg SaveMediaProgressParams) error
- func (q *Queries) SetAchievementAchieved(ctx context.Context, arg SetAchievementAchievedParams) error
- func (q *Queries) SetAnswerLock(ctx context.Context, arg SetAnswerLockParams) error
- func (q *Queries) SetImageCDNDomain(domain string)
- func (q *Queries) SetTaskCompleted(ctx context.Context, arg SetTaskCompletedParams) error
- func (q *Queries) UpdateAchievementGroupTranslation(ctx context.Context, arg UpdateAchievementGroupTranslationParams) error
- func (q *Queries) UpdateAchievementTranslation(ctx context.Context, arg UpdateAchievementTranslationParams) error
- func (q *Queries) UpdateAlternativeTranslation(ctx context.Context, arg UpdateAlternativeTranslationParams) error
- func (q *Queries) UpdateAssetArn(ctx context.Context, arg UpdateAssetArnParams) error
- func (q *Queries) UpdateAssetStatus(ctx context.Context, arg UpdateAssetStatusParams) error
- func (q *Queries) UpdateCalendarEntryTranslation(ctx context.Context, arg UpdateCalendarEntryTranslationParams) error
- func (q *Queries) UpdateEpisodeTranslation(ctx context.Context, arg UpdateEpisodeTranslationParams) error
- func (q *Queries) UpdateEventTranslation(ctx context.Context, arg UpdateEventTranslationParams) error
- func (q *Queries) UpdateFAQCategoryTranslation(ctx context.Context, arg UpdateFAQCategoryTranslationParams) error
- func (q *Queries) UpdateFAQTranslation(ctx context.Context, arg UpdateFAQTranslationParams) error
- func (q *Queries) UpdateGameTranslation(ctx context.Context, arg UpdateGameTranslationParams) error
- func (q *Queries) UpdateLessonTranslation(ctx context.Context, arg UpdateLessonTranslationParams) error
- func (q *Queries) UpdateLinkTranslation(ctx context.Context, arg UpdateLinkTranslationParams) error
- func (q *Queries) UpdateMediaItemTranslation(ctx context.Context, arg UpdateMediaItemTranslationParams) error
- func (q *Queries) UpdateMessage(ctx context.Context, arg UpdateMessageParams) error
- func (q *Queries) UpdatePageTranslation(ctx context.Context, arg UpdatePageTranslationParams) error
- func (q *Queries) UpdatePlaylistTranslation(ctx context.Context, arg UpdatePlaylistTranslationParams) error
- func (q *Queries) UpdateSeasonTranslation(ctx context.Context, arg UpdateSeasonTranslationParams) error
- func (q *Queries) UpdateSectionTranslation(ctx context.Context, arg UpdateSectionTranslationParams) error
- func (q *Queries) UpdateShortsScore(ctx context.Context, arg UpdateShortsScoreParams) error
- func (q *Queries) UpdateShowTranslation(ctx context.Context, arg UpdateShowTranslationParams) error
- func (q *Queries) UpdateStudyTopicTranslation(ctx context.Context, arg UpdateStudyTopicTranslationParams) error
- func (q *Queries) UpdateSurveyQuestionTranslation(ctx context.Context, arg UpdateSurveyQuestionTranslationParams) error
- func (q *Queries) UpdateSurveyTranslation(ctx context.Context, arg UpdateSurveyTranslationParams) error
- func (q *Queries) UpdateTaskTranslation(ctx context.Context, arg UpdateTaskTranslationParams) error
- func (q *Queries) UpsertMessage(ctx context.Context, arg UpsertMessageParams) error
- func (q *Queries) UpsertSurveyAnswer(ctx context.Context, arg UpsertSurveyAnswerParams) error
- func (q *Queries) UpsertUser(ctx context.Context, arg UpsertUserParams) error
- func (q *Queries) UpsertUserCollection(ctx context.Context, arg UpsertUserCollectionParams) error
- func (q *Queries) UpsertUserCollectionEntry(ctx context.Context, arg UpsertUserCollectionEntryParams) error
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type Questionalternative
- type QuestionalternativesTranslation
- type Redirect
- type RemoveProgressForMediaIDsParams
- type RemoveSubscriptionParams
- type RoleQueries
- func (rq *RoleQueries) GetCalendarEntries(ctx context.Context, ids []int) ([]common.CalendarEntry, error)
- func (q *RoleQueries) GetContributionsForPersonsWithRoles(ctx context.Context, ids []uuid.UUID) ([]common.Contribution, error)
- func (rq *RoleQueries) GetEpisodeIDsForLessons(ctx context.Context, ids []uuid.UUID) ([]loaders.Relation[int, uuid.UUID], error)
- func (rq *RoleQueries) GetEpisodeIDsForSeasonsWithRoles(ctx context.Context, ids []int) ([]loaders.Relation[int, int], error)
- func (rq *RoleQueries) GetEpisodeIDsWithRoles(ctx context.Context, ids []int) ([]int, error)
- func (rq *RoleQueries) GetEpisodeIDsWithTagIDs(ctx context.Context, ids []int) ([]loaders.Relation[int, int], error)
- func (rq *RoleQueries) GetEpisodeUUIDsWithRoles(ctx context.Context, ids []uuid.UUID) ([]uuid.UUID, error)
- func (rq *RoleQueries) GetItemsForCollectionsWithRoles(ctx context.Context, ids []int) ([]common.CollectionItem, error)
- func (rq *RoleQueries) GetLessonIDsForEpisodes(ctx context.Context, ids []int) ([]loaders.Relation[uuid.UUID, int], error)
- func (rq *RoleQueries) GetLessonIDsForLinks(ctx context.Context, ids []int) ([]loaders.Relation[uuid.UUID, int], error)
- func (rq *RoleQueries) GetLessonIDsForTopics(ctx context.Context, ids []uuid.UUID) ([]loaders.Relation[uuid.UUID, uuid.UUID], error)
- func (rq *RoleQueries) GetLessonIDsWithRoles(ctx context.Context, ids []uuid.UUID) ([]uuid.UUID, error)
- func (rq *RoleQueries) GetLinkIDsForLessons(ctx context.Context, ids []uuid.UUID) ([]loaders.Relation[int, uuid.UUID], error)
- func (rq *RoleQueries) GetQuestionIDsForCategories(ctx context.Context, ids []uuid.UUID) ([]loaders.Relation[uuid.UUID, uuid.UUID], error)
- func (rq *RoleQueries) GetSeasonIDsForShowsWithRoles(ctx context.Context, ids []int) ([]loaders.Relation[int, int], error)
- func (rq *RoleQueries) GetSeasonIDsWithRoles(ctx context.Context, ids []int) ([]int, error)
- func (rq *RoleQueries) GetSectionIDsForPagesWithRoles(ctx context.Context, ids []int) ([]loaders.Relation[int, int], error)
- func (rq *RoleQueries) GetShowIDsWithRoles(ctx context.Context, ids []int) ([]int, error)
- func (rq *RoleQueries) GetShowUUIDsWithRoles(ctx context.Context, ids []uuid.UUID) ([]uuid.UUID, error)
- func (rq *RoleQueries) GetSurveyQuestionIDsForSurveyIDs(ctx context.Context, ids []uuid.UUID) ([]loaders.Relation[uuid.UUID, uuid.UUID], error)
- func (rq *RoleQueries) GetTaskIDsForLessons(ctx context.Context, ids []uuid.UUID) ([]loaders.Relation[uuid.UUID, uuid.UUID], error)
- func (rq *RoleQueries) GetTaskIDsWithRoles(ctx context.Context, ids []uuid.UUID) ([]uuid.UUID, error)
- func (rq *RoleQueries) GetTopicIDsWithRoles(ctx context.Context, ids []uuid.UUID) ([]uuid.UUID, error)
- type SaveMediaProgressParams
- type Season
- type SeasonAvailability
- type SeasonRole
- type SeasonsTag
- type SeasonsTranslation
- type SeasonsUsergroup
- type Section
- type SectionsTranslation
- type SectionsUsergroup
- type SetAchievementAchievedParams
- type SetAnswerLockParams
- type SetTaskCompletedParams
- type Short
- type ShortsUsergroup
- type Show
- type ShowAvailability
- type ShowRole
- type ShowsTag
- type ShowsTranslation
- type ShowsUsergroup
- type Song
- type Songcollection
- type SongcollectionsTranslation
- type SongsTranslation
- type StatsMembersDatum
- type StatsOrg
- type StatsOrgCount
- type Studytopic
- type StudytopicsImage
- type StudytopicsTranslation
- type Styledimage
- type Survey
- type Surveyquestion
- type SurveyquestionsTranslation
- type SurveysTranslation
- type Tag
- type TagsTranslation
- type Target
- type TargetsUsergroup
- type Task
- type TasksImage
- type TasksTranslation
- type TimedmetadataPerson
- type TimedmetadataStyledimage
- type TimedmetadataTranslation
- type Timedmetadatum
- type UpdateAchievementGroupTranslationParams
- type UpdateAchievementTranslationParams
- type UpdateAlternativeTranslationParams
- type UpdateAssetArnParams
- type UpdateAssetStatusParams
- type UpdateCalendarEntryTranslationParams
- type UpdateEpisodeTranslationParams
- type UpdateEventTranslationParams
- type UpdateFAQCategoryTranslationParams
- type UpdateFAQTranslationParams
- type UpdateGameTranslationParams
- type UpdateLessonTranslationParams
- type UpdateLinkTranslationParams
- type UpdateMediaItemTranslationParams
- type UpdateMessageParams
- type UpdatePageTranslationParams
- type UpdatePlaylistTranslationParams
- type UpdateSeasonTranslationParams
- type UpdateSectionTranslationParams
- type UpdateShortsScoreParams
- type UpdateShowTranslationParams
- type UpdateStudyTopicTranslationParams
- type UpdateSurveyQuestionTranslationParams
- type UpdateSurveyTranslationParams
- type UpdateTaskTranslationParams
- type UpsertMessageParams
- type UpsertSurveyAnswerParams
- type UpsertUserCollectionEntryParams
- type UpsertUserCollectionParams
- type UpsertUserParams
- type Usergroup
- type UsersAchievement
- type UsersCollection
- type UsersCollectionentry
- type UsersDevice
- type UsersMediaProgress
- type UsersMessage
- type UsersProfile
- type UsersProgress
- type UsersSubscription
- type UsersSurveyquestionanswer
- type UsersTaskanswer
- type UsersUser
- type UuidTranslationRow
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Achievement ¶
type Achievement struct { ID uuid.UUID `db:"id" json:"id"` Status string `db:"status" json:"status"` UserCreated uuid.NullUUID `db:"user_created" json:"userCreated"` DateCreated null_v4.Time `db:"date_created" json:"dateCreated"` UserUpdated uuid.NullUUID `db:"user_updated" json:"userUpdated"` DateUpdated null_v4.Time `db:"date_updated" json:"dateUpdated"` GroupID uuid.NullUUID `db:"group_id" json:"groupId"` Title string `db:"title" json:"title"` Description null_v4.String `db:"description" json:"description"` Sort null_v4.Int `db:"sort" json:"sort"` }
type Achievementcondition ¶
type Achievementgroup ¶
type Achievementgroup struct { ID uuid.UUID `db:"id" json:"id"` Status string `db:"status" json:"status"` UserCreated uuid.NullUUID `db:"user_created" json:"userCreated"` DateCreated null_v4.Time `db:"date_created" json:"dateCreated"` UserUpdated uuid.NullUUID `db:"user_updated" json:"userUpdated"` DateUpdated null_v4.Time `db:"date_updated" json:"dateUpdated"` Title null_v4.String `db:"title" json:"title"` TranslationsRequired bool `db:"translations_required" json:"translationsRequired"` }
type AchievementgroupsTranslation ¶
type AchievementgroupsTranslation struct { ID int32 `db:"id" json:"id"` AchievementgroupsID uuid.UUID `db:"achievementgroups_id" json:"achievementgroupsId"` LanguagesCode string `db:"languages_code" json:"languagesCode"` Title null_v4.String `db:"title" json:"title"` Description null_v4.String `db:"description" json:"description"` }
type AchievementsImage ¶
type AchievementsTranslation ¶
type AchievementsTranslation struct { ID int32 `db:"id" json:"id"` AchievementsID uuid.UUID `db:"achievements_id" json:"achievementsId"` LanguagesCode string `db:"languages_code" json:"languagesCode"` Title null_v4.String `db:"title" json:"title"` Description null_v4.String `db:"description" json:"description"` }
type AddSubscriptionParams ¶
type AgeratingsTranslation ¶
type Application ¶
type Application struct { ID int32 `db:"id" json:"id"` Status string `db:"status" json:"status"` UserCreated uuid.NullUUID `db:"user_created" json:"userCreated"` DateCreated null_v4.Time `db:"date_created" json:"dateCreated"` UserUpdated uuid.NullUUID `db:"user_updated" json:"userUpdated"` DateUpdated null_v4.Time `db:"date_updated" json:"dateUpdated"` Name string `db:"name" json:"name"` Code string `db:"code" json:"code"` ClientVersion null_v4.String `db:"client_version" json:"clientVersion"` PageID null_v4.Int `db:"page_id" json:"pageId"` Default bool `db:"default" json:"default"` SearchPageID null_v4.Int `db:"search_page_id" json:"searchPageId"` StandaloneRelatedCollectionID null_v4.Int `db:"standalone_related_collection_id" json:"standaloneRelatedCollectionId"` Uuid uuid.UUID `db:"uuid" json:"uuid"` GroupID uuid.UUID `db:"group_id" json:"groupId"` GamesPageID null_v4.Int `db:"games_page_id" json:"gamesPageId"` }
type ApplicationQueries ¶
ApplicationQueries contains queries specific to application
func (*ApplicationQueries) GetProfilesForUserIDs ¶
func (aq *ApplicationQueries) GetProfilesForUserIDs(ctx context.Context, userIDs []string) ([]common.Profile, error)
GetProfilesForUserIDs retrieves profiles for the specific users.
func (*ApplicationQueries) SaveProfile ¶
SaveProfile creates or overwrites a profile in the database
type Applicationgroup ¶
type Applicationgroup struct { ID uuid.UUID `db:"id" json:"id"` UserCreated uuid.NullUUID `db:"user_created" json:"userCreated"` DateCreated null_v4.Time `db:"date_created" json:"dateCreated"` UserUpdated uuid.NullUUID `db:"user_updated" json:"userUpdated"` DateUpdated null_v4.Time `db:"date_updated" json:"dateUpdated"` Label string `db:"label" json:"label"` SupportEmail null_v4.String `db:"support_email" json:"supportEmail"` FirebaseProjectID null_v4.String `db:"firebase_project_id" json:"firebaseProjectId"` }
type Asset ¶
type Asset struct { DateCreated time.Time `db:"date_created" json:"dateCreated"` DateUpdated time.Time `db:"date_updated" json:"dateUpdated"` Duration int32 `db:"duration" json:"duration"` EncodingVersion null_v4.String `db:"encoding_version" json:"encodingVersion"` ID int32 `db:"id" json:"id"` LegacyID null_v4.Int `db:"legacy_id" json:"legacyId"` MainStoragePath null_v4.String `db:"main_storage_path" json:"mainStoragePath"` MediabankenID null_v4.String `db:"mediabanken_id" json:"mediabankenId"` Name string `db:"name" json:"name"` Status null_v4.String `db:"status" json:"status"` UserCreated uuid.NullUUID `db:"user_created" json:"userCreated"` UserUpdated uuid.NullUUID `db:"user_updated" json:"userUpdated"` AwsArn null_v4.String `db:"aws_arn" json:"awsArn"` Source null_v4.String `db:"source" json:"source"` }
type Assetfile ¶
type Assetfile struct { AssetID int32 `db:"asset_id" json:"assetId"` AudioLanguageID null_v4.String `db:"audio_language_id" json:"audioLanguageId"` DateCreated time.Time `db:"date_created" json:"dateCreated"` DateUpdated time.Time `db:"date_updated" json:"dateUpdated"` ExtraMetadata pqtype.NullRawMessage `db:"extra_metadata" json:"extraMetadata"` ID int32 `db:"id" json:"id"` MimeType string `db:"mime_type" json:"mimeType"` Path string `db:"path" json:"path"` Storage string `db:"storage" json:"storage"` SubtitleLanguageID null_v4.String `db:"subtitle_language_id" json:"subtitleLanguageId"` Type string `db:"type" json:"type"` UserCreated uuid.NullUUID `db:"user_created" json:"userCreated"` UserUpdated uuid.NullUUID `db:"user_updated" json:"userUpdated"` Resolution null_v4.String `db:"resolution" json:"resolution"` Size int64 `db:"size" json:"size"` }
type Assetstream ¶
type Assetstream struct { AssetID int32 `db:"asset_id" json:"assetId"` DateCreated time.Time `db:"date_created" json:"dateCreated"` DateUpdated time.Time `db:"date_updated" json:"dateUpdated"` EncryptionKeyID null_v4.String `db:"encryption_key_id" json:"encryptionKeyId"` ExtraMetadata pqtype.NullRawMessage `db:"extra_metadata" json:"extraMetadata"` ID int32 `db:"id" json:"id"` LegacyVideourlID null_v4.Int `db:"legacy_videourl_id" json:"legacyVideourlId"` Path string `db:"path" json:"path"` Service string `db:"service" json:"service"` Status string `db:"status" json:"status"` Type string `db:"type" json:"type"` Url string `db:"url" json:"url"` UserCreated uuid.NullUUID `db:"user_created" json:"userCreated"` UserUpdated uuid.NullUUID `db:"user_updated" json:"userUpdated"` ConfigurationID null_v4.String `db:"configuration_id" json:"configurationId"` }
type CalendarentriesTranslation ¶
type CalendarentriesTranslation struct { CalendarentriesID int32 `db:"calendarentries_id" json:"calendarentriesId"` Description null_v4.String `db:"description" json:"description"` ID int32 `db:"id" json:"id"` LanguagesCode string `db:"languages_code" json:"languagesCode"` Title null_v4.String `db:"title" json:"title"` }
type Calendarentry ¶
type Calendarentry struct { DateCreated null_v4.Time `db:"date_created" json:"dateCreated"` DateUpdated null_v4.Time `db:"date_updated" json:"dateUpdated"` End time.Time `db:"end" json:"end"` EpisodeID null_v4.Int `db:"episode_id" json:"episodeId"` EventID null_v4.Int `db:"event_id" json:"eventId"` ID int32 `db:"id" json:"id"` Image uuid.NullUUID `db:"image" json:"image"` ImageFromLink bool `db:"image_from_link" json:"imageFromLink"` LinkType null_v4.String `db:"link_type" json:"linkType"` SeasonID null_v4.Int `db:"season_id" json:"seasonId"` ShowID null_v4.Int `db:"show_id" json:"showId"` Start time.Time `db:"start" json:"start"` Status string `db:"status" json:"status"` UserCreated uuid.NullUUID `db:"user_created" json:"userCreated"` UserUpdated uuid.NullUUID `db:"user_updated" json:"userUpdated"` IsReplay sql.NullBool `db:"is_replay" json:"isReplay"` Label null_v4.String `db:"label" json:"label"` }
type Collection ¶
type Collection struct { DateCreated time.Time `db:"date_created" json:"dateCreated"` DateUpdated time.Time `db:"date_updated" json:"dateUpdated"` ID int32 `db:"id" json:"id"` Sort null_v4.Int `db:"sort" json:"sort"` UserCreated uuid.NullUUID `db:"user_created" json:"userCreated"` UserUpdated uuid.NullUUID `db:"user_updated" json:"userUpdated"` FilterType null_v4.String `db:"filter_type" json:"filterType"` Name null_v4.String `db:"name" json:"name"` QueryFilter pqtype.NullRawMessage `db:"query_filter" json:"queryFilter"` AdvancedType null_v4.String `db:"advanced_type" json:"advancedType"` NumberInTitles bool `db:"number_in_titles" json:"numberInTitles"` }
type CollectionQueries ¶
type CollectionQueries struct { *Queries // contains filtered or unexported fields }
CollectionQueries contains collection specific queries
type CollectionsEntry ¶
type CollectionsTranslation ¶
type ComputeddataCondition ¶
type Computeddatagroup ¶
type Computeddatagroup struct { ID uuid.UUID `db:"id" json:"id"` Status string `db:"status" json:"status"` UserCreated uuid.NullUUID `db:"user_created" json:"userCreated"` DateCreated null_v4.Time `db:"date_created" json:"dateCreated"` UserUpdated uuid.NullUUID `db:"user_updated" json:"userUpdated"` DateUpdated null_v4.Time `db:"date_updated" json:"dateUpdated"` Label string `db:"label" json:"label"` }
type Computeddatum ¶
type Computeddatum struct { ID uuid.UUID `db:"id" json:"id"` Status string `db:"status" json:"status"` UserCreated uuid.NullUUID `db:"user_created" json:"userCreated"` DateCreated null_v4.Time `db:"date_created" json:"dateCreated"` UserUpdated uuid.NullUUID `db:"user_updated" json:"userUpdated"` DateUpdated null_v4.Time `db:"date_updated" json:"dateUpdated"` GroupID uuid.UUID `db:"group_id" json:"groupId"` Value string `db:"value" json:"value"` Label null_v4.String `db:"label" json:"label"` }
type Contribution ¶
type Contribution struct { ID int32 `db:"id" json:"id"` UserCreated uuid.NullUUID `db:"user_created" json:"userCreated"` DateCreated null_v4.Time `db:"date_created" json:"dateCreated"` UserUpdated uuid.NullUUID `db:"user_updated" json:"userUpdated"` DateUpdated null_v4.Time `db:"date_updated" json:"dateUpdated"` PersonID uuid.UUID `db:"person_id" json:"personId"` Type string `db:"type" json:"type"` MediaitemID uuid.NullUUID `db:"mediaitem_id" json:"mediaitemId"` TimedmetadataID uuid.NullUUID `db:"timedmetadata_id" json:"timedmetadataId"` }
type DirectusAccess ¶
type DirectusActivity ¶
type DirectusActivity struct { ID int32 `db:"id" json:"id"` Action string `db:"action" json:"action"` User uuid.NullUUID `db:"user" json:"user"` Timestamp time.Time `db:"timestamp" json:"timestamp"` Ip null_v4.String `db:"ip" json:"ip"` UserAgent null_v4.String `db:"user_agent" json:"userAgent"` Collection string `db:"collection" json:"collection"` Item string `db:"item" json:"item"` Comment null_v4.String `db:"comment" json:"comment"` Origin null_v4.String `db:"origin" json:"origin"` }
type DirectusCollection ¶
type DirectusCollection struct { Collection string `db:"collection" json:"collection"` Icon null_v4.String `db:"icon" json:"icon"` Note null_v4.String `db:"note" json:"note"` DisplayTemplate null_v4.String `db:"display_template" json:"displayTemplate"` Hidden bool `db:"hidden" json:"hidden"` Singleton bool `db:"singleton" json:"singleton"` Translations pqtype.NullRawMessage `db:"translations" json:"translations"` ArchiveField null_v4.String `db:"archive_field" json:"archiveField"` ArchiveAppFilter bool `db:"archive_app_filter" json:"archiveAppFilter"` ArchiveValue null_v4.String `db:"archive_value" json:"archiveValue"` UnarchiveValue null_v4.String `db:"unarchive_value" json:"unarchiveValue"` SortField null_v4.String `db:"sort_field" json:"sortField"` Accountability null_v4.String `db:"accountability" json:"accountability"` Color null_v4.String `db:"color" json:"color"` ItemDuplicationFields pqtype.NullRawMessage `db:"item_duplication_fields" json:"itemDuplicationFields"` Sort null_v4.Int `db:"sort" json:"sort"` Group null_v4.String `db:"group" json:"group"` Collapse string `db:"collapse" json:"collapse"` PreviewUrl null_v4.String `db:"preview_url" json:"previewUrl"` Versioning bool `db:"versioning" json:"versioning"` }
type DirectusDashboard ¶
type DirectusDashboard struct { ID uuid.UUID `db:"id" json:"id"` Name string `db:"name" json:"name"` Icon string `db:"icon" json:"icon"` Note null_v4.String `db:"note" json:"note"` DateCreated null_v4.Time `db:"date_created" json:"dateCreated"` UserCreated uuid.NullUUID `db:"user_created" json:"userCreated"` Color null_v4.String `db:"color" json:"color"` }
type DirectusExtension ¶
type DirectusField ¶
type DirectusField struct { ID int32 `db:"id" json:"id"` Collection string `db:"collection" json:"collection"` Field string `db:"field" json:"field"` Special null_v4.String `db:"special" json:"special"` Interface null_v4.String `db:"interface" json:"interface"` Options pqtype.NullRawMessage `db:"options" json:"options"` Display null_v4.String `db:"display" json:"display"` DisplayOptions pqtype.NullRawMessage `db:"display_options" json:"displayOptions"` Readonly bool `db:"readonly" json:"readonly"` Hidden bool `db:"hidden" json:"hidden"` Sort null_v4.Int `db:"sort" json:"sort"` Width null_v4.String `db:"width" json:"width"` Translations pqtype.NullRawMessage `db:"translations" json:"translations"` Note null_v4.String `db:"note" json:"note"` Conditions pqtype.NullRawMessage `db:"conditions" json:"conditions"` Required sql.NullBool `db:"required" json:"required"` Group null_v4.String `db:"group" json:"group"` Validation pqtype.NullRawMessage `db:"validation" json:"validation"` ValidationMessage null_v4.String `db:"validation_message" json:"validationMessage"` }
type DirectusFile ¶
type DirectusFile struct { ID uuid.UUID `db:"id" json:"id"` Storage string `db:"storage" json:"storage"` FilenameDisk null_v4.String `db:"filename_disk" json:"filenameDisk"` FilenameDownload string `db:"filename_download" json:"filenameDownload"` Title null_v4.String `db:"title" json:"title"` Type null_v4.String `db:"type" json:"type"` Folder uuid.NullUUID `db:"folder" json:"folder"` UploadedBy uuid.NullUUID `db:"uploaded_by" json:"uploadedBy"` UploadedOn null_v4.Time `db:"uploaded_on" json:"uploadedOn"` ModifiedBy uuid.NullUUID `db:"modified_by" json:"modifiedBy"` ModifiedOn time.Time `db:"modified_on" json:"modifiedOn"` Charset null_v4.String `db:"charset" json:"charset"` Filesize null_v4.Int `db:"filesize" json:"filesize"` Width null_v4.Int `db:"width" json:"width"` Height null_v4.Int `db:"height" json:"height"` Duration null_v4.Int `db:"duration" json:"duration"` Embed null_v4.String `db:"embed" json:"embed"` Description null_v4.String `db:"description" json:"description"` Location null_v4.String `db:"location" json:"location"` Tags null_v4.String `db:"tags" json:"tags"` Metadata pqtype.NullRawMessage `db:"metadata" json:"metadata"` CreatedOn time.Time `db:"created_on" json:"createdOn"` FocalPointX null_v4.Int `db:"focal_point_x" json:"focalPointX"` FocalPointY null_v4.Int `db:"focal_point_y" json:"focalPointY"` TusID null_v4.String `db:"tus_id" json:"tusId"` TusData pqtype.NullRawMessage `db:"tus_data" json:"tusData"` }
type DirectusFlow ¶
type DirectusFlow struct { ID uuid.UUID `db:"id" json:"id"` Name string `db:"name" json:"name"` Icon null_v4.String `db:"icon" json:"icon"` Color null_v4.String `db:"color" json:"color"` Description null_v4.String `db:"description" json:"description"` Status string `db:"status" json:"status"` Trigger null_v4.String `db:"trigger" json:"trigger"` Accountability null_v4.String `db:"accountability" json:"accountability"` Options pqtype.NullRawMessage `db:"options" json:"options"` Operation uuid.NullUUID `db:"operation" json:"operation"` DateCreated null_v4.Time `db:"date_created" json:"dateCreated"` UserCreated uuid.NullUUID `db:"user_created" json:"userCreated"` }
type DirectusFolder ¶
type DirectusMigration ¶
type DirectusNotification ¶
type DirectusNotification struct { ID int32 `db:"id" json:"id"` Timestamp null_v4.Time `db:"timestamp" json:"timestamp"` Status null_v4.String `db:"status" json:"status"` Recipient uuid.UUID `db:"recipient" json:"recipient"` Sender uuid.NullUUID `db:"sender" json:"sender"` Subject string `db:"subject" json:"subject"` Message null_v4.String `db:"message" json:"message"` Collection null_v4.String `db:"collection" json:"collection"` Item null_v4.String `db:"item" json:"item"` }
type DirectusOperation ¶
type DirectusOperation struct { ID uuid.UUID `db:"id" json:"id"` Name null_v4.String `db:"name" json:"name"` Key string `db:"key" json:"key"` Type string `db:"type" json:"type"` PositionX int32 `db:"position_x" json:"positionX"` PositionY int32 `db:"position_y" json:"positionY"` Options pqtype.NullRawMessage `db:"options" json:"options"` Resolve uuid.NullUUID `db:"resolve" json:"resolve"` Reject uuid.NullUUID `db:"reject" json:"reject"` Flow uuid.UUID `db:"flow" json:"flow"` DateCreated null_v4.Time `db:"date_created" json:"dateCreated"` UserCreated uuid.NullUUID `db:"user_created" json:"userCreated"` }
type DirectusPanel ¶
type DirectusPanel struct { ID uuid.UUID `db:"id" json:"id"` Dashboard uuid.UUID `db:"dashboard" json:"dashboard"` Name null_v4.String `db:"name" json:"name"` Icon null_v4.String `db:"icon" json:"icon"` Color null_v4.String `db:"color" json:"color"` ShowHeader bool `db:"show_header" json:"showHeader"` Note null_v4.String `db:"note" json:"note"` Type string `db:"type" json:"type"` PositionX int32 `db:"position_x" json:"positionX"` PositionY int32 `db:"position_y" json:"positionY"` Width int32 `db:"width" json:"width"` Height int32 `db:"height" json:"height"` Options pqtype.NullRawMessage `db:"options" json:"options"` DateCreated null_v4.Time `db:"date_created" json:"dateCreated"` UserCreated uuid.NullUUID `db:"user_created" json:"userCreated"` }
type DirectusPermission ¶
type DirectusPermission struct { ID int32 `db:"id" json:"id"` Collection string `db:"collection" json:"collection"` Action string `db:"action" json:"action"` Permissions pqtype.NullRawMessage `db:"permissions" json:"permissions"` Validation pqtype.NullRawMessage `db:"validation" json:"validation"` Presets pqtype.NullRawMessage `db:"presets" json:"presets"` Fields null_v4.String `db:"fields" json:"fields"` Policy uuid.UUID `db:"policy" json:"policy"` }
type DirectusPolicy ¶
type DirectusPolicy struct { ID uuid.UUID `db:"id" json:"id"` Name string `db:"name" json:"name"` Icon string `db:"icon" json:"icon"` Description null_v4.String `db:"description" json:"description"` IpAccess null_v4.String `db:"ip_access" json:"ipAccess"` EnforceTfa bool `db:"enforce_tfa" json:"enforceTfa"` AdminAccess bool `db:"admin_access" json:"adminAccess"` AppAccess bool `db:"app_access" json:"appAccess"` }
type DirectusPreset ¶
type DirectusPreset struct { ID int32 `db:"id" json:"id"` Bookmark null_v4.String `db:"bookmark" json:"bookmark"` User uuid.NullUUID `db:"user" json:"user"` Role uuid.NullUUID `db:"role" json:"role"` Collection null_v4.String `db:"collection" json:"collection"` Search null_v4.String `db:"search" json:"search"` Layout null_v4.String `db:"layout" json:"layout"` LayoutQuery pqtype.NullRawMessage `db:"layout_query" json:"layoutQuery"` LayoutOptions pqtype.NullRawMessage `db:"layout_options" json:"layoutOptions"` RefreshInterval null_v4.Int `db:"refresh_interval" json:"refreshInterval"` Filter pqtype.NullRawMessage `db:"filter" json:"filter"` Icon null_v4.String `db:"icon" json:"icon"` Color null_v4.String `db:"color" json:"color"` }
type DirectusRelation ¶
type DirectusRelation struct { ID int32 `db:"id" json:"id"` ManyCollection string `db:"many_collection" json:"manyCollection"` ManyField string `db:"many_field" json:"manyField"` OneCollection null_v4.String `db:"one_collection" json:"oneCollection"` OneField null_v4.String `db:"one_field" json:"oneField"` OneCollectionField null_v4.String `db:"one_collection_field" json:"oneCollectionField"` OneAllowedCollections null_v4.String `db:"one_allowed_collections" json:"oneAllowedCollections"` JunctionField null_v4.String `db:"junction_field" json:"junctionField"` SortField null_v4.String `db:"sort_field" json:"sortField"` OneDeselectAction string `db:"one_deselect_action" json:"oneDeselectAction"` }
type DirectusRevision ¶
type DirectusRevision struct { ID int32 `db:"id" json:"id"` Activity int32 `db:"activity" json:"activity"` Collection string `db:"collection" json:"collection"` Item string `db:"item" json:"item"` Data pqtype.NullRawMessage `db:"data" json:"data"` Delta pqtype.NullRawMessage `db:"delta" json:"delta"` Parent null_v4.Int `db:"parent" json:"parent"` Version uuid.NullUUID `db:"version" json:"version"` }
type DirectusRole ¶
type DirectusSession ¶
type DirectusSession struct { Token string `db:"token" json:"token"` User uuid.NullUUID `db:"user" json:"user"` Expires time.Time `db:"expires" json:"expires"` Ip null_v4.String `db:"ip" json:"ip"` UserAgent null_v4.String `db:"user_agent" json:"userAgent"` Origin null_v4.String `db:"origin" json:"origin"` NextToken null_v4.String `db:"next_token" json:"nextToken"` }
type DirectusSetting ¶
type DirectusSetting struct { ID int32 `db:"id" json:"id"` ProjectName string `db:"project_name" json:"projectName"` ProjectUrl null_v4.String `db:"project_url" json:"projectUrl"` ProjectColor string `db:"project_color" json:"projectColor"` ProjectLogo uuid.NullUUID `db:"project_logo" json:"projectLogo"` PublicForeground uuid.NullUUID `db:"public_foreground" json:"publicForeground"` PublicBackground uuid.NullUUID `db:"public_background" json:"publicBackground"` PublicNote null_v4.String `db:"public_note" json:"publicNote"` AuthLoginAttempts null_v4.Int `db:"auth_login_attempts" json:"authLoginAttempts"` AuthPasswordPolicy null_v4.String `db:"auth_password_policy" json:"authPasswordPolicy"` StorageAssetTransform null_v4.String `db:"storage_asset_transform" json:"storageAssetTransform"` StorageAssetPresets pqtype.NullRawMessage `db:"storage_asset_presets" json:"storageAssetPresets"` CustomCss null_v4.String `db:"custom_css" json:"customCss"` StorageDefaultFolder uuid.NullUUID `db:"storage_default_folder" json:"storageDefaultFolder"` Basemaps pqtype.NullRawMessage `db:"basemaps" json:"basemaps"` MapboxKey null_v4.String `db:"mapbox_key" json:"mapboxKey"` ModuleBar pqtype.NullRawMessage `db:"module_bar" json:"moduleBar"` ProjectDescriptor null_v4.String `db:"project_descriptor" json:"projectDescriptor"` DefaultLanguage string `db:"default_language" json:"defaultLanguage"` CustomAspectRatios pqtype.NullRawMessage `db:"custom_aspect_ratios" json:"customAspectRatios"` PublicFavicon uuid.NullUUID `db:"public_favicon" json:"publicFavicon"` DefaultAppearance string `db:"default_appearance" json:"defaultAppearance"` DefaultThemeLight null_v4.String `db:"default_theme_light" json:"defaultThemeLight"` ThemeLightOverrides pqtype.NullRawMessage `db:"theme_light_overrides" json:"themeLightOverrides"` DefaultThemeDark null_v4.String `db:"default_theme_dark" json:"defaultThemeDark"` ThemeDarkOverrides pqtype.NullRawMessage `db:"theme_dark_overrides" json:"themeDarkOverrides"` ReportErrorUrl null_v4.String `db:"report_error_url" json:"reportErrorUrl"` ReportBugUrl null_v4.String `db:"report_bug_url" json:"reportBugUrl"` ReportFeatureUrl null_v4.String `db:"report_feature_url" json:"reportFeatureUrl"` PublicRegistration bool `db:"public_registration" json:"publicRegistration"` PublicRegistrationVerifyEmail bool `db:"public_registration_verify_email" json:"publicRegistrationVerifyEmail"` PublicRegistrationRole uuid.NullUUID `db:"public_registration_role" json:"publicRegistrationRole"` PublicRegistrationEmailFilter pqtype.NullRawMessage `db:"public_registration_email_filter" json:"publicRegistrationEmailFilter"` }
type DirectusShare ¶
type DirectusShare struct {}
type DirectusTranslation ¶
type DirectusUser ¶
type DirectusUser struct { ID uuid.UUID `db:"id" json:"id"` FirstName null_v4.String `db:"first_name" json:"firstName"` LastName null_v4.String `db:"last_name" json:"lastName"` Email null_v4.String `db:"email" json:"email"` Password null_v4.String `db:"password" json:"password"` Location null_v4.String `db:"location" json:"location"` Title null_v4.String `db:"title" json:"title"` Description null_v4.String `db:"description" json:"description"` Tags pqtype.NullRawMessage `db:"tags" json:"tags"` Avatar uuid.NullUUID `db:"avatar" json:"avatar"` Language null_v4.String `db:"language" json:"language"` TfaSecret null_v4.String `db:"tfa_secret" json:"tfaSecret"` Status string `db:"status" json:"status"` Role uuid.NullUUID `db:"role" json:"role"` Token null_v4.String `db:"token" json:"token"` LastAccess null_v4.Time `db:"last_access" json:"lastAccess"` LastPage null_v4.String `db:"last_page" json:"lastPage"` Provider string `db:"provider" json:"provider"` ExternalIdentifier null_v4.String `db:"external_identifier" json:"externalIdentifier"` AuthData pqtype.NullRawMessage `db:"auth_data" json:"authData"` EmailNotifications sql.NullBool `db:"email_notifications" json:"emailNotifications"` Appearance null_v4.String `db:"appearance" json:"appearance"` ThemeDark null_v4.String `db:"theme_dark" json:"themeDark"` ThemeLight null_v4.String `db:"theme_light" json:"themeLight"` ThemeLightOverrides pqtype.NullRawMessage `db:"theme_light_overrides" json:"themeLightOverrides"` ThemeDarkOverrides pqtype.NullRawMessage `db:"theme_dark_overrides" json:"themeDarkOverrides"` }
type DirectusVersion ¶
type DirectusVersion struct { ID uuid.UUID `db:"id" json:"id"` Key string `db:"key" json:"key"` Name null_v4.String `db:"name" json:"name"` Collection string `db:"collection" json:"collection"` Item string `db:"item" json:"item"` Hash null_v4.String `db:"hash" json:"hash"` DateCreated null_v4.Time `db:"date_created" json:"dateCreated"` DateUpdated null_v4.Time `db:"date_updated" json:"dateUpdated"` UserCreated uuid.NullUUID `db:"user_created" json:"userCreated"` UserUpdated uuid.NullUUID `db:"user_updated" json:"userUpdated"` }
type DirectusWebhook ¶
type DirectusWebhook struct { ID int32 `db:"id" json:"id"` Name string `db:"name" json:"name"` Method string `db:"method" json:"method"` Url string `db:"url" json:"url"` Status string `db:"status" json:"status"` Data bool `db:"data" json:"data"` Actions string `db:"actions" json:"actions"` Collections string `db:"collections" json:"collections"` Headers pqtype.NullRawMessage `db:"headers" json:"headers"` WasActiveBeforeDeprecation bool `db:"was_active_before_deprecation" json:"wasActiveBeforeDeprecation"` MigratedFlow uuid.NullUUID `db:"migrated_flow" json:"migratedFlow"` }
type Episode ¶
type Episode struct { AgeratingCode null_v4.String `db:"agerating_code" json:"ageratingCode"` AssetID null_v4.Int `db:"asset_id" json:"assetId"` AvailableFrom null_v4.Time `db:"available_from" json:"availableFrom"` AvailableTo null_v4.Time `db:"available_to" json:"availableTo"` DateCreated time.Time `db:"date_created" json:"dateCreated"` DateUpdated time.Time `db:"date_updated" json:"dateUpdated"` EpisodeNumber null_v4.Int `db:"episode_number" json:"episodeNumber"` ID int32 `db:"id" json:"id"` ImageFileID uuid.NullUUID `db:"image_file_id" json:"imageFileId"` LegacyDescriptionID null_v4.Int `db:"legacy_description_id" json:"legacyDescriptionId"` LegacyExtraDescriptionID null_v4.Int `db:"legacy_extra_description_id" json:"legacyExtraDescriptionId"` LegacyID null_v4.Int `db:"legacy_id" json:"legacyId"` LegacyProgramID null_v4.Int `db:"legacy_program_id" json:"legacyProgramId"` LegacyTagsID null_v4.Int `db:"legacy_tags_id" json:"legacyTagsId"` LegacyTitleID null_v4.Int `db:"legacy_title_id" json:"legacyTitleId"` MigrationData pqtype.NullRawMessage `db:"migration_data" json:"migrationData"` PublishDate null_v4.Time `db:"publish_date" json:"publishDate"` SeasonID null_v4.Int `db:"season_id" json:"seasonId"` Status string `db:"status" json:"status"` Type string `db:"type" json:"type"` UserCreated uuid.NullUUID `db:"user_created" json:"userCreated"` UserUpdated uuid.NullUUID `db:"user_updated" json:"userUpdated"` PublishDateInTitle sql.NullBool `db:"publish_date_in_title" json:"publishDateInTitle"` Label null_v4.String `db:"label" json:"label"` ProductionDate null_v4.Time `db:"production_date" json:"productionDate"` PublicTitle null_v4.String `db:"public_title" json:"publicTitle"` PreventPublicIndexing sql.NullBool `db:"prevent_public_indexing" json:"preventPublicIndexing"` Uuid uuid.UUID `db:"uuid" json:"uuid"` ContentType null_v4.String `db:"content_type" json:"contentType"` Audience null_v4.String `db:"audience" json:"audience"` TimedmetadataFromAsset bool `db:"timedmetadata_from_asset" json:"timedmetadataFromAsset"` TranslationsRequired bool `db:"translations_required" json:"translationsRequired"` MediaitemID uuid.NullUUID `db:"mediaitem_id" json:"mediaitemId"` }
type EpisodeAvailability ¶
type EpisodeAvailability struct { ID int32 `db:"id" json:"id"` Published sql.NullBool `db:"published" json:"published"` AvailableFrom interface{} `db:"available_from" json:"availableFrom"` AvailableTo interface{} `db:"available_to" json:"availableTo"` PublishedOn interface{} `db:"published_on" json:"publishedOn"` }
type EpisodeRole ¶
type EpisodeRole struct { ID int32 `db:"id" json:"id"` Roles interface{} `db:"roles" json:"roles"` RolesDownload interface{} `db:"roles_download" json:"rolesDownload"` RolesEarlyaccess interface{} `db:"roles_earlyaccess" json:"rolesEarlyaccess"` }
type EpisodesAsset ¶
type EpisodesTag ¶
type EpisodesTranslation ¶
type EpisodesTranslation struct { Description null_v4.String `db:"description" json:"description"` EpisodesID int32 `db:"episodes_id" json:"episodesId"` ExtraDescription null_v4.String `db:"extra_description" json:"extraDescription"` ID int32 `db:"id" json:"id"` IsPrimary bool `db:"is_primary" json:"isPrimary"` LanguagesCode string `db:"languages_code" json:"languagesCode"` Title null_v4.String `db:"title" json:"title"` }
type EpisodesUsergroup ¶
type EpisodesUsergroup struct { EpisodesID int32 `db:"episodes_id" json:"episodesId"` ID int32 `db:"id" json:"id"` Type null_v4.String `db:"type" json:"type"` UsergroupsCode string `db:"usergroups_code" json:"usergroupsCode"` DateCreated time.Time `db:"date_created" json:"dateCreated"` DateUpdated null_v4.Time `db:"date_updated" json:"dateUpdated"` }
type EpisodesUsergroupsDownload ¶
type EpisodesUsergroupsDownload struct { EpisodesID int32 `db:"episodes_id" json:"episodesId"` ID int32 `db:"id" json:"id"` UsergroupsCode string `db:"usergroups_code" json:"usergroupsCode"` DateCreated time.Time `db:"date_created" json:"dateCreated"` DateUpdated time.Time `db:"date_updated" json:"dateUpdated"` }
type EpisodesUsergroupsEarlyaccess ¶
type EpisodesUsergroupsEarlyaccess struct { EpisodesID int32 `db:"episodes_id" json:"episodesId"` ID int32 `db:"id" json:"id"` UsergroupsCode string `db:"usergroups_code" json:"usergroupsCode"` DateCreated time.Time `db:"date_created" json:"dateCreated"` DateUpdated time.Time `db:"date_updated" json:"dateUpdated"` }
type Event ¶
type Event struct { DateCreated null_v4.Time `db:"date_created" json:"dateCreated"` DateUpdated null_v4.Time `db:"date_updated" json:"dateUpdated"` End time.Time `db:"end" json:"end"` ID int32 `db:"id" json:"id"` Start time.Time `db:"start" json:"start"` Status string `db:"status" json:"status"` UserCreated uuid.NullUUID `db:"user_created" json:"userCreated"` UserUpdated uuid.NullUUID `db:"user_updated" json:"userUpdated"` }
type EventsTranslation ¶
type Faq ¶
type Faq struct { ID uuid.UUID `db:"id" json:"id"` Status string `db:"status" json:"status"` Sort null_v4.Int `db:"sort" json:"sort"` UserCreated uuid.NullUUID `db:"user_created" json:"userCreated"` DateCreated null_v4.Time `db:"date_created" json:"dateCreated"` UserUpdated uuid.NullUUID `db:"user_updated" json:"userUpdated"` DateUpdated null_v4.Time `db:"date_updated" json:"dateUpdated"` Question string `db:"question" json:"question"` Answer string `db:"answer" json:"answer"` CategoryID uuid.UUID `db:"category_id" json:"categoryId"` TranslationsRequired bool `db:"translations_required" json:"translationsRequired"` }
type FaqcategoriesTranslation ¶
type FaqcategoriesTranslation struct { ID int32 `db:"id" json:"id"` FaqcategoriesID uuid.UUID `db:"faqcategories_id" json:"faqcategoriesId"` LanguagesCode string `db:"languages_code" json:"languagesCode"` Description null_v4.String `db:"description" json:"description"` Title null_v4.String `db:"title" json:"title"` }
type Faqcategory ¶
type Faqcategory struct { ID uuid.UUID `db:"id" json:"id"` Status string `db:"status" json:"status"` Sort null_v4.Int `db:"sort" json:"sort"` UserCreated uuid.NullUUID `db:"user_created" json:"userCreated"` DateCreated null_v4.Time `db:"date_created" json:"dateCreated"` UserUpdated uuid.NullUUID `db:"user_updated" json:"userUpdated"` DateUpdated null_v4.Time `db:"date_updated" json:"dateUpdated"` Title string `db:"title" json:"title"` Description null_v4.String `db:"description" json:"description"` }
type FaqsTranslation ¶
type FaqsUsergroup ¶
type FilterDataset ¶
type FilterDataset struct { Collection string `db:"collection" json:"collection"` ID int32 `db:"id" json:"id"` Uuid uuid.UUID `db:"uuid" json:"uuid"` SeasonID int32 `db:"season_id" json:"seasonId"` ShowID int32 `db:"show_id" json:"showId"` AgeratingCode null_v4.String `db:"agerating_code" json:"ageratingCode"` Number null_v4.Int `db:"number" json:"number"` Type string `db:"type" json:"type"` PublishDate null_v4.Time `db:"publish_date" json:"publishDate"` Published sql.NullBool `db:"published" json:"published"` AvailableFrom interface{} `db:"available_from" json:"availableFrom"` AvailableTo interface{} `db:"available_to" json:"availableTo"` Roles interface{} `db:"roles" json:"roles"` Tags interface{} `db:"tags" json:"tags"` }
type Game ¶
type Game struct { ID uuid.UUID `db:"id" json:"id"` Status string `db:"status" json:"status"` UserCreated uuid.NullUUID `db:"user_created" json:"userCreated"` DateCreated null_v4.Time `db:"date_created" json:"dateCreated"` UserUpdated uuid.NullUUID `db:"user_updated" json:"userUpdated"` DateUpdated null_v4.Time `db:"date_updated" json:"dateUpdated"` Title string `db:"title" json:"title"` Description null_v4.String `db:"description" json:"description"` LinkID int32 `db:"link_id" json:"linkId"` TranslationsRequired bool `db:"translations_required" json:"translationsRequired"` }
type GamesStyledimage ¶
type GamesTranslation ¶
type GamesUsergroup ¶
type GetAnsweredTasksParams ¶
type GetAnswersSinceRow ¶
type GetAnswersSinceRow struct { Message string `db:"message" json:"message"` ItemID uuid.UUID `db:"item_id" json:"itemId"` Rating int32 `db:"rating" json:"rating"` AgeGroup null_v4.String `db:"age_group" json:"ageGroup"` OrgID null_v4.Int `db:"org_id" json:"orgId"` Updated null_v4.Time `db:"updated" json:"updated"` }
type GetAssetTimedMetadataRow ¶
type GetAssetTimedMetadataRow struct { ID uuid.UUID `db:"id" json:"id"` Status string `db:"status" json:"status"` UserCreated uuid.NullUUID `db:"user_created" json:"userCreated"` DateCreated null_v4.Time `db:"date_created" json:"dateCreated"` UserUpdated uuid.NullUUID `db:"user_updated" json:"userUpdated"` DateUpdated null_v4.Time `db:"date_updated" json:"dateUpdated"` Label string `db:"label" json:"label"` Type string `db:"type" json:"type"` Highlight bool `db:"highlight" json:"highlight"` Title null_v4.String `db:"title" json:"title"` AssetID null_v4.Int `db:"asset_id" json:"assetId"` Seconds float32 `db:"seconds" json:"seconds"` Description null_v4.String `db:"description" json:"description"` EpisodeID null_v4.Int `db:"episode_id" json:"episodeId"` MediaitemID uuid.NullUUID `db:"mediaitem_id" json:"mediaitemId"` ContentType null_v4.String `db:"content_type" json:"contentType"` SongID uuid.NullUUID `db:"song_id" json:"songId"` PersonIds []uuid.UUID `db:"person_ids" json:"personIds"` }
type GetLessonProgressGroupedByOrgRow ¶
type GetLessonProgressGroupedByOrgRow struct { OrgID null_v4.Int `db:"org_id" json:"orgId"` Name null_v4.String `db:"name" json:"name"` Type null_v4.String `db:"type" json:"type"` Answers int64 `db:"answers" json:"answers"` Totals null_v4.Int `db:"totals" json:"totals"` Perc float64 `db:"perc" json:"perc"` }
type GetMediaProgressParams ¶
type GetMediaProgressRow ¶
type GetMediaProgressRow struct { ProfileID uuid.UUID `db:"profile_id" json:"profileId"` ItemID uuid.UUID `db:"item_id" json:"itemId"` Progress float32 `db:"progress" json:"progress"` Duration float32 `db:"duration" json:"duration"` Watched int32 `db:"watched" json:"watched"` WatchedAt null_v4.Time `db:"watched_at" json:"watchedAt"` UpdatedAt time.Time `db:"updated_at" json:"updatedAt"` Context pqtype.NullRawMessage `db:"context" json:"context"` FromStart bool `db:"from_start" json:"fromStart"` }
type GetPromptsRow ¶
type GetPromptsRow struct { ID uuid.UUID `db:"id" json:"id"` OriginalTitle string `db:"original_title" json:"originalTitle"` OriginalSecondaryTitle null_v4.String `db:"original_secondary_title" json:"originalSecondaryTitle"` From time.Time `db:"from" json:"from"` To time.Time `db:"to" json:"to"` Type string `db:"type" json:"type"` SurveyID uuid.NullUUID `db:"survey_id" json:"surveyId"` Title pqtype.NullRawMessage `db:"title" json:"title"` SecondaryTitle pqtype.NullRawMessage `db:"secondary_title" json:"secondaryTitle"` }
type GetQuestionAlternativesByIDsRow ¶
type GetQuestionAlternativesByIDsRow struct { ID uuid.UUID `db:"id" json:"id"` OriginalTitle null_v4.String `db:"original_title" json:"originalTitle"` TaskID uuid.NullUUID `db:"task_id" json:"taskId"` IsCorrect bool `db:"is_correct" json:"isCorrect"` Title pqtype.NullRawMessage `db:"title" json:"title"` }
type GetRolesForPlaylistsRow ¶
type GetRolesRow ¶
type GetRolesWithCodeRow ¶
type GetTargetsRow ¶
type Globalconfig ¶
type Globalconfig struct { DateUpdated time.Time `db:"date_updated" json:"dateUpdated"` ID int32 `db:"id" json:"id"` LiveOnline sql.NullBool `db:"live_online" json:"liveOnline"` NpawEnabled sql.NullBool `db:"npaw_enabled" json:"npawEnabled"` UserUpdated uuid.UUID `db:"user_updated" json:"userUpdated"` }
type GooseDbVersion ¶
type Image ¶
type Image struct { ID int32 `db:"id" json:"id"` UserCreated uuid.NullUUID `db:"user_created" json:"userCreated"` DateCreated null_v4.Time `db:"date_created" json:"dateCreated"` UserUpdated uuid.NullUUID `db:"user_updated" json:"userUpdated"` DateUpdated null_v4.Time `db:"date_updated" json:"dateUpdated"` ShowID null_v4.Int `db:"show_id" json:"showId"` SeasonID null_v4.Int `db:"season_id" json:"seasonId"` EpisodeID null_v4.Int `db:"episode_id" json:"episodeId"` Style string `db:"style" json:"style"` File uuid.NullUUID `db:"file" json:"file"` Language string `db:"language" json:"language"` PageID null_v4.Int `db:"page_id" json:"pageId"` LinkID null_v4.Int `db:"link_id" json:"linkId"` NotificationtemplateID uuid.NullUUID `db:"notificationtemplate_id" json:"notificationtemplateId"` }
type InsertAssetFileParams ¶
type InsertAssetFileParams struct { AssetID int32 `db:"asset_id" json:"assetId"` AudioLanguageID null_v4.String `db:"audio_language_id" json:"audioLanguageId"` SubtitleLanguageID null_v4.String `db:"subtitle_language_id" json:"subtitleLanguageId"` Size int64 `db:"size" json:"size"` Path string `db:"path" json:"path"` Resolution null_v4.String `db:"resolution" json:"resolution"` MimeType string `db:"mime_type" json:"mimeType"` Type string `db:"type" json:"type"` Storage string `db:"storage" json:"storage"` }
type InsertAssetParams ¶
type InsertAssetParams struct { Duration int32 `db:"duration" json:"duration"` EncodingVersion null_v4.String `db:"encoding_version" json:"encodingVersion"` LegacyID null_v4.Int `db:"legacy_id" json:"legacyId"` MainStoragePath null_v4.String `db:"main_storage_path" json:"mainStoragePath"` MediabankenID null_v4.String `db:"mediabanken_id" json:"mediabankenId"` Name string `db:"name" json:"name"` Status null_v4.String `db:"status" json:"status"` AwsArn null_v4.String `db:"aws_arn" json:"awsArn"` Source null_v4.String `db:"source" json:"source"` }
type InsertAssetStreamParams ¶
type InsertAssetStreamParams struct { AssetID int32 `db:"asset_id" json:"assetId"` EncryptionKeyID null_v4.String `db:"encryption_key_id" json:"encryptionKeyId"` ExtraMetadata pqtype.NullRawMessage `db:"extra_metadata" json:"extraMetadata"` LegacyVideourlID null_v4.Int `db:"legacy_videourl_id" json:"legacyVideourlId"` Path string `db:"path" json:"path"` Service string `db:"service" json:"service"` Status string `db:"status" json:"status"` Type string `db:"type" json:"type"` Url string `db:"url" json:"url"` ConfigurationID null_v4.String `db:"configuration_id" json:"configurationId"` }
type InsertDirectusFileParams ¶
type InsertDirectusFileParams struct { ID uuid.UUID `db:"id" json:"id"` Storage string `db:"storage" json:"storage"` FilenameDisk string `db:"filename_disk" json:"filenameDisk"` FilenameDownload string `db:"filename_download" json:"filenameDownload"` Title null_v4.String `db:"title" json:"title"` Type null_v4.String `db:"type" json:"type"` Folder uuid.NullUUID `db:"folder" json:"folder"` Charset null_v4.String `db:"charset" json:"charset"` Filesize null_v4.Int `db:"filesize" json:"filesize"` Width null_v4.Int `db:"width" json:"width"` Height null_v4.Int `db:"height" json:"height"` Duration null_v4.Int `db:"duration" json:"duration"` Embed null_v4.String `db:"embed" json:"embed"` Description null_v4.String `db:"description" json:"description"` Location null_v4.String `db:"location" json:"location"` Tags null_v4.String `db:"tags" json:"tags"` Metadata pqtype.NullRawMessage `db:"metadata" json:"metadata"` }
type InsertMediaItemParams ¶
type InsertMediaItemParams struct { Label string `db:"label" json:"label"` Title null_v4.String `db:"title" json:"title"` Description null_v4.String `db:"description" json:"description"` Type string `db:"type" json:"type"` AssetID null_v4.Int `db:"asset_id" json:"assetId"` ParentEpisodeID null_v4.Int `db:"parent_episode_id" json:"parentEpisodeId"` ParentStartsAt sql.NullFloat64 `db:"parent_starts_at" json:"parentStartsAt"` ParentEndsAt sql.NullFloat64 `db:"parent_ends_at" json:"parentEndsAt"` PublishedAt null_v4.Time `db:"published_at" json:"publishedAt"` ProductionDate null_v4.Time `db:"production_date" json:"productionDate"` ParentID uuid.NullUUID `db:"parent_id" json:"parentId"` ContentType null_v4.String `db:"content_type" json:"contentType"` Audience null_v4.String `db:"audience" json:"audience"` AgeratingCode null_v4.String `db:"agerating_code" json:"ageratingCode"` TranslationsRequired bool `db:"translations_required" json:"translationsRequired"` TimedmetadataFromAsset bool `db:"timedmetadata_from_asset" json:"timedmetadataFromAsset"` AvailableFrom null_v4.Time `db:"available_from" json:"availableFrom"` AvailableTo null_v4.Time `db:"available_to" json:"availableTo"` PrimaryEpisodeID null_v4.Int `db:"primary_episode_id" json:"primaryEpisodeId"` }
type InsertMemberParams ¶
type InsertOrgCountsParams ¶
type InsertOrgParams ¶
type InsertPersonParams ¶
type InsertSongParams ¶
type InsertStyledImageParams ¶
type InsertTimedMetadataParams ¶
type InsertTimedMetadataParams struct { Status string `db:"status" json:"status"` Label string `db:"label" json:"label"` Type string `db:"type" json:"type"` Highlight bool `db:"highlight" json:"highlight"` Title string `db:"title" json:"title"` AssetID null_v4.Int `db:"asset_id" json:"assetId"` Seconds float32 `db:"seconds" json:"seconds"` Description string `db:"description" json:"description"` EpisodeID null_v4.Int `db:"episode_id" json:"episodeId"` MediaitemID uuid.NullUUID `db:"mediaitem_id" json:"mediaitemId"` ContentType null_v4.String `db:"content_type" json:"contentType"` SongID uuid.NullUUID `db:"song_id" json:"songId"` }
type Int32TranslationRow ¶
type Int32TranslationRow struct { ID int32 `db:"id" json:"id"` ParentID int32 `db:"parent_id" json:"parentId"` Language string `db:"language" json:"language"` Values json.RawMessage `db:"values" json:"values"` }
Int32TranslationRow is a common structure for all int32 translation rows
func (Int32TranslationRow) GetKey ¶
func (r Int32TranslationRow) GetKey() string
GetKey for this item
func (Int32TranslationRow) GetLanguage ¶
func (r Int32TranslationRow) GetLanguage() string
GetLanguage for this item
func (Int32TranslationRow) GetParentKey ¶
func (r Int32TranslationRow) GetParentKey() string
GetParentKey for this item
func (Int32TranslationRow) GetValues ¶
func (r Int32TranslationRow) GetValues() map[string]string
GetValues for this entry
type Lesson ¶
type Lesson struct { ID uuid.UUID `db:"id" json:"id"` Status string `db:"status" json:"status"` UserCreated uuid.NullUUID `db:"user_created" json:"userCreated"` DateCreated null_v4.Time `db:"date_created" json:"dateCreated"` UserUpdated uuid.NullUUID `db:"user_updated" json:"userUpdated"` DateUpdated null_v4.Time `db:"date_updated" json:"dateUpdated"` Title string `db:"title" json:"title"` TopicID uuid.UUID `db:"topic_id" json:"topicId"` Sort null_v4.Int `db:"sort" json:"sort"` Description null_v4.String `db:"description" json:"description"` TranslationsRequired bool `db:"translations_required" json:"translationsRequired"` }
type LessonsImage ¶
type LessonsRelation ¶
type LessonsTranslation ¶
type Link ¶
type Link struct { ID int32 `db:"id" json:"id"` Status string `db:"status" json:"status"` UserCreated uuid.NullUUID `db:"user_created" json:"userCreated"` DateCreated null_v4.Time `db:"date_created" json:"dateCreated"` UserUpdated uuid.NullUUID `db:"user_updated" json:"userUpdated"` DateUpdated null_v4.Time `db:"date_updated" json:"dateUpdated"` Url string `db:"url" json:"url"` Type null_v4.String `db:"type" json:"type"` ComputeddatagroupID uuid.NullUUID `db:"computeddatagroup_id" json:"computeddatagroupId"` Label null_v4.String `db:"label" json:"label"` RequiresAuthentication bool `db:"requires_authentication" json:"requiresAuthentication"` TranslationsRequired bool `db:"translations_required" json:"translationsRequired"` }
type LinksTranslation ¶
type ListAchievementGroupOriginalTranslationsRow ¶
type ListAchievementGroupOriginalTranslationsRow struct { ID uuid.UUID `db:"id" json:"id"` Values json.RawMessage `db:"values" json:"values"` }
type ListAchievementOriginalTranslationsRow ¶
type ListAchievementOriginalTranslationsRow struct { ID uuid.UUID `db:"id" json:"id"` Values json.RawMessage `db:"values" json:"values"` }
type ListCalendarEntryTranslationsRow ¶
type ListCalendarEntryTranslationsRow struct { ID int32 `db:"id" json:"id"` ParentID int32 `db:"parent_id" json:"parentId"` Language string `db:"language" json:"language"` Values json.RawMessage `db:"values" json:"values"` }
type ListEpisodeTranslationsRow ¶
type ListEpisodeTranslationsRow struct { ID int32 `db:"id" json:"id"` ParentID int32 `db:"parent_id" json:"parentId"` Language string `db:"language" json:"language"` Values json.RawMessage `db:"values" json:"values"` }
type ListEventTranslationsRow ¶
type ListEventTranslationsRow struct { ID int32 `db:"id" json:"id"` ParentID int32 `db:"parent_id" json:"parentId"` Language string `db:"language" json:"language"` Values json.RawMessage `db:"values" json:"values"` }
type ListFAQCategoryOriginalTranslationsRow ¶
type ListFAQCategoryOriginalTranslationsRow struct { ID uuid.UUID `db:"id" json:"id"` Values json.RawMessage `db:"values" json:"values"` }
type ListFAQOriginalTranslationsRow ¶
type ListFAQOriginalTranslationsRow struct { ID uuid.UUID `db:"id" json:"id"` Values json.RawMessage `db:"values" json:"values"` }
type ListFAQTranslationsRow ¶
type ListGameOriginalTranslationsRow ¶
type ListGameOriginalTranslationsRow struct { ID uuid.UUID `db:"id" json:"id"` Values json.RawMessage `db:"values" json:"values"` }
type ListGameTranslationsRow ¶
type ListLessonOriginalTranslationsRow ¶
type ListLessonOriginalTranslationsRow struct { ID uuid.UUID `db:"id" json:"id"` Values json.RawMessage `db:"values" json:"values"` }
type ListLinkTranslationsRow ¶
type ListLinkTranslationsRow struct { ID int32 `db:"id" json:"id"` ParentID int32 `db:"parent_id" json:"parentId"` Language string `db:"language" json:"language"` Values json.RawMessage `db:"values" json:"values"` }
type ListMediaItemOriginalTranslationsRow ¶
type ListMediaItemOriginalTranslationsRow struct { ID uuid.UUID `db:"id" json:"id"` Values json.RawMessage `db:"values" json:"values"` }
type ListPageTranslationsRow ¶
type ListPageTranslationsRow struct { ID int32 `db:"id" json:"id"` ParentID int32 `db:"parent_id" json:"parentId"` Language string `db:"language" json:"language"` Values json.RawMessage `db:"values" json:"values"` }
type ListPlaylistOriginalTranslationsRow ¶
type ListPlaylistOriginalTranslationsRow struct { ID uuid.UUID `db:"id" json:"id"` Values json.RawMessage `db:"values" json:"values"` }
type ListQuestionAlternativesOriginalTranslationsRow ¶
type ListQuestionAlternativesOriginalTranslationsRow struct { ID uuid.UUID `db:"id" json:"id"` Values json.RawMessage `db:"values" json:"values"` }
type ListSeasonTranslationsRow ¶
type ListSeasonTranslationsRow struct { ID int32 `db:"id" json:"id"` ParentID int32 `db:"parent_id" json:"parentId"` Language string `db:"language" json:"language"` Values json.RawMessage `db:"values" json:"values"` }
type ListSectionTranslationsRow ¶
type ListSectionTranslationsRow struct { ID int32 `db:"id" json:"id"` ParentID int32 `db:"parent_id" json:"parentId"` Language string `db:"language" json:"language"` Values json.RawMessage `db:"values" json:"values"` }
type ListShowTranslationsRow ¶
type ListShowTranslationsRow struct { ID int32 `db:"id" json:"id"` ParentID int32 `db:"parent_id" json:"parentId"` Language string `db:"language" json:"language"` Values json.RawMessage `db:"values" json:"values"` }
type ListStudyTopicOriginalTranslationsRow ¶
type ListStudyTopicOriginalTranslationsRow struct { ID uuid.UUID `db:"id" json:"id"` Values json.RawMessage `db:"values" json:"values"` }
type ListSurveyOriginalTranslationsRow ¶
type ListSurveyOriginalTranslationsRow struct { ID uuid.UUID `db:"id" json:"id"` Values json.RawMessage `db:"values" json:"values"` }
type ListSurveyQuestionOriginalTranslationsRow ¶
type ListSurveyQuestionOriginalTranslationsRow struct { ID uuid.UUID `db:"id" json:"id"` Values json.RawMessage `db:"values" json:"values"` }
type ListTaskOriginalTranslationsRow ¶
type ListTaskOriginalTranslationsRow struct { ID uuid.UUID `db:"id" json:"id"` Values json.RawMessage `db:"values" json:"values"` }
type ListTaskTranslationsRow ¶
type MaterializedViewsMetum ¶
type Mediaitem ¶
type Mediaitem struct { ID uuid.UUID `db:"id" json:"id"` UserCreated uuid.NullUUID `db:"user_created" json:"userCreated"` DateCreated null_v4.Time `db:"date_created" json:"dateCreated"` UserUpdated uuid.NullUUID `db:"user_updated" json:"userUpdated"` DateUpdated null_v4.Time `db:"date_updated" json:"dateUpdated"` Label string `db:"label" json:"label"` Title null_v4.String `db:"title" json:"title"` Description null_v4.String `db:"description" json:"description"` Type string `db:"type" json:"type"` AssetID null_v4.Int `db:"asset_id" json:"assetId"` ParentEpisodeID null_v4.Int `db:"parent_episode_id" json:"parentEpisodeId"` ParentStartsAt sql.NullFloat64 `db:"parent_starts_at" json:"parentStartsAt"` ParentEndsAt sql.NullFloat64 `db:"parent_ends_at" json:"parentEndsAt"` PublishedAt null_v4.Time `db:"published_at" json:"publishedAt"` ProductionDate null_v4.Time `db:"production_date" json:"productionDate"` ParentID uuid.NullUUID `db:"parent_id" json:"parentId"` ContentType null_v4.String `db:"content_type" json:"contentType"` Audience null_v4.String `db:"audience" json:"audience"` AgeratingCode null_v4.String `db:"agerating_code" json:"ageratingCode"` TranslationsRequired bool `db:"translations_required" json:"translationsRequired"` TimedmetadataFromAsset bool `db:"timedmetadata_from_asset" json:"timedmetadataFromAsset"` AvailableFrom null_v4.Time `db:"available_from" json:"availableFrom"` AvailableTo null_v4.Time `db:"available_to" json:"availableTo"` PrimaryEpisodeID null_v4.Int `db:"primary_episode_id" json:"primaryEpisodeId"` }
type MediaitemsAsset ¶
type MediaitemsStyledimage ¶
type MediaitemsTag ¶
type MediaitemsTranslation ¶
type MediaitemsTranslation struct { ID int32 `db:"id" json:"id"` MediaitemsID uuid.UUID `db:"mediaitems_id" json:"mediaitemsId"` LanguagesCode string `db:"languages_code" json:"languagesCode"` Title null_v4.String `db:"title" json:"title"` Description null_v4.String `db:"description" json:"description"` }
type MediaitemsUsergroup ¶
type MediaitemsView ¶
type MediaitemsView struct { ID uuid.UUID `db:"id" json:"id"` Assets json.RawMessage `db:"assets" json:"assets"` AssetID null_v4.Int `db:"asset_id" json:"assetId"` OriginalTitle null_v4.String `db:"original_title" json:"originalTitle"` OriginalDescription null_v4.String `db:"original_description" json:"originalDescription"` Title json.RawMessage `db:"title" json:"title"` Description json.RawMessage `db:"description" json:"description"` Images json.RawMessage `db:"images" json:"images"` ParentID uuid.NullUUID `db:"parent_id" json:"parentId"` ParentEpisodeID null_v4.Int `db:"parent_episode_id" json:"parentEpisodeId"` ParentStartsAt sql.NullFloat64 `db:"parent_starts_at" json:"parentStartsAt"` ParentEndsAt sql.NullFloat64 `db:"parent_ends_at" json:"parentEndsAt"` AvailableFrom time.Time `db:"available_from" json:"availableFrom"` AvailableTo time.Time `db:"available_to" json:"availableTo"` Label string `db:"label" json:"label"` AgeratingCode null_v4.String `db:"agerating_code" json:"ageratingCode"` Audience null_v4.String `db:"audience" json:"audience"` ContentType null_v4.String `db:"content_type" json:"contentType"` ProductionDate time.Time `db:"production_date" json:"productionDate"` PublishedAt time.Time `db:"published_at" json:"publishedAt"` TranslationsRequired bool `db:"translations_required" json:"translationsRequired"` DateUpdated null_v4.Time `db:"date_updated" json:"dateUpdated"` Duration null_v4.Int `db:"duration" json:"duration"` AssetDateUpdated null_v4.Time `db:"asset_date_updated" json:"assetDateUpdated"` TagIds []int32 `db:"tag_ids" json:"tagIds"` TimedmetadataIds []uuid.UUID `db:"timedmetadata_ids" json:"timedmetadataIds"` }
type MediaitemsViewV2 ¶
type MediaitemsViewV2 struct { ID uuid.UUID `db:"id" json:"id"` Assets json.RawMessage `db:"assets" json:"assets"` AssetID null_v4.Int `db:"asset_id" json:"assetId"` OriginalTitle null_v4.String `db:"original_title" json:"originalTitle"` OriginalDescription null_v4.String `db:"original_description" json:"originalDescription"` Title json.RawMessage `db:"title" json:"title"` Description json.RawMessage `db:"description" json:"description"` Images json.RawMessage `db:"images" json:"images"` ParentID uuid.NullUUID `db:"parent_id" json:"parentId"` ParentEpisodeID null_v4.Int `db:"parent_episode_id" json:"parentEpisodeId"` ParentStartsAt sql.NullFloat64 `db:"parent_starts_at" json:"parentStartsAt"` ParentEndsAt sql.NullFloat64 `db:"parent_ends_at" json:"parentEndsAt"` AvailableFrom time.Time `db:"available_from" json:"availableFrom"` AvailableTo time.Time `db:"available_to" json:"availableTo"` Label string `db:"label" json:"label"` AgeratingCode null_v4.String `db:"agerating_code" json:"ageratingCode"` Audience null_v4.String `db:"audience" json:"audience"` ContentType null_v4.String `db:"content_type" json:"contentType"` ProductionDate time.Time `db:"production_date" json:"productionDate"` PublishedAt time.Time `db:"published_at" json:"publishedAt"` TranslationsRequired bool `db:"translations_required" json:"translationsRequired"` DateUpdated null_v4.Time `db:"date_updated" json:"dateUpdated"` Duration null_v4.Int `db:"duration" json:"duration"` AssetDateUpdated null_v4.Time `db:"asset_date_updated" json:"assetDateUpdated"` TagIds []int32 `db:"tag_ids" json:"tagIds"` }
type Message ¶
type Message struct { ID int32 `db:"id" json:"id"` Status string `db:"status" json:"status"` UserCreated uuid.NullUUID `db:"user_created" json:"userCreated"` DateCreated null_v4.Time `db:"date_created" json:"dateCreated"` UserUpdated uuid.NullUUID `db:"user_updated" json:"userUpdated"` DateUpdated null_v4.Time `db:"date_updated" json:"dateUpdated"` Enabled sql.NullBool `db:"enabled" json:"enabled"` Name null_v4.String `db:"name" json:"name"` }
type MessagesMessagetemplate ¶
type Messagetemplate ¶
type Messagetemplate struct { DateCreated null_v4.Time `db:"date_created" json:"dateCreated"` DateUpdated null_v4.Time `db:"date_updated" json:"dateUpdated"` ID int32 `db:"id" json:"id"` Status string `db:"status" json:"status"` UserCreated uuid.NullUUID `db:"user_created" json:"userCreated"` UserUpdated uuid.NullUUID `db:"user_updated" json:"userUpdated"` Style null_v4.String `db:"style" json:"style"` }
type MessagetemplatesTranslation ¶
type MessagetemplatesTranslation struct { Details null_v4.String `db:"details" json:"details"` ID int32 `db:"id" json:"id"` LanguagesCode string `db:"languages_code" json:"languagesCode"` Message string `db:"message" json:"message"` MessagetemplatesID int32 `db:"messagetemplates_id" json:"messagetemplatesId"` }
type Notification ¶
type Notification struct { ID uuid.UUID `db:"id" json:"id"` Status string `db:"status" json:"status"` UserCreated uuid.NullUUID `db:"user_created" json:"userCreated"` DateCreated null_v4.Time `db:"date_created" json:"dateCreated"` UserUpdated uuid.NullUUID `db:"user_updated" json:"userUpdated"` DateUpdated null_v4.Time `db:"date_updated" json:"dateUpdated"` ScheduleAt null_v4.Time `db:"schedule_at" json:"scheduleAt"` SendStarted null_v4.Time `db:"send_started" json:"sendStarted"` SendCompleted null_v4.Time `db:"send_completed" json:"sendCompleted"` Action null_v4.String `db:"action" json:"action"` DeepLink null_v4.String `db:"deep_link" json:"deepLink"` TemplateID uuid.NullUUID `db:"template_id" json:"templateId"` HighPriority bool `db:"high_priority" json:"highPriority"` ApplicationgroupID uuid.NullUUID `db:"applicationgroup_id" json:"applicationgroupId"` }
type NotificationsTarget ¶
type Notificationtemplate ¶
type Notificationtemplate struct { ID uuid.UUID `db:"id" json:"id"` UserCreated uuid.NullUUID `db:"user_created" json:"userCreated"` DateCreated null_v4.Time `db:"date_created" json:"dateCreated"` UserUpdated uuid.NullUUID `db:"user_updated" json:"userUpdated"` DateUpdated null_v4.Time `db:"date_updated" json:"dateUpdated"` Label null_v4.String `db:"label" json:"label"` TranslationsRequired bool `db:"translations_required" json:"translationsRequired"` }
type NotificationtemplatesTranslation ¶
type NotificationtemplatesTranslation struct { ID int32 `db:"id" json:"id"` NotificationtemplatesID uuid.UUID `db:"notificationtemplates_id" json:"notificationtemplatesId"` LanguagesCode string `db:"languages_code" json:"languagesCode"` Title null_v4.String `db:"title" json:"title"` Description null_v4.String `db:"description" json:"description"` }
type OriginalTranslationRow ¶
type OriginalTranslationRow struct { ID uuid.UUID Values json.RawMessage }
OriginalTranslationRow are original translations
func (OriginalTranslationRow) GetKey ¶
func (r OriginalTranslationRow) GetKey() string
GetKey for this item
func (OriginalTranslationRow) GetLanguage ¶
func (r OriginalTranslationRow) GetLanguage() string
GetLanguage for this item
func (OriginalTranslationRow) GetParentKey ¶
func (r OriginalTranslationRow) GetParentKey() string
GetParentKey for this item
func (OriginalTranslationRow) GetValues ¶
func (r OriginalTranslationRow) GetValues() map[string]string
GetValues for this entry
type Page ¶
type Page struct { Code null_v4.String `db:"code" json:"code"` DateCreated time.Time `db:"date_created" json:"dateCreated"` DateUpdated time.Time `db:"date_updated" json:"dateUpdated"` ID int32 `db:"id" json:"id"` Sort null_v4.Int `db:"sort" json:"sort"` Status string `db:"status" json:"status"` UserCreated uuid.NullUUID `db:"user_created" json:"userCreated"` UserUpdated uuid.NullUUID `db:"user_updated" json:"userUpdated"` Label null_v4.String `db:"label" json:"label"` TranslationsRequired bool `db:"translations_required" json:"translationsRequired"` }
type PagesTranslation ¶
type PersonsStyledimage ¶
type Phrase ¶
type Phrase struct { Key string `db:"key" json:"key"` UserCreated uuid.NullUUID `db:"user_created" json:"userCreated"` DateCreated null_v4.Time `db:"date_created" json:"dateCreated"` UserUpdated uuid.NullUUID `db:"user_updated" json:"userUpdated"` DateUpdated null_v4.Time `db:"date_updated" json:"dateUpdated"` Value string `db:"value" json:"value"` }
type PhrasesTranslation ¶
type Playlist ¶
type Playlist struct { ID uuid.UUID `db:"id" json:"id"` Status string `db:"status" json:"status"` UserCreated uuid.NullUUID `db:"user_created" json:"userCreated"` DateCreated null_v4.Time `db:"date_created" json:"dateCreated"` UserUpdated uuid.NullUUID `db:"user_updated" json:"userUpdated"` DateUpdated null_v4.Time `db:"date_updated" json:"dateUpdated"` Title string `db:"title" json:"title"` Description null_v4.String `db:"description" json:"description"` CollectionID null_v4.Int `db:"collection_id" json:"collectionId"` TranslationsRequired bool `db:"translations_required" json:"translationsRequired"` }
type PlaylistsStyledimage ¶
type PlaylistsTranslation ¶
type PlaylistsTranslation struct { ID int32 `db:"id" json:"id"` PlaylistsID uuid.UUID `db:"playlists_id" json:"playlistsId"` LanguagesCode string `db:"languages_code" json:"languagesCode"` Title null_v4.String `db:"title" json:"title"` Description null_v4.String `db:"description" json:"description"` }
type PlaylistsUsergroup ¶
type ProfileQueries ¶
type ProfileQueries struct {
// contains filtered or unexported fields
}
ProfileQueries contains methods for retrieving profile specific queries
func (*ProfileQueries) ClearProgress ¶
func (pq *ProfileQueries) ClearProgress(ctx context.Context, episodeID int) error
ClearProgress removes the progress from database
func (*ProfileQueries) DefaultEpisodeIDForSeasonIDs ¶
func (pq *ProfileQueries) DefaultEpisodeIDForSeasonIDs(ctx context.Context, seasonIDs []int) ([]loaders.Conversion[int, int], error)
DefaultEpisodeIDForSeasonIDs returns the default episodeIDs for the specified keys
func (*ProfileQueries) DefaultEpisodeIDForShowIDs ¶
func (pq *ProfileQueries) DefaultEpisodeIDForShowIDs(ctx context.Context, seasonIDs []int) ([]loaders.Conversion[int, int], error)
DefaultEpisodeIDForShowIDs returns the default episodeIDs for the specified keys
func (*ProfileQueries) GetAchievementsAchievedAt ¶
func (pq *ProfileQueries) GetAchievementsAchievedAt(ctx context.Context, ids []uuid.UUID) ([]common.Achieved, error)
GetAchievementsAchievedAt returns when achievements has been achieved
func (*ProfileQueries) GetDefaultLessonIDForTopicIDs ¶
func (pq *ProfileQueries) GetDefaultLessonIDForTopicIDs(ctx context.Context, ids []uuid.UUID) ([]loaders.Conversion[uuid.UUID, uuid.UUID], error)
GetDefaultLessonIDForTopicIDs returns the default lessonID
func (*ProfileQueries) GetProgressForEpisodes ¶
func (pq *ProfileQueries) GetProgressForEpisodes(ctx context.Context, episodeIDs []int) ([]common.Progress, error)
GetProgressForEpisodes returns progress for the specified episodes
func (*ProfileQueries) GetSelectedAlternatives ¶
func (pq *ProfileQueries) GetSelectedAlternatives(ctx context.Context, ids []uuid.UUID) ([]common.SelectedAlternatives, error)
GetSelectedAlternatives returns the alternatives a user selected on a given questions
func (*ProfileQueries) SaveProgress ¶
SaveProgress stores the progress
type Prompt ¶
type Prompt struct { ID uuid.UUID `db:"id" json:"id"` Status string `db:"status" json:"status"` UserCreated uuid.NullUUID `db:"user_created" json:"userCreated"` DateCreated null_v4.Time `db:"date_created" json:"dateCreated"` UserUpdated uuid.NullUUID `db:"user_updated" json:"userUpdated"` DateUpdated null_v4.Time `db:"date_updated" json:"dateUpdated"` Title string `db:"title" json:"title"` SecondaryTitle null_v4.String `db:"secondary_title" json:"secondaryTitle"` Type string `db:"type" json:"type"` SurveyID uuid.NullUUID `db:"survey_id" json:"surveyId"` From time.Time `db:"from" json:"from"` To time.Time `db:"to" json:"to"` }
type PromptsTarget ¶
type PromptsTranslation ¶
type PromptsTranslation struct { ID int32 `db:"id" json:"id"` PromptsID uuid.UUID `db:"prompts_id" json:"promptsId"` LanguagesCode string `db:"languages_code" json:"languagesCode"` Title null_v4.String `db:"title" json:"title"` SecondaryTitle null_v4.String `db:"secondary_title" json:"secondaryTitle"` }
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) AddSubscription ¶
func (q *Queries) AddSubscription(ctx context.Context, arg AddSubscriptionParams) error
func (*Queries) ApplicationQueries ¶
func (q *Queries) ApplicationQueries(groupID uuid.UUID) *ApplicationQueries
ApplicationQueries returns application-queries
func (*Queries) AssetIDByARN ¶
func (*Queries) AssetIDsByMediabankenIDAndMinimumDuration ¶
func (*Queries) ClearAchievementGroupTranslations ¶
func (*Queries) ClearAchievementTranslations ¶
func (*Queries) ClearAssetTimedMetadata ¶
func (*Queries) ClearCalendarEntryTranslations ¶
func (*Queries) ClearEpisodeTimedMetadata ¶
func (*Queries) ClearEpisodeTranslations ¶
func (*Queries) ClearEventTranslations ¶
func (*Queries) ClearFAQCategoryTranslations ¶
func (*Queries) ClearFAQTranslations ¶
func (*Queries) ClearGameTranslations ¶
func (*Queries) ClearLessonTranslations ¶
func (*Queries) ClearMediaItemTimedMetadata ¶
func (*Queries) ClearMediaItemTranslations ¶
func (*Queries) ClearPageTranslations ¶
func (*Queries) ClearPlaylistTranslations ¶
func (*Queries) ClearQuestionAlternativeTranslations ¶
func (*Queries) ClearSeasonTranslations ¶
func (*Queries) ClearSectionTranslations ¶
func (*Queries) ClearShowTranslations ¶
func (*Queries) ClearStudyTopicTranslations ¶
func (*Queries) ClearSurveyQuestionTranslations ¶
func (*Queries) ClearSurveyTranslations ¶
func (*Queries) ClearTaskTranslations ¶
func (*Queries) Collection ¶
func (q *Queries) Collection(collection string) CollectionQueries
Collection retrieves specific methods for the given collection
func (*Queries) ConfirmAchievement ¶
func (q *Queries) ConfirmAchievement(ctx context.Context, arg ConfirmAchievementParams) error
func (*Queries) DeleteDevices ¶
func (*Queries) DeletePath ¶
func (*Queries) DeleteUserCollectionEntry ¶
func (*Queries) GetAchievedAchievements ¶
func (*Queries) GetAchievementGroups ¶
func (q *Queries) GetAchievementGroups(ctx context.Context, ids []uuid.UUID) ([]common.AchievementGroup, error)
GetAchievementGroups returns achievement-groups
func (*Queries) GetAchievements ¶
func (q *Queries) GetAchievements(ctx context.Context, ids []uuid.UUID) ([]common.Achievement, error)
GetAchievements retrieves achievements from database
func (*Queries) GetAchievementsForGroups ¶
func (q *Queries) GetAchievementsForGroups(ctx context.Context, groupIDs []uuid.UUID) ([]loaders.Relation[uuid.UUID, uuid.UUID], error)
GetAchievementsForGroups retrieves achievementIDs for actions
func (*Queries) GetAchievementsForProfiles ¶
func (q *Queries) GetAchievementsForProfiles(ctx context.Context, ids []uuid.UUID) ([]loaders.Relation[uuid.UUID, uuid.UUID], error)
GetAchievementsForProfiles returns achievements achieved for profiles
func (*Queries) GetAchievementsWithConditionAmountAchieved ¶
func (q *Queries) GetAchievementsWithConditionAmountAchieved(ctx context.Context, arg GetAchievementsWithConditionAmountAchievedParams) ([]GetAchievementsWithConditionAmountAchievedRow, error)
func (*Queries) GetAchievementsWithTopicsCompletedAchieved ¶
func (q *Queries) GetAchievementsWithTopicsCompletedAchieved(ctx context.Context, arg GetAchievementsWithTopicsCompletedAchievedParams) ([]GetAchievementsWithTopicsCompletedAchievedRow, error)
func (*Queries) GetAllMemberIDs ¶
func (*Queries) GetAnsweredTasks ¶
func (*Queries) GetAnswersSince ¶
func (*Queries) GetApplicationGroups ¶
func (q *Queries) GetApplicationGroups(ctx context.Context, ids []uuid.UUID) ([]common.ApplicationGroup, error)
GetApplicationGroups returns application groups
func (*Queries) GetApplicationIDsForCodes ¶
func (q *Queries) GetApplicationIDsForCodes(ctx context.Context, codes []string) ([]loaders.Conversion[string, int], error)
GetApplicationIDsForCodes returns ids for the requested codes
func (*Queries) GetApplications ¶
GetApplications returns a list of applications retrieved by ids
func (*Queries) GetAssetStoragePath ¶
func (*Queries) GetAssetTimedMetadata ¶
func (*Queries) GetCalendarEntriesByID ¶
func (q *Queries) GetCalendarEntriesByID(ctx context.Context, ids []int) ([]common.CalendarEntry, error)
GetCalendarEntriesByID returns the calendar entries for the specified ids
func (*Queries) GetCalendarEntriesForPeriod ¶
func (q *Queries) GetCalendarEntriesForPeriod(ctx context.Context, from time.Time, to time.Time) ([]int, error)
GetCalendarEntriesForPeriod returns events for the specific period
func (*Queries) GetChaptersForEpisodeID ¶
func (q *Queries) GetChaptersForEpisodeID(ctx context.Context, ids []int) ([]common.TimedMetadata, error)
GetChaptersForEpisodeID returns chapters for the specified episode id
func (*Queries) GetCollectionIDFromKey ¶
func (*Queries) GetCollectionIDsForCodes ¶
func (q *Queries) GetCollectionIDsForCodes(ctx context.Context, codes []string) ([]loaders.Conversion[string, int], error)
GetCollectionIDsForCodes returns ids for the requested codes
func (*Queries) GetCollectionSongID ¶
func (*Queries) GetCollections ¶
GetCollections returns collections
func (*Queries) GetCompletedAndLockedTasks ¶
func (q *Queries) GetCompletedAndLockedTasks(ctx context.Context, profileIDs []uuid.UUID) ([]loaders.Relation[uuid.UUID, uuid.UUID], error)
GetCompletedAndLockedTasks for profiles
func (*Queries) GetCompletedLessons ¶
func (q *Queries) GetCompletedLessons(ctx context.Context, profileIDs []uuid.UUID) ([]loaders.Relation[uuid.UUID, uuid.UUID], error)
GetCompletedLessons for profiles
func (*Queries) GetCompletedTasks ¶
func (q *Queries) GetCompletedTasks(ctx context.Context, profileIDs []uuid.UUID) ([]loaders.Relation[uuid.UUID, uuid.UUID], error)
GetCompletedTasks for profiles
func (*Queries) GetCompletedTopics ¶
func (q *Queries) GetCompletedTopics(ctx context.Context, profileIDs []uuid.UUID) ([]loaders.Relation[uuid.UUID, uuid.UUID], error)
GetCompletedTopics for profiles
func (*Queries) GetComputedDataForGroups ¶
func (q *Queries) GetComputedDataForGroups(ctx context.Context, ids []uuid.UUID) ([]common.ComputedData, error)
GetComputedDataForGroups returns computed data for specified groups
func (*Queries) GetContributionsForPerson ¶
func (*Queries) GetDevices ¶
GetDevices returns devices for the specified profileIDs
func (*Queries) GetEntryIDsForEventIDs ¶
func (q *Queries) GetEntryIDsForEventIDs(ctx context.Context, ids []int) ([]loaders.Relation[int, int], error)
GetEntryIDsForEventIDs returns the calendar entry ids for the specified event ids
func (*Queries) GetEpisodeIDsByMediaItemID ¶
func (*Queries) GetEpisodeIDsForLegacyIDs ¶
func (q *Queries) GetEpisodeIDsForLegacyIDs(ctx context.Context, ids []int) ([]loaders.Conversion[int, int], error)
GetEpisodeIDsForLegacyIDs returns ids for the requested codes
func (*Queries) GetEpisodeIDsForLegacyProgramIDs ¶
func (q *Queries) GetEpisodeIDsForLegacyProgramIDs(ctx context.Context, ids []int) ([]loaders.Conversion[int, int], error)
GetEpisodeIDsForLegacyProgramIDs returns ids for the requested codes
func (*Queries) GetEpisodeIDsForUuids ¶
func (q *Queries) GetEpisodeIDsForUuids(ctx context.Context, uuids []uuid.UUID) ([]loaders.Conversion[uuid.UUID, int], error)
GetEpisodeIDsForUuids returns episodeIds for specified uuids
func (*Queries) GetEpisodeIDsWithProgress ¶
func (q *Queries) GetEpisodeIDsWithProgress(ctx context.Context, profileIDs []uuid.UUID) ([]loaders.Relation[int, uuid.UUID], error)
GetEpisodeIDsWithProgress returns episodeIDs ordered by date progressed.
func (*Queries) GetEpisodes ¶
GetEpisodes returns a list of common.Episode specified by ids
func (*Queries) GetEventsForPeriod ¶
func (q *Queries) GetEventsForPeriod(ctx context.Context, from time.Time, to time.Time) ([]int, error)
GetEventsForPeriod returns events for the specific period
func (*Queries) GetFAQCategories ¶
func (q *Queries) GetFAQCategories(ctx context.Context, ids []uuid.UUID) ([]common.FAQCategory, error)
GetFAQCategories retrieves specific categories
func (*Queries) GetFilesForAssets ¶
GetFilesForAssets returns files for assets
func (*Queries) GetFilesForEpisodes ¶
GetFilesForEpisodes returns files for the specified episodes
func (*Queries) GetGlobalConfig ¶
GetGlobalConfig returns configuration options for app
func (*Queries) GetItemsForCollections ¶
func (q *Queries) GetItemsForCollections(ctx context.Context, ids []int) ([]common.CollectionItem, error)
GetItemsForCollections returns []common.CollectionItem for specified collections
func (*Queries) GetLanguageKeys ¶
func (*Queries) GetLanguages ¶
func (*Queries) GetLessonProgressGroupedByOrg ¶
func (q *Queries) GetLessonProgressGroupedByOrg(ctx context.Context, arg GetLessonProgressGroupedByOrgParams) ([]GetLessonProgressGroupedByOrgRow, error)
counts generates a count per orgid and age group
SUB Query: Get the last task of the lesson
totals: Sum age groups for the orgs Main Query: Calculate the % of answers per org for the task
func (*Queries) GetLessons ¶
GetLessons returns lessons by ids
func (*Queries) GetMediaIDsForShortIDs ¶
func (q *Queries) GetMediaIDsForShortIDs(ctx context.Context, ids []uuid.UUID) ([]loaders.Conversion[uuid.UUID, uuid.UUID], error)
GetMediaIDsForShortIDs returns media ids for the requested shortIds
func (*Queries) GetMediaItemByID ¶
func (*Queries) GetMediaProgress ¶
func (q *Queries) GetMediaProgress(ctx context.Context, arg GetMediaProgressParams) ([]GetMediaProgressRow, error)
func (*Queries) GetMemberIDs ¶
func (*Queries) GetMessageGroups ¶
GetMessageGroups returns messages
func (*Queries) GetMyListCollectionForProfileIDs ¶
func (q *Queries) GetMyListCollectionForProfileIDs(ctx context.Context, profileIDs []uuid.UUID) ([]loaders.Conversion[uuid.UUID, uuid.UUID], error)
GetMyListCollectionForProfileIDs returns the id for the profile my list collection
func (*Queries) GetNotifications ¶
func (q *Queries) GetNotifications(ctx context.Context, ids []uuid.UUID) ([]common.Notification, error)
GetNotifications returns notifications from the database
func (*Queries) GetPageIDsForCodes ¶
func (q *Queries) GetPageIDsForCodes(ctx context.Context, codes []string) ([]loaders.Conversion[string, int], error)
GetPageIDsForCodes returns ids for the requested codes
func (*Queries) GetPermissionsForEpisodes ¶
func (q *Queries) GetPermissionsForEpisodes(ctx context.Context, ids []int) ([]common.Permissions[int], error)
GetPermissionsForEpisodes returns permissions for specified episodes
func (*Queries) GetPermissionsForPages ¶
func (q *Queries) GetPermissionsForPages(ctx context.Context, ids []int) ([]common.Permissions[int], error)
GetPermissionsForPages returns permissions for pages
func (*Queries) GetPermissionsForSeasons ¶
func (q *Queries) GetPermissionsForSeasons(ctx context.Context, ids []int) ([]common.Permissions[int], error)
GetPermissionsForSeasons returns permissions for specified episodes
func (*Queries) GetPermissionsForSections ¶
func (q *Queries) GetPermissionsForSections(ctx context.Context, ids []int) ([]common.Permissions[int], error)
GetPermissionsForSections returns permissions for sections
func (*Queries) GetPermissionsForShows ¶
func (q *Queries) GetPermissionsForShows(ctx context.Context, ids []int) ([]common.Permissions[int], error)
GetPermissionsForShows returns permissions for specified episodes
func (*Queries) GetPersonIDsByNames ¶
func (*Queries) GetPersons ¶
GetPersons returns persons for the specified ids
func (*Queries) GetPhrases ¶
GetPhrases returns phrases for the specified keys
func (*Queries) GetPlaylists ¶
GetPlaylists returns playlists from the database
func (*Queries) GetPrimaryEpisodeIDForMediaItems ¶
func (*Queries) GetProgressedMediaIDs ¶
func (*Queries) GetPromptIDsForRoles ¶
func (*Queries) GetPrompts ¶
func (*Queries) GetQuestionAlternatives ¶
func (q *Queries) GetQuestionAlternatives(ctx context.Context, ids []uuid.UUID) ([]common.QuestionAlternative, error)
GetQuestionAlternatives returns alternatives for the specified questions
func (*Queries) GetQuestionAlternativesByIDs ¶
func (*Queries) GetQuestions ¶
GetQuestions retrieves specific questions by id
func (*Queries) GetRedirectIDsForCodes ¶
func (q *Queries) GetRedirectIDsForCodes(ctx context.Context, codes []string) ([]loaders.Conversion[string, uuid.UUID], error)
GetRedirectIDsForCodes returns ids for the requested codes
func (*Queries) GetRedirects ¶
GetRedirects returns a list of redirects retrieved by ids
func (*Queries) GetRolesByEmail ¶
func (*Queries) GetRolesForPlaylists ¶
func (*Queries) GetRolesWithCode ¶
func (*Queries) GetSeasons ¶
GetSeasons returns a list of common.Season specified by ids
func (*Queries) GetSectionIDsForPages ¶
func (q *Queries) GetSectionIDsForPages(ctx context.Context, ids []int) ([]loaders.Relation[int, int], error)
GetSectionIDsForPages returns a list of episodes specified by seasons
func (*Queries) GetSectionIDsWithMessageIDs ¶
func (*Queries) GetSections ¶
GetSections returns a list of sections retrieved by ids
func (*Queries) GetSelectedAlternativesAndLockStatus ¶
func (q *Queries) GetSelectedAlternativesAndLockStatus(ctx context.Context, arg GetSelectedAlternativesAndLockStatusParams) ([]GetSelectedAlternativesAndLockStatusRow, error)
func (*Queries) GetShortScores ¶
func (*Queries) GetShortsByMediaItemIDs ¶
func (q *Queries) GetShortsByMediaItemIDs(ctx context.Context, id uuid.UUID) ([]common.Short, error)
GetShortsByMediaItemIDs returns shorts by media item ids
func (*Queries) GetShowIDsForUuids ¶
func (q *Queries) GetShowIDsForUuids(ctx context.Context, uuids []uuid.UUID) ([]loaders.Conversion[uuid.UUID, int], error)
GetShowIDsForUuids returns episodeIds for specified uuids
func (*Queries) GetStreamsForAssets ¶
GetStreamsForAssets returns streams by assetId
func (*Queries) GetStreamsForEpisodes ¶
GetStreamsForEpisodes returns files for the specified episodes
func (*Queries) GetSurveyIDFromQuestionID ¶
func (*Queries) GetSurveyQuestions ¶
func (q *Queries) GetSurveyQuestions(ctx context.Context, ids []uuid.UUID) ([]common.SurveyQuestion, error)
GetSurveyQuestions returns survey questions
func (*Queries) GetSurveys ¶
GetSurveys returns surveys
func (*Queries) GetTargets ¶
func (*Queries) GetTimedMetadata ¶
func (q *Queries) GetTimedMetadata(ctx context.Context, ids []uuid.UUID) ([]common.TimedMetadata, error)
GetTimedMetadata returns metadata items for the specified ids
func (*Queries) GetUnconfirmedAchievementsForProfiles ¶
func (q *Queries) GetUnconfirmedAchievementsForProfiles(ctx context.Context, ids []uuid.UUID) ([]loaders.Relation[uuid.UUID, uuid.UUID], error)
GetUnconfirmedAchievementsForProfiles returns achievements achieved for profiles
func (*Queries) GetUserCollectionEntries ¶
func (q *Queries) GetUserCollectionEntries(ctx context.Context, ids []uuid.UUID) ([]common.UserCollectionEntry, error)
GetUserCollectionEntries returns entries by id
func (*Queries) GetUserCollectionEntryIDsForUserCollectionIDs ¶
func (q *Queries) GetUserCollectionEntryIDsForUserCollectionIDs(ctx context.Context, collectionIDs []uuid.UUID) ([]loaders.Relation[uuid.UUID, uuid.UUID], error)
GetUserCollectionEntryIDsForUserCollectionIDs returns entry ids for collection ids
func (*Queries) GetUserCollectionIDsForProfileIDs ¶
func (q *Queries) GetUserCollectionIDsForProfileIDs(ctx context.Context, profileIDs []uuid.UUID) ([]loaders.Relation[uuid.UUID, uuid.UUID], error)
GetUserCollectionIDsForProfileIDs returns collection ids for profiles
func (*Queries) GetUserCollections ¶
func (q *Queries) GetUserCollections(ctx context.Context, ids []uuid.UUID) ([]common.UserCollection, error)
GetUserCollections returns user-collections by ids
func (*Queries) GetUserIDByEmail ¶
func (*Queries) GetUserIDsWithRoles ¶
func (*Queries) InsertAsset ¶
func (*Queries) InsertAssetFile ¶
func (*Queries) InsertAssetStream ¶
func (*Queries) InsertAssetStreamAudioLanguage ¶
func (*Queries) InsertAssetStreamSubtitleLanguage ¶
func (*Queries) InsertContribution ¶
func (q *Queries) InsertContribution(ctx context.Context, arg InsertContributionParams) error
func (*Queries) InsertDirectusFile ¶
func (*Queries) InsertMediaItem ¶
func (*Queries) InsertMember ¶
func (q *Queries) InsertMember(ctx context.Context, arg InsertMemberParams) error
func (*Queries) InsertOrg ¶
func (q *Queries) InsertOrg(ctx context.Context, arg InsertOrgParams) error
func (*Queries) InsertOrgCounts ¶
func (q *Queries) InsertOrgCounts(ctx context.Context, arg InsertOrgCountsParams) error
func (*Queries) InsertPerson ¶
func (q *Queries) InsertPerson(ctx context.Context, arg InsertPersonParams) error
func (*Queries) InsertSong ¶
func (q *Queries) InsertSong(ctx context.Context, arg InsertSongParams) error
func (*Queries) InsertSongCollection ¶
func (q *Queries) InsertSongCollection(ctx context.Context, arg InsertSongCollectionParams) error
func (*Queries) InsertStyledImage ¶
func (*Queries) InsertTimedMetadata ¶
func (*Queries) InsertTimedMetadataStyledImage ¶
func (*Queries) ListAchievementGroupOriginalTranslations ¶
func (q *Queries) ListAchievementGroupOriginalTranslations(ctx context.Context) ([]ListAchievementGroupOriginalTranslationsRow, error)
func (*Queries) ListAchievementGroupTranslations ¶
func (*Queries) ListAchievementGroups ¶
func (*Queries) ListAchievementOriginalTranslations ¶
func (q *Queries) ListAchievementOriginalTranslations(ctx context.Context) ([]ListAchievementOriginalTranslationsRow, error)
func (*Queries) ListAchievementTranslations ¶
func (*Queries) ListAchievements ¶
func (*Queries) ListAllPermittedShowIDs ¶
ListAllPermittedShowIDs returns a list of common.Show
func (*Queries) ListAlternativeTranslations ¶
func (*Queries) ListApplications ¶
ListApplications returns a list of applications
func (*Queries) ListCalendarEntryTranslations ¶
func (*Queries) ListDevices ¶
ListDevices return all devices
func (*Queries) ListDevicesInApplicationGroup ¶
func (*Queries) ListEpisodeTranslations ¶
func (*Queries) ListEpisodes ¶
ListEpisodes returns a list of common.Episode
func (*Queries) ListEventTranslations ¶
func (*Queries) ListEvents ¶
ListEvents returns all CalendarEvents
func (*Queries) ListFAQCategoryIDsForRoles ¶
func (*Queries) ListFAQCategoryOriginalTranslations ¶
func (q *Queries) ListFAQCategoryOriginalTranslations(ctx context.Context) ([]ListFAQCategoryOriginalTranslationsRow, error)
func (*Queries) ListFAQCategoryTranslations ¶
func (*Queries) ListFAQOriginalTranslations ¶
func (q *Queries) ListFAQOriginalTranslations(ctx context.Context) ([]ListFAQOriginalTranslationsRow, error)
-------- FAQ --- --------
func (*Queries) ListFAQTranslations ¶
func (*Queries) ListGameOriginalTranslations ¶
func (q *Queries) ListGameOriginalTranslations(ctx context.Context) ([]ListGameOriginalTranslationsRow, error)
func (*Queries) ListGameTranslations ¶
func (*Queries) ListLessonOriginalTranslations ¶
func (q *Queries) ListLessonOriginalTranslations(ctx context.Context) ([]ListLessonOriginalTranslationsRow, error)
func (*Queries) ListLessonTranslations ¶
func (*Queries) ListLinkTranslations ¶
func (*Queries) ListMediaItemOriginalTranslations ¶
func (q *Queries) ListMediaItemOriginalTranslations(ctx context.Context) ([]ListMediaItemOriginalTranslationsRow, error)
func (*Queries) ListMediaItemTranslations ¶
func (*Queries) ListPageTranslations ¶
func (*Queries) ListPlaylistOriginalTranslations ¶
func (q *Queries) ListPlaylistOriginalTranslations(ctx context.Context) ([]ListPlaylistOriginalTranslationsRow, error)
func (*Queries) ListPlaylistTranslations ¶
func (*Queries) ListPlaylists ¶
ListPlaylists returns playlists from the database
func (*Queries) ListQuestionAlternativesOriginalTranslations ¶
func (q *Queries) ListQuestionAlternativesOriginalTranslations(ctx context.Context) ([]ListQuestionAlternativesOriginalTranslationsRow, error)
func (*Queries) ListSeasonTranslations ¶
func (*Queries) ListSeasons ¶
ListSeasons returns a list of common.Season
func (*Queries) ListSectionTranslations ¶
func (*Queries) ListSegmentedShortIDsForRoles ¶
func (*Queries) ListSegmentedShortIDsForRolesWithScores ¶
func (*Queries) ListShowTranslations ¶
func (*Queries) ListStudyTopicOriginalTranslations ¶
func (q *Queries) ListStudyTopicOriginalTranslations(ctx context.Context) ([]ListStudyTopicOriginalTranslationsRow, error)
func (*Queries) ListStudyTopicTranslations ¶
func (*Queries) ListSubscriptions ¶
func (*Queries) ListSurveyOriginalTranslations ¶
func (q *Queries) ListSurveyOriginalTranslations(ctx context.Context) ([]ListSurveyOriginalTranslationsRow, error)
------------ SURVEYS --- ------------
func (*Queries) ListSurveyQuestionOriginalTranslations ¶
func (q *Queries) ListSurveyQuestionOriginalTranslations(ctx context.Context) ([]ListSurveyQuestionOriginalTranslationsRow, error)
func (*Queries) ListSurveyQuestionTranslations ¶
func (*Queries) ListSurveyTranslations ¶
func (*Queries) ListTaskOriginalTranslations ¶
func (q *Queries) ListTaskOriginalTranslations(ctx context.Context) ([]ListTaskOriginalTranslationsRow, error)
func (*Queries) ListTaskTranslations ¶
func (*Queries) NewestPreviousAssetByMediabankenID ¶
func (*Queries) NotificationMarkSendCompleted ¶
func (*Queries) NotificationMarkSendStarted ¶
func (*Queries) ProfileQueries ¶
func (q *Queries) ProfileQueries(profileID uuid.UUID) *ProfileQueries
ProfileQueries returns queries for profile
func (*Queries) RemoveProgressForMediaIDs ¶
func (q *Queries) RemoveProgressForMediaIDs(ctx context.Context, arg RemoveProgressForMediaIDsParams) error
func (*Queries) RemoveSubscription ¶
func (q *Queries) RemoveSubscription(ctx context.Context, arg RemoveSubscriptionParams) error
func (*Queries) RoleQueries ¶
func (q *Queries) RoleQueries(roles []string) *RoleQueries
RoleQueries returns methods with multiple queries
func (*Queries) SaveDevice ¶
SaveDevice saves the specified device to database, keyed by token and profileId
func (*Queries) SaveMediaProgress ¶
func (q *Queries) SaveMediaProgress(ctx context.Context, arg SaveMediaProgressParams) error
func (*Queries) SetAchievementAchieved ¶
func (q *Queries) SetAchievementAchieved(ctx context.Context, arg SetAchievementAchievedParams) error
func (*Queries) SetAnswerLock ¶
func (q *Queries) SetAnswerLock(ctx context.Context, arg SetAnswerLockParams) error
func (*Queries) SetImageCDNDomain ¶
SetImageCDNDomain sets the domain for the image CDN
func (*Queries) SetTaskCompleted ¶
func (q *Queries) SetTaskCompleted(ctx context.Context, arg SetTaskCompletedParams) error
func (*Queries) UpdateAchievementGroupTranslation ¶
func (q *Queries) UpdateAchievementGroupTranslation(ctx context.Context, arg UpdateAchievementGroupTranslationParams) error
func (*Queries) UpdateAchievementTranslation ¶
func (q *Queries) UpdateAchievementTranslation(ctx context.Context, arg UpdateAchievementTranslationParams) error
func (*Queries) UpdateAlternativeTranslation ¶
func (q *Queries) UpdateAlternativeTranslation(ctx context.Context, arg UpdateAlternativeTranslationParams) error
func (*Queries) UpdateAssetArn ¶
func (q *Queries) UpdateAssetArn(ctx context.Context, arg UpdateAssetArnParams) error
func (*Queries) UpdateAssetStatus ¶
func (q *Queries) UpdateAssetStatus(ctx context.Context, arg UpdateAssetStatusParams) error
func (*Queries) UpdateCalendarEntryTranslation ¶
func (q *Queries) UpdateCalendarEntryTranslation(ctx context.Context, arg UpdateCalendarEntryTranslationParams) error
func (*Queries) UpdateEpisodeTranslation ¶
func (q *Queries) UpdateEpisodeTranslation(ctx context.Context, arg UpdateEpisodeTranslationParams) error
func (*Queries) UpdateEventTranslation ¶
func (q *Queries) UpdateEventTranslation(ctx context.Context, arg UpdateEventTranslationParams) error
func (*Queries) UpdateFAQCategoryTranslation ¶
func (q *Queries) UpdateFAQCategoryTranslation(ctx context.Context, arg UpdateFAQCategoryTranslationParams) error
func (*Queries) UpdateFAQTranslation ¶
func (q *Queries) UpdateFAQTranslation(ctx context.Context, arg UpdateFAQTranslationParams) error
func (*Queries) UpdateGameTranslation ¶
func (q *Queries) UpdateGameTranslation(ctx context.Context, arg UpdateGameTranslationParams) error
func (*Queries) UpdateLessonTranslation ¶
func (q *Queries) UpdateLessonTranslation(ctx context.Context, arg UpdateLessonTranslationParams) error
func (*Queries) UpdateLinkTranslation ¶
func (q *Queries) UpdateLinkTranslation(ctx context.Context, arg UpdateLinkTranslationParams) error
func (*Queries) UpdateMediaItemTranslation ¶
func (q *Queries) UpdateMediaItemTranslation(ctx context.Context, arg UpdateMediaItemTranslationParams) error
func (*Queries) UpdateMessage ¶
func (q *Queries) UpdateMessage(ctx context.Context, arg UpdateMessageParams) error
func (*Queries) UpdatePageTranslation ¶
func (q *Queries) UpdatePageTranslation(ctx context.Context, arg UpdatePageTranslationParams) error
func (*Queries) UpdatePlaylistTranslation ¶
func (q *Queries) UpdatePlaylistTranslation(ctx context.Context, arg UpdatePlaylistTranslationParams) error
func (*Queries) UpdateSeasonTranslation ¶
func (q *Queries) UpdateSeasonTranslation(ctx context.Context, arg UpdateSeasonTranslationParams) error
func (*Queries) UpdateSectionTranslation ¶
func (q *Queries) UpdateSectionTranslation(ctx context.Context, arg UpdateSectionTranslationParams) error
func (*Queries) UpdateShortsScore ¶
func (q *Queries) UpdateShortsScore(ctx context.Context, arg UpdateShortsScoreParams) error
func (*Queries) UpdateShowTranslation ¶
func (q *Queries) UpdateShowTranslation(ctx context.Context, arg UpdateShowTranslationParams) error
func (*Queries) UpdateStudyTopicTranslation ¶
func (q *Queries) UpdateStudyTopicTranslation(ctx context.Context, arg UpdateStudyTopicTranslationParams) error
func (*Queries) UpdateSurveyQuestionTranslation ¶
func (q *Queries) UpdateSurveyQuestionTranslation(ctx context.Context, arg UpdateSurveyQuestionTranslationParams) error
func (*Queries) UpdateSurveyTranslation ¶
func (q *Queries) UpdateSurveyTranslation(ctx context.Context, arg UpdateSurveyTranslationParams) error
func (*Queries) UpdateTaskTranslation ¶
func (q *Queries) UpdateTaskTranslation(ctx context.Context, arg UpdateTaskTranslationParams) error
func (*Queries) UpsertMessage ¶
func (q *Queries) UpsertMessage(ctx context.Context, arg UpsertMessageParams) error
func (*Queries) UpsertSurveyAnswer ¶
func (q *Queries) UpsertSurveyAnswer(ctx context.Context, arg UpsertSurveyAnswerParams) error
func (*Queries) UpsertUser ¶
func (q *Queries) UpsertUser(ctx context.Context, arg UpsertUserParams) error
func (*Queries) UpsertUserCollection ¶
func (q *Queries) UpsertUserCollection(ctx context.Context, arg UpsertUserCollectionParams) error
func (*Queries) UpsertUserCollectionEntry ¶
func (q *Queries) UpsertUserCollectionEntry(ctx context.Context, arg UpsertUserCollectionEntryParams) error
type Questionalternative ¶
type Redirect ¶
type Redirect struct { ID uuid.UUID `db:"id" json:"id"` Status string `db:"status" json:"status"` UserCreated uuid.UUID `db:"user_created" json:"userCreated"` DateCreated null_v4.Time `db:"date_created" json:"dateCreated"` UserUpdated uuid.UUID `db:"user_updated" json:"userUpdated"` DateUpdated null_v4.Time `db:"date_updated" json:"dateUpdated"` TargetUrl string `db:"target_url" json:"targetUrl"` Code string `db:"code" json:"code"` IncludeToken sql.NullBool `db:"include_token" json:"includeToken"` RequiresAuthentication bool `db:"requires_authentication" json:"requiresAuthentication"` }
type RoleQueries ¶
type RoleQueries struct {
// contains filtered or unexported fields
}
RoleQueries contains role specific queries
func (*RoleQueries) GetCalendarEntries ¶
func (rq *RoleQueries) GetCalendarEntries(ctx context.Context, ids []int) ([]common.CalendarEntry, error)
GetCalendarEntries returns the specified entries
func (*RoleQueries) GetContributionsForPersonsWithRoles ¶
func (q *RoleQueries) GetContributionsForPersonsWithRoles(ctx context.Context, ids []uuid.UUID) ([]common.Contribution, error)
func (*RoleQueries) GetEpisodeIDsForLessons ¶
func (rq *RoleQueries) GetEpisodeIDsForLessons(ctx context.Context, ids []uuid.UUID) ([]loaders.Relation[int, uuid.UUID], error)
GetEpisodeIDsForLessons returns episodes for lessons
func (*RoleQueries) GetEpisodeIDsForSeasonsWithRoles ¶
func (rq *RoleQueries) GetEpisodeIDsForSeasonsWithRoles(ctx context.Context, ids []int) ([]loaders.Relation[int, int], error)
GetEpisodeIDsForSeasonsWithRoles returns episodeIDs for season filtered by roles
func (*RoleQueries) GetEpisodeIDsWithRoles ¶
GetEpisodeIDsWithRoles returns episodeIDs for season filtered by roles
func (*RoleQueries) GetEpisodeIDsWithTagIDs ¶
func (rq *RoleQueries) GetEpisodeIDsWithTagIDs(ctx context.Context, ids []int) ([]loaders.Relation[int, int], error)
GetEpisodeIDsWithTagIDs returns episodeIDs with the specified tags.
func (*RoleQueries) GetEpisodeUUIDsWithRoles ¶
func (rq *RoleQueries) GetEpisodeUUIDsWithRoles(ctx context.Context, ids []uuid.UUID) ([]uuid.UUID, error)
GetEpisodeUUIDsWithRoles returns ids for episodes filtered by roles
func (*RoleQueries) GetItemsForCollectionsWithRoles ¶
func (rq *RoleQueries) GetItemsForCollectionsWithRoles(ctx context.Context, ids []int) ([]common.CollectionItem, error)
GetItemsForCollectionsWithRoles returns []common.CollectionItem for specified collections
func (*RoleQueries) GetLessonIDsForEpisodes ¶
func (rq *RoleQueries) GetLessonIDsForEpisodes(ctx context.Context, ids []int) ([]loaders.Relation[uuid.UUID, int], error)
GetLessonIDsForEpisodes returns lessons for episodes
func (*RoleQueries) GetLessonIDsForLinks ¶
func (rq *RoleQueries) GetLessonIDsForLinks(ctx context.Context, ids []int) ([]loaders.Relation[uuid.UUID, int], error)
GetLessonIDsForLinks returns lessons for episodes
func (*RoleQueries) GetLessonIDsForTopics ¶
func (rq *RoleQueries) GetLessonIDsForTopics(ctx context.Context, ids []uuid.UUID) ([]loaders.Relation[uuid.UUID, uuid.UUID], error)
GetLessonIDsForTopics retrieves related ids
func (*RoleQueries) GetLessonIDsWithRoles ¶
func (rq *RoleQueries) GetLessonIDsWithRoles(ctx context.Context, ids []uuid.UUID) ([]uuid.UUID, error)
GetLessonIDsWithRoles filters the specified IDs with roles
func (*RoleQueries) GetLinkIDsForLessons ¶
func (rq *RoleQueries) GetLinkIDsForLessons(ctx context.Context, ids []uuid.UUID) ([]loaders.Relation[int, uuid.UUID], error)
GetLinkIDsForLessons returns episodes for lessons
func (*RoleQueries) GetQuestionIDsForCategories ¶
func (rq *RoleQueries) GetQuestionIDsForCategories(ctx context.Context, ids []uuid.UUID) ([]loaders.Relation[uuid.UUID, uuid.UUID], error)
GetQuestionIDsForCategories returns a list of episodes specified by seasons
func (*RoleQueries) GetSeasonIDsForShowsWithRoles ¶
func (rq *RoleQueries) GetSeasonIDsForShowsWithRoles(ctx context.Context, ids []int) ([]loaders.Relation[int, int], error)
GetSeasonIDsForShowsWithRoles returns episodeIDs for season filtered by roles
func (*RoleQueries) GetSeasonIDsWithRoles ¶
GetSeasonIDsWithRoles returns episodeIDs for season filtered by roles
func (*RoleQueries) GetSectionIDsForPagesWithRoles ¶
func (rq *RoleQueries) GetSectionIDsForPagesWithRoles(ctx context.Context, ids []int) ([]loaders.Relation[int, int], error)
GetSectionIDsForPagesWithRoles returns a list of episodes specified by seasons
func (*RoleQueries) GetShowIDsWithRoles ¶
GetShowIDsWithRoles returns ids for season filtered by roles
func (*RoleQueries) GetShowUUIDsWithRoles ¶
func (rq *RoleQueries) GetShowUUIDsWithRoles(ctx context.Context, ids []uuid.UUID) ([]uuid.UUID, error)
GetShowUUIDsWithRoles returns ids for season filtered by roles
func (*RoleQueries) GetSurveyQuestionIDsForSurveyIDs ¶
func (rq *RoleQueries) GetSurveyQuestionIDsForSurveyIDs(ctx context.Context, ids []uuid.UUID) ([]loaders.Relation[uuid.UUID, uuid.UUID], error)
GetSurveyQuestionIDsForSurveyIDs returns relation structs for the questions
func (*RoleQueries) GetTaskIDsForLessons ¶
func (rq *RoleQueries) GetTaskIDsForLessons(ctx context.Context, ids []uuid.UUID) ([]loaders.Relation[uuid.UUID, uuid.UUID], error)
GetTaskIDsForLessons retrieves related ids
func (*RoleQueries) GetTaskIDsWithRoles ¶
func (rq *RoleQueries) GetTaskIDsWithRoles(ctx context.Context, ids []uuid.UUID) ([]uuid.UUID, error)
GetTaskIDsWithRoles filters the specified IDs with roles
func (*RoleQueries) GetTopicIDsWithRoles ¶
func (rq *RoleQueries) GetTopicIDsWithRoles(ctx context.Context, ids []uuid.UUID) ([]uuid.UUID, error)
GetTopicIDsWithRoles filters the specified IDs with roles
type SaveMediaProgressParams ¶
type SaveMediaProgressParams struct { ProfileID uuid.UUID `db:"profile_id" json:"profileId"` ItemID uuid.UUID `db:"item_id" json:"itemId"` Progress float32 `db:"progress" json:"progress"` Duration float32 `db:"duration" json:"duration"` Watched int32 `db:"watched" json:"watched"` WatchedAt null_v4.Time `db:"watched_at" json:"watchedAt"` Context pqtype.NullRawMessage `db:"context" json:"context"` FromStart bool `db:"from_start" json:"fromStart"` }
type Season ¶
type Season struct { AgeratingCode null_v4.String `db:"agerating_code" json:"ageratingCode"` AvailableFrom null_v4.Time `db:"available_from" json:"availableFrom"` AvailableTo null_v4.Time `db:"available_to" json:"availableTo"` DateCreated time.Time `db:"date_created" json:"dateCreated"` DateUpdated time.Time `db:"date_updated" json:"dateUpdated"` ID int32 `db:"id" json:"id"` ImageFileID uuid.NullUUID `db:"image_file_id" json:"imageFileId"` LegacyDescriptionID null_v4.Int `db:"legacy_description_id" json:"legacyDescriptionId"` LegacyID null_v4.Int `db:"legacy_id" json:"legacyId"` LegacyTitleID null_v4.Int `db:"legacy_title_id" json:"legacyTitleId"` PublishDate time.Time `db:"publish_date" json:"publishDate"` SeasonNumber int32 `db:"season_number" json:"seasonNumber"` ShowID int32 `db:"show_id" json:"showId"` Status string `db:"status" json:"status"` UserCreated uuid.NullUUID `db:"user_created" json:"userCreated"` UserUpdated uuid.NullUUID `db:"user_updated" json:"userUpdated"` Label null_v4.String `db:"label" json:"label"` PublicTitle null_v4.String `db:"public_title" json:"publicTitle"` EpisodeNumberInTitle sql.NullBool `db:"episode_number_in_title" json:"episodeNumberInTitle"` Uuid uuid.UUID `db:"uuid" json:"uuid"` TranslationsRequired bool `db:"translations_required" json:"translationsRequired"` }
type SeasonAvailability ¶
type SeasonRole ¶
type SeasonRole struct { ID int32 `db:"id" json:"id"` Roles interface{} `db:"roles" json:"roles"` RolesDownload interface{} `db:"roles_download" json:"rolesDownload"` RolesEarlyaccess interface{} `db:"roles_earlyaccess" json:"rolesEarlyaccess"` }
type SeasonsTag ¶
type SeasonsTranslation ¶
type SeasonsTranslation struct { Description null_v4.String `db:"description" json:"description"` ID int32 `db:"id" json:"id"` IsPrimary bool `db:"is_primary" json:"isPrimary"` LanguagesCode string `db:"languages_code" json:"languagesCode"` LegacyDescriptionID null_v4.Int `db:"legacy_description_id" json:"legacyDescriptionId"` LegacyTitleID null_v4.Int `db:"legacy_title_id" json:"legacyTitleId"` SeasonsID int32 `db:"seasons_id" json:"seasonsId"` Title null_v4.String `db:"title" json:"title"` }
type SeasonsUsergroup ¶
type Section ¶
type Section struct { CollectionID null_v4.Int `db:"collection_id" json:"collectionId"` DateCreated time.Time `db:"date_created" json:"dateCreated"` DateUpdated time.Time `db:"date_updated" json:"dateUpdated"` ID int32 `db:"id" json:"id"` Status string `db:"status" json:"status"` UserCreated uuid.NullUUID `db:"user_created" json:"userCreated"` UserUpdated uuid.NullUUID `db:"user_updated" json:"userUpdated"` PageID null_v4.Int `db:"page_id" json:"pageId"` Sort null_v4.Int `db:"sort" json:"sort"` Style null_v4.String `db:"style" json:"style"` Size null_v4.String `db:"size" json:"size"` GridSize null_v4.String `db:"grid_size" json:"gridSize"` Type null_v4.String `db:"type" json:"type"` ShowTitle sql.NullBool `db:"show_title" json:"showTitle"` MessageID null_v4.Int `db:"message_id" json:"messageId"` NeedsAuthentication sql.NullBool `db:"needs_authentication" json:"needsAuthentication"` EmbedUrl null_v4.String `db:"embed_url" json:"embedUrl"` SecondaryTitles sql.NullBool `db:"secondary_titles" json:"secondaryTitles"` UseContext sql.NullBool `db:"use_context" json:"useContext"` EmbedAspectRatio sql.NullFloat64 `db:"embed_aspect_ratio" json:"embedAspectRatio"` EmbedHeight null_v4.Int `db:"embed_height" json:"embedHeight"` PrependLiveElement sql.NullBool `db:"prepend_live_element" json:"prependLiveElement"` TranslationsRequired bool `db:"translations_required" json:"translationsRequired"` Limit null_v4.Int `db:"limit" json:"limit"` }
type SectionsTranslation ¶
type SectionsUsergroup ¶
type SetAnswerLockParams ¶
type SetTaskCompletedParams ¶
type Short ¶
type Short struct { ID uuid.UUID `db:"id" json:"id"` Status string `db:"status" json:"status"` UserCreated uuid.NullUUID `db:"user_created" json:"userCreated"` DateCreated null_v4.Time `db:"date_created" json:"dateCreated"` UserUpdated uuid.NullUUID `db:"user_updated" json:"userUpdated"` DateUpdated null_v4.Time `db:"date_updated" json:"dateUpdated"` MediaitemID uuid.NullUUID `db:"mediaitem_id" json:"mediaitemId"` Score sql.NullFloat64 `db:"score" json:"score"` }
type ShortsUsergroup ¶
type Show ¶
type Show struct { AgeratingCode null_v4.String `db:"agerating_code" json:"ageratingCode"` AvailableFrom null_v4.Time `db:"available_from" json:"availableFrom"` AvailableTo null_v4.Time `db:"available_to" json:"availableTo"` DateCreated time.Time `db:"date_created" json:"dateCreated"` DateUpdated time.Time `db:"date_updated" json:"dateUpdated"` ID int32 `db:"id" json:"id"` ImageFileID uuid.NullUUID `db:"image_file_id" json:"imageFileId"` LegacyDescriptionID null_v4.Int `db:"legacy_description_id" json:"legacyDescriptionId"` LegacyID null_v4.Int `db:"legacy_id" json:"legacyId"` LegacyTitleID null_v4.Int `db:"legacy_title_id" json:"legacyTitleId"` PublishDate time.Time `db:"publish_date" json:"publishDate"` Status string `db:"status" json:"status"` Type string `db:"type" json:"type"` UserCreated uuid.NullUUID `db:"user_created" json:"userCreated"` UserUpdated uuid.NullUUID `db:"user_updated" json:"userUpdated"` DefaultEpisodeBehaviour null_v4.String `db:"default_episode_behaviour" json:"defaultEpisodeBehaviour"` PublishDateInTitle sql.NullBool `db:"publish_date_in_title" json:"publishDateInTitle"` Label null_v4.String `db:"label" json:"label"` PublicTitle null_v4.String `db:"public_title" json:"publicTitle"` Uuid uuid.UUID `db:"uuid" json:"uuid"` RelatedCollectionID null_v4.Int `db:"related_collection_id" json:"relatedCollectionId"` TranslationsRequired bool `db:"translations_required" json:"translationsRequired"` }
type ShowAvailability ¶
type ShowRole ¶
type ShowRole struct { ID int32 `db:"id" json:"id"` Roles interface{} `db:"roles" json:"roles"` RolesDownload interface{} `db:"roles_download" json:"rolesDownload"` RolesEarlyaccess interface{} `db:"roles_earlyaccess" json:"rolesEarlyaccess"` }
type ShowsTranslation ¶
type ShowsTranslation struct { Description null_v4.String `db:"description" json:"description"` ID int32 `db:"id" json:"id"` IsPrimary bool `db:"is_primary" json:"isPrimary"` LanguagesCode string `db:"languages_code" json:"languagesCode"` LegacyDescriptionID null_v4.Int `db:"legacy_description_id" json:"legacyDescriptionId"` LegacyTags null_v4.String `db:"legacy_tags" json:"legacyTags"` LegacyTagsID null_v4.Int `db:"legacy_tags_id" json:"legacyTagsId"` LegacyTitleID null_v4.Int `db:"legacy_title_id" json:"legacyTitleId"` ShowsID int32 `db:"shows_id" json:"showsId"` Title null_v4.String `db:"title" json:"title"` }
type ShowsUsergroup ¶
type Songcollection ¶
type SongsTranslation ¶
type StatsMembersDatum ¶
type StatsOrgCount ¶
type Studytopic ¶
type Studytopic struct { ID uuid.UUID `db:"id" json:"id"` Status string `db:"status" json:"status"` UserCreated uuid.NullUUID `db:"user_created" json:"userCreated"` DateCreated null_v4.Time `db:"date_created" json:"dateCreated"` UserUpdated uuid.NullUUID `db:"user_updated" json:"userUpdated"` DateUpdated null_v4.Time `db:"date_updated" json:"dateUpdated"` Title string `db:"title" json:"title"` Description null_v4.String `db:"description" json:"description"` TranslationsRequired bool `db:"translations_required" json:"translationsRequired"` }
type StudytopicsImage ¶
type StudytopicsTranslation ¶
type StudytopicsTranslation struct { ID int32 `db:"id" json:"id"` StudytopicsID uuid.UUID `db:"studytopics_id" json:"studytopicsId"` LanguagesCode string `db:"languages_code" json:"languagesCode"` Title null_v4.String `db:"title" json:"title"` Description null_v4.String `db:"description" json:"description"` }
type Styledimage ¶
type Styledimage struct { ID uuid.UUID `db:"id" json:"id"` UserCreated uuid.NullUUID `db:"user_created" json:"userCreated"` DateCreated null_v4.Time `db:"date_created" json:"dateCreated"` UserUpdated uuid.NullUUID `db:"user_updated" json:"userUpdated"` DateUpdated null_v4.Time `db:"date_updated" json:"dateUpdated"` Style string `db:"style" json:"style"` Language string `db:"language" json:"language"` File uuid.UUID `db:"file" json:"file"` }
type Survey ¶
type Survey struct { ID uuid.UUID `db:"id" json:"id"` Status string `db:"status" json:"status"` UserCreated uuid.NullUUID `db:"user_created" json:"userCreated"` DateCreated null_v4.Time `db:"date_created" json:"dateCreated"` UserUpdated uuid.NullUUID `db:"user_updated" json:"userUpdated"` DateUpdated null_v4.Time `db:"date_updated" json:"dateUpdated"` Description null_v4.String `db:"description" json:"description"` Title string `db:"title" json:"title"` TranslationsRequired bool `db:"translations_required" json:"translationsRequired"` }
type Surveyquestion ¶
type Surveyquestion struct { ID uuid.UUID `db:"id" json:"id"` UserCreated uuid.NullUUID `db:"user_created" json:"userCreated"` DateCreated null_v4.Time `db:"date_created" json:"dateCreated"` UserUpdated uuid.NullUUID `db:"user_updated" json:"userUpdated"` DateUpdated null_v4.Time `db:"date_updated" json:"dateUpdated"` Title string `db:"title" json:"title"` Description null_v4.String `db:"description" json:"description"` Type string `db:"type" json:"type"` SurveyID uuid.UUID `db:"survey_id" json:"surveyId"` Sort null_v4.Int `db:"sort" json:"sort"` Placeholder null_v4.String `db:"placeholder" json:"placeholder"` Url null_v4.String `db:"url" json:"url"` ActionButtonText null_v4.String `db:"action_button_text" json:"actionButtonText"` CancelButtonText null_v4.String `db:"cancel_button_text" json:"cancelButtonText"` }
type SurveyquestionsTranslation ¶
type SurveyquestionsTranslation struct { ID int32 `db:"id" json:"id"` SurveyquestionsID uuid.UUID `db:"surveyquestions_id" json:"surveyquestionsId"` LanguagesCode string `db:"languages_code" json:"languagesCode"` Title null_v4.String `db:"title" json:"title"` Description null_v4.String `db:"description" json:"description"` Placeholder null_v4.String `db:"placeholder" json:"placeholder"` ActionButtonText null_v4.String `db:"action_button_text" json:"actionButtonText"` CancelButtonText null_v4.String `db:"cancel_button_text" json:"cancelButtonText"` }
type SurveysTranslation ¶
type Tag ¶
type Tag struct { Code null_v4.String `db:"code" json:"code"` DateCreated time.Time `db:"date_created" json:"dateCreated"` DateUpdated time.Time `db:"date_updated" json:"dateUpdated"` ID int32 `db:"id" json:"id"` Name string `db:"name" json:"name"` UserCreated uuid.NullUUID `db:"user_created" json:"userCreated"` UserUpdated uuid.NullUUID `db:"user_updated" json:"userUpdated"` }
type TagsTranslation ¶
type TargetsUsergroup ¶
type Task ¶
type Task struct { ID uuid.UUID `db:"id" json:"id"` Status string `db:"status" json:"status"` UserCreated uuid.NullUUID `db:"user_created" json:"userCreated"` DateCreated null_v4.Time `db:"date_created" json:"dateCreated"` UserUpdated uuid.NullUUID `db:"user_updated" json:"userUpdated"` DateUpdated null_v4.Time `db:"date_updated" json:"dateUpdated"` Type string `db:"type" json:"type"` QuestionType null_v4.String `db:"question_type" json:"questionType"` Sort null_v4.Int `db:"sort" json:"sort"` LessonID uuid.UUID `db:"lesson_id" json:"lessonId"` Title null_v4.String `db:"title" json:"title"` AlternativesMultiselect sql.NullBool `db:"alternatives_multiselect" json:"alternativesMultiselect"` EpisodeID null_v4.Int `db:"episode_id" json:"episodeId"` ImageType null_v4.String `db:"image_type" json:"imageType"` SecondaryTitle null_v4.String `db:"secondary_title" json:"secondaryTitle"` Description null_v4.String `db:"description" json:"description"` LinkID null_v4.Int `db:"link_id" json:"linkId"` CompetitionMode sql.NullBool `db:"competition_mode" json:"competitionMode"` TranslationsRequired bool `db:"translations_required" json:"translationsRequired"` }
type TasksImage ¶
type TasksTranslation ¶
type TasksTranslation struct { ID int32 `db:"id" json:"id"` TasksID uuid.UUID `db:"tasks_id" json:"tasksId"` LanguagesCode string `db:"languages_code" json:"languagesCode"` Title null_v4.String `db:"title" json:"title"` SecondaryTitle null_v4.String `db:"secondary_title" json:"secondaryTitle"` Description null_v4.String `db:"description" json:"description"` }
type TimedmetadataPerson ¶
type TimedmetadataTranslation ¶
type TimedmetadataTranslation struct { ID int32 `db:"id" json:"id"` TimedmetadataID uuid.UUID `db:"timedmetadata_id" json:"timedmetadataId"` LanguagesCode string `db:"languages_code" json:"languagesCode"` Title null_v4.String `db:"title" json:"title"` Description null_v4.String `db:"description" json:"description"` }
type Timedmetadatum ¶
type Timedmetadatum struct { ID uuid.UUID `db:"id" json:"id"` Status string `db:"status" json:"status"` UserCreated uuid.NullUUID `db:"user_created" json:"userCreated"` DateCreated null_v4.Time `db:"date_created" json:"dateCreated"` UserUpdated uuid.NullUUID `db:"user_updated" json:"userUpdated"` DateUpdated null_v4.Time `db:"date_updated" json:"dateUpdated"` Label string `db:"label" json:"label"` Type string `db:"type" json:"type"` Highlight bool `db:"highlight" json:"highlight"` Title null_v4.String `db:"title" json:"title"` Description null_v4.String `db:"description" json:"description"` AssetID null_v4.Int `db:"asset_id" json:"assetId"` EpisodeID null_v4.Int `db:"episode_id" json:"episodeId"` ContentType null_v4.String `db:"content_type" json:"contentType"` SongID uuid.NullUUID `db:"song_id" json:"songId"` Seconds float32 `db:"seconds" json:"seconds"` MediaitemID uuid.NullUUID `db:"mediaitem_id" json:"mediaitemId"` }
type UpdateAssetArnParams ¶
type UpdateAssetStatusParams ¶
type UpdateMessageParams ¶
type UpdateMessageParams struct { Message string `db:"message" json:"message"` Metadata pqtype.NullRawMessage `db:"metadata" json:"metadata"` ID string `db:"id" json:"id"` }
type UpdateShortsScoreParams ¶
type UpdateSurveyQuestionTranslationParams ¶
type UpdateSurveyQuestionTranslationParams struct { ItemID uuid.UUID `db:"item_id" json:"itemId"` Language string `db:"language" json:"language"` Title null_v4.String `db:"title" json:"title"` Description null_v4.String `db:"description" json:"description"` ActionButtonText null_v4.String `db:"action_button_text" json:"actionButtonText"` CancelButtonText null_v4.String `db:"cancel_button_text" json:"cancelButtonText"` }
type UpsertMessageParams ¶
type UpsertMessageParams struct { ID string `db:"id" json:"id"` ItemID uuid.UUID `db:"item_id" json:"itemId"` Message string `db:"message" json:"message"` Metadata pqtype.NullRawMessage `db:"metadata" json:"metadata"` AgeGroup string `db:"age_group" json:"ageGroup"` OrgID int32 `db:"org_id" json:"orgId"` }
type UpsertUserParams ¶
type UpsertUserParams struct { ID string `db:"id" json:"id"` Email string `db:"email" json:"email"` EmailVerified bool `db:"email_verified" json:"emailVerified"` FirstName string `db:"first_name" json:"firstName"` DisplayName string `db:"display_name" json:"displayName"` Age int32 `db:"age" json:"age"` ChurchIds []int32 `db:"church_ids" json:"churchIds"` ActiveBcc bool `db:"active_bcc" json:"activeBcc"` Roles []string `db:"roles" json:"roles"` AgeGroup string `db:"age_group" json:"ageGroup"` Gender string `db:"gender" json:"gender"` }
type Usergroup ¶
type Usergroup struct { Code string `db:"code" json:"code"` DateCreated time.Time `db:"date_created" json:"dateCreated"` DateUpdated time.Time `db:"date_updated" json:"dateUpdated"` Emails null_v4.String `db:"emails" json:"emails"` Name string `db:"name" json:"name"` Sort null_v4.Int `db:"sort" json:"sort"` UserCreated uuid.NullUUID `db:"user_created" json:"userCreated"` UserUpdated uuid.NullUUID `db:"user_updated" json:"userUpdated"` ExplicitlyAvailable bool `db:"explicitly_available" json:"explicitlyAvailable"` }
type UsersAchievement ¶
type UsersAchievement struct { ProfileID uuid.UUID `db:"profile_id" json:"profileId"` AchievementID uuid.UUID `db:"achievement_id" json:"achievementId"` AchievedAt time.Time `db:"achieved_at" json:"achievedAt"` ConditionIds []uuid.UUID `db:"condition_ids" json:"conditionIds"` ConfirmedAt null_v4.Time `db:"confirmed_at" json:"confirmedAt"` }
type UsersCollection ¶
type UsersCollection struct { ID uuid.UUID `db:"id" json:"id"` ProfileID uuid.UUID `db:"profile_id" json:"profileId"` UpdatedAt time.Time `db:"updated_at" json:"updatedAt"` CreatedAt time.Time `db:"created_at" json:"createdAt"` MyList bool `db:"my_list" json:"myList"` Title string `db:"title" json:"title"` ApplicationgroupID uuid.UUID `db:"applicationgroup_id" json:"applicationgroupId"` }
type UsersCollectionentry ¶
type UsersCollectionentry struct { ID uuid.UUID `db:"id" json:"id"` CollectionID uuid.UUID `db:"collection_id" json:"collectionId"` Sort int32 `db:"sort" json:"sort"` Type string `db:"type" json:"type"` ItemID uuid.UUID `db:"item_id" json:"itemId"` CreatedAt time.Time `db:"created_at" json:"createdAt"` UpdatedAt time.Time `db:"updated_at" json:"updatedAt"` }
type UsersDevice ¶
type UsersMediaProgress ¶
type UsersMediaProgress struct { ProfileID uuid.UUID `db:"profile_id" json:"profileId"` ItemID uuid.UUID `db:"item_id" json:"itemId"` Progress float32 `db:"progress" json:"progress"` Duration float32 `db:"duration" json:"duration"` Watched int32 `db:"watched" json:"watched"` UpdatedAt time.Time `db:"updated_at" json:"updatedAt"` Context pqtype.NullRawMessage `db:"context" json:"context"` WatchedAt null_v4.Time `db:"watched_at" json:"watchedAt"` FromStart bool `db:"from_start" json:"fromStart"` }
type UsersMessage ¶
type UsersMessage struct { ID string `db:"id" json:"id"` Message string `db:"message" json:"message"` ItemID uuid.UUID `db:"item_id" json:"itemId"` CreatedAt time.Time `db:"created_at" json:"createdAt"` UpdatedAt null_v4.Time `db:"updated_at" json:"updatedAt"` Metadata pqtype.NullRawMessage `db:"metadata" json:"metadata"` AgeGroup null_v4.String `db:"age_group" json:"ageGroup"` OrgID null_v4.Int `db:"org_id" json:"orgId"` }
type UsersProfile ¶
type UsersProgress ¶
type UsersProgress struct { ProfileID uuid.UUID `db:"profile_id" json:"profileId"` EpisodeID int32 `db:"episode_id" json:"episodeId"` Progress int32 `db:"progress" json:"progress"` Duration int32 `db:"duration" json:"duration"` UpdatedAt time.Time `db:"updated_at" json:"updatedAt"` ShowID null_v4.Int `db:"show_id" json:"showId"` Watched null_v4.Int `db:"watched" json:"watched"` WatchedAt null_v4.Time `db:"watched_at" json:"watchedAt"` Context pqtype.NullRawMessage `db:"context" json:"context"` }
type UsersSubscription ¶
type UsersTaskanswer ¶
type UsersTaskanswer struct { ProfileID uuid.UUID `db:"profile_id" json:"profileId"` TaskID uuid.UUID `db:"task_id" json:"taskId"` UpdatedAt null_v4.Time `db:"updated_at" json:"updatedAt"` SelectedAlternatives interface{} `db:"selected_alternatives" json:"selectedAlternatives"` Locked bool `db:"locked" json:"locked"` }
type UsersUser ¶
type UsersUser struct { ID string `db:"id" json:"id"` Email string `db:"email" json:"email"` DisplayName string `db:"display_name" json:"displayName"` Age int32 `db:"age" json:"age"` ChurchIds interface{} `db:"church_ids" json:"churchIds"` ActiveBcc bool `db:"active_bcc" json:"activeBcc"` Roles interface{} `db:"roles" json:"roles"` AgeGroup string `db:"age_group" json:"ageGroup"` UpdatedAt time.Time `db:"updated_at" json:"updatedAt"` EmailVerified bool `db:"email_verified" json:"emailVerified"` Gender string `db:"gender" json:"gender"` FirstName string `db:"first_name" json:"firstName"` }
type UuidTranslationRow ¶
type UuidTranslationRow struct { ID int32 `db:"id" json:"id"` ParentID uuid.UUID `db:"parent_id" json:"parentId"` Language string `db:"language" json:"language"` Values json.RawMessage `db:"values" json:"values"` }
UuidTranslationRow is a common structure for all uuid translation rows
func (UuidTranslationRow) GetLanguage ¶
func (r UuidTranslationRow) GetLanguage() string
GetLanguage for this item
func (UuidTranslationRow) GetParentKey ¶
func (r UuidTranslationRow) GetParentKey() string
GetParentKey for this item
func (UuidTranslationRow) GetValues ¶
func (r UuidTranslationRow) GetValues() map[string]string
GetValues for this entry
Source Files ¶
- achievement-queries.go
- achievements.sql.go
- answers.sql.go
- application-queries.go
- applications.sql.go
- asset-queries.go
- assets.sql.go
- calendar-queries.go
- calendar.sql.go
- collection-queries.go
- collections.sql.go
- computeddata-queries.go
- computeddata.sql.go
- config.go
- config.sql.go
- contribution-queries.go
- contributions.sql.go
- conversions.go
- db.go
- device-queries.go
- directus-files.sql.go
- directus-users.sql.go
- episode-queries.go
- episodes.sql.go
- faq.go
- faqs.sql.go
- game-queries.go
- games.sql.go
- images.go
- images.sql.go
- languages.sql.go
- mediaitem-queries.go
- mediaitems.sql.go
- message-queries.go
- messages.sql.go
- methods.go
- models.go
- notification-queries.go
- notifications.sql.go
- page-queries.go
- pages.sql.go
- persons.sql.go
- playlist-queries.go
- playlists.sql.go
- profile-queries.go
- progress-queries.go
- progress.sql.go
- redirect-queries.go
- redirects.sql.go
- relation-queries.go
- relations.sql.go
- role-queries.go
- season-queries.go
- seasons.sql.go
- section-queries.go
- sections.sql.go
- short-queries.go
- shorts.sql.go
- show-queries.go
- shows.sql.go
- statistician.sql.go
- studies.sql.go
- study-queries.go
- subscriptions.sql.go
- survey-queries.go
- surveys.sql.go
- tag-queries.go
- tags.sql.go
- targets.sql.go
- timedmetadata-queries.go
- timedmetadata.sql.go
- translations.go
- translations.sql.go
- user-collection-queries.go
- user-collections.sql.go
- user-devices.sql.go
- user-profiles.sql.go
- users-queries.go
- users.sql.go
- utils.go
- views.sql.go