sqlc

package
v0.0.0-...-4a248c4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

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 Achievementcondition struct {
	ID            uuid.UUID   `db:"id" json:"id"`
	Collection    string      `db:"collection" json:"collection"`
	Action        string      `db:"action" json:"action"`
	Amount        null_v4.Int `db:"amount" json:"amount"`
	AchievementID uuid.UUID   `db:"achievement_id" json:"achievementId"`
}

type AchievementconditionsStudytopic

type AchievementconditionsStudytopic struct {
	ID                      int32     `db:"id" json:"id"`
	AchievementconditionsID uuid.UUID `db:"achievementconditions_id" json:"achievementconditionsId"`
	StudytopicsID           uuid.UUID `db:"studytopics_id" json:"studytopicsId"`
}

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 AchievementsImage struct {
	ID            uuid.UUID `db:"id" json:"id"`
	Image         uuid.UUID `db:"image" json:"image"`
	AchievementID uuid.UUID `db:"achievement_id" json:"achievementId"`
	Language      string    `db:"language" json:"language"`
}

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 AddSubscriptionParams struct {
	Key       string    `db:"key" json:"key"`
	ProfileID uuid.UUID `db:"profile_id" json:"profileId"`
}

type Agerating

type Agerating struct {
	Code        string         `db:"code" json:"code"`
	DateCreated time.Time      `db:"date_created" json:"dateCreated"`
	DateUpdated time.Time      `db:"date_updated" json:"dateUpdated"`
	Sort        null_v4.Int    `db:"sort" json:"sort"`
	Title       null_v4.String `db:"title" json:"title"`
}

type AgeratingsTranslation

type AgeratingsTranslation struct {
	AgeratingsCode string         `db:"ageratings_code" json:"ageratingsCode"`
	Description    null_v4.String `db:"description" json:"description"`
	ID             int32          `db:"id" json:"id"`
	LanguagesCode  string         `db:"languages_code" json:"languagesCode"`
}

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

type ApplicationQueries struct {
	*Queries
	GroupID uuid.UUID
}

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

func (aq *ApplicationQueries) SaveProfile(ctx context.Context, profile common.Profile) error

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 ApplicationgroupsUsergroup

type ApplicationgroupsUsergroup struct {
	ID                  int32     `db:"id" json:"id"`
	ApplicationgroupsID uuid.UUID `db:"applicationgroups_id" json:"applicationgroupsId"`
	UsergroupsCode      string    `db:"usergroups_code" json:"usergroupsCode"`
}

type ApplicationgroupsUsergroupsL

type ApplicationgroupsUsergroupsL struct {
	ID                  int32          `db:"id" json:"id"`
	ApplicationgroupsID uuid.NullUUID  `db:"applicationgroups_id" json:"applicationgroupsId"`
	UsergroupsCode      null_v4.String `db:"usergroups_code" json:"usergroupsCode"`
}

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 AssetstreamsAudioLanguage

type AssetstreamsAudioLanguage struct {
	AssetstreamsID int32  `db:"assetstreams_id" json:"assetstreamsId"`
	ID             int32  `db:"id" json:"id"`
	LanguagesCode  string `db:"languages_code" json:"languagesCode"`
}

type AssetstreamsSubtitleLanguage

type AssetstreamsSubtitleLanguage struct {
	AssetstreamsID int32  `db:"assetstreams_id" json:"assetstreamsId"`
	ID             int32  `db:"id" json:"id"`
	LanguagesCode  string `db:"languages_code" json:"languagesCode"`
}

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

func (*CollectionQueries) GetAchievementsForActions

func (cq *CollectionQueries) GetAchievementsForActions(ctx context.Context, actions []string) ([]loaders.Relation[uuid.UUID, string], error)

GetAchievementsForActions retrieves achievementIDs for actions

type CollectionsEntry

type CollectionsEntry struct {
	ID            int32       `db:"id" json:"id"`
	CollectionsID int32       `db:"collections_id" json:"collectionsId"`
	Item          string      `db:"item" json:"item"`
	Collection    string      `db:"collection" json:"collection"`
	Sort          null_v4.Int `db:"sort" json:"sort"`
}

type CollectionsTranslation

type CollectionsTranslation struct {
	ID            int32          `db:"id" json:"id"`
	CollectionsID int32          `db:"collections_id" json:"collectionsId"`
	LanguagesCode string         `db:"languages_code" json:"languagesCode"`
	Slug          null_v4.String `db:"slug" json:"slug"`
	Title         null_v4.String `db:"title" json:"title"`
}

type ComputeddataCondition

type ComputeddataCondition struct {
	ID             uuid.UUID     `db:"id" json:"id"`
	ComputeddataID uuid.NullUUID `db:"computeddata_id" json:"computeddataId"`
	Type           string        `db:"type" json:"type"`
	Operator       string        `db:"operator" json:"operator"`
	Value          string        `db:"value" json:"value"`
}

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 ConfirmAchievementParams

type ConfirmAchievementParams struct {
	ProfileID     uuid.UUID `db:"profile_id" json:"profileId"`
	AchievementID uuid.UUID `db:"achievement_id" json:"achievementId"`
}

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"`
}

type DBTX

type DBTX interface {
	ExecContext(context.Context, string, ...interface{}) (sql.Result, error)
	PrepareContext(context.Context, string) (*sql.Stmt, error)
	QueryContext(context.Context, string, ...interface{}) (*sql.Rows, error)
	QueryRowContext(context.Context, string, ...interface{}) *sql.Row
}

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 DirectusExtension struct {
	Name    string `db:"name" json:"name"`
	Enabled bool   `db:"enabled" json:"enabled"`
}

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       time.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"`
}

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 DirectusFolder struct {
	ID     uuid.UUID     `db:"id" json:"id"`
	Name   string        `db:"name" json:"name"`
	Parent uuid.NullUUID `db:"parent" json:"parent"`
}

type DirectusMigration

type DirectusMigration struct {
	Version   string       `db:"version" json:"version"`
	Name      string       `db:"name" json:"name"`
	Timestamp null_v4.Time `db:"timestamp" json:"timestamp"`
}

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"`
	Role        uuid.NullUUID         `db:"role" json:"role"`
	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"`
}

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 DirectusRole 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 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"`
	Share     uuid.NullUUID  `db:"share" json:"share"`
	Origin    null_v4.String `db:"origin" json:"origin"`
}

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"`
	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"`
}

type DirectusShare

type DirectusShare struct {
	ID          uuid.UUID      `db:"id" json:"id"`
	Name        null_v4.String `db:"name" json:"name"`
	Collection  string         `db:"collection" json:"collection"`
	Item        string         `db:"item" json:"item"`
	Role        uuid.NullUUID  `db:"role" json:"role"`
	Password    null_v4.String `db:"password" json:"password"`
	UserCreated uuid.NullUUID  `db:"user_created" json:"userCreated"`
	DateCreated null_v4.Time   `db:"date_created" json:"dateCreated"`
	DateStart   null_v4.Time   `db:"date_start" json:"dateStart"`
	DateEnd     null_v4.Time   `db:"date_end" json:"dateEnd"`
	TimesUsed   null_v4.Int    `db:"times_used" json:"timesUsed"`
	MaxUses     null_v4.Int    `db:"max_uses" json:"maxUses"`
}

type DirectusTranslation

type DirectusTranslation struct {
	ID       uuid.UUID `db:"id" json:"id"`
	Language string    `db:"language" json:"language"`
	Key      string    `db:"key" json:"key"`
	Value    string    `db:"value" json:"value"`
}

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"`
}

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 EpisodesAsset struct {
	ID         int32       `db:"id" json:"id"`
	EpisodesID null_v4.Int `db:"episodes_id" json:"episodesId"`
	AssetsID   null_v4.Int `db:"assets_id" json:"assetsId"`
	Language   string      `db:"language" json:"language"`
}

type EpisodesTag

type EpisodesTag struct {
	EpisodesID int32 `db:"episodes_id" json:"episodesId"`
	ID         int32 `db:"id" json:"id"`
	TagsID     int32 `db:"tags_id" json:"tagsId"`
}

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 EventsTranslation struct {
	Description   null_v4.String `db:"description" json:"description"`
	EventsID      int32          `db:"events_id" json:"eventsId"`
	ID            int32          `db:"id" json:"id"`
	LanguagesCode string         `db:"languages_code" json:"languagesCode"`
	Title         null_v4.String `db:"title" json:"title"`
}

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 FaqsTranslation struct {
	ID            int32          `db:"id" json:"id"`
	FaqsID        uuid.UUID      `db:"faqs_id" json:"faqsId"`
	LanguagesCode string         `db:"languages_code" json:"languagesCode"`
	Question      null_v4.String `db:"question" json:"question"`
	Answer        null_v4.String `db:"answer" json:"answer"`
}

type FaqsUsergroup

type FaqsUsergroup struct {
	ID             int32     `db:"id" json:"id"`
	FaqsID         uuid.UUID `db:"faqs_id" json:"faqsId"`
	UsergroupsCode string    `db:"usergroups_code" json:"usergroupsCode"`
}

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 GamesStyledimage struct {
	ID             int32     `db:"id" json:"id"`
	GamesID        uuid.UUID `db:"games_id" json:"gamesId"`
	StyledimagesID uuid.UUID `db:"styledimages_id" json:"styledimagesId"`
}

type GamesTranslation

type GamesTranslation struct {
	ID            int32          `db:"id" json:"id"`
	GamesID       uuid.UUID      `db:"games_id" json:"gamesId"`
	LanguagesCode string         `db:"languages_code" json:"languagesCode"`
	Title         null_v4.String `db:"title" json:"title"`
	Description   null_v4.String `db:"description" json:"description"`
}

type GamesUsergroup

type GamesUsergroup struct {
	ID             int32     `db:"id" json:"id"`
	GamesID        uuid.UUID `db:"games_id" json:"gamesId"`
	UsergroupsCode string    `db:"usergroups_code" json:"usergroupsCode"`
}

type GetAchievedAchievementsParams

type GetAchievedAchievementsParams struct {
	ProfileID uuid.UUID   `db:"profile_id" json:"profileId"`
	Column2   []uuid.UUID `db:"column_2" json:"column2"`
}

type GetAchievementsWithConditionAmountAchievedParams

type GetAchievementsWithConditionAmountAchievedParams struct {
	ProfileID  uuid.UUID   `db:"profile_id" json:"profileId"`
	Collection string      `db:"collection" json:"collection"`
	Action     string      `db:"action" json:"action"`
	Amount     null_v4.Int `db:"amount" json:"amount"`
}

type GetAchievementsWithConditionAmountAchievedRow

type GetAchievementsWithConditionAmountAchievedRow struct {
	ID           uuid.UUID   `db:"id" json:"id"`
	ConditionIds []uuid.UUID `db:"condition_ids" json:"conditionIds"`
}

type GetAchievementsWithTopicsCompletedAchievedParams

type GetAchievementsWithTopicsCompletedAchievedParams struct {
	ProfileID uuid.UUID   `db:"profile_id" json:"profileId"`
	TopicIds  []uuid.UUID `db:"topic_ids" json:"topicIds"`
}

type GetAchievementsWithTopicsCompletedAchievedRow

type GetAchievementsWithTopicsCompletedAchievedRow struct {
	ID           uuid.UUID   `db:"id" json:"id"`
	ConditionIds []uuid.UUID `db:"condition_ids" json:"conditionIds"`
}

type GetAnsweredTasksParams

type GetAnsweredTasksParams struct {
	ProfileID uuid.UUID   `db:"profile_id" json:"profileId"`
	Column2   []uuid.UUID `db:"column_2" json:"column2"`
}

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"`
	ChapterType null_v4.String `db:"chapter_type" json:"chapterType"`
	SongID      uuid.NullUUID  `db:"song_id" json:"songId"`
	PersonIds   []uuid.UUID    `db:"person_ids" json:"personIds"`
}

type GetCollectionSongIDParams

type GetCollectionSongIDParams struct {
	CollectionKey string `db:"collection_key" json:"collectionKey"`
	SongKey       string `db:"song_key" json:"songKey"`
}

type GetLessonProgressGroupedByOrgParams

type GetLessonProgressGroupedByOrgParams struct {
	MinSize   int32     `db:"min_size" json:"minSize"`
	MaxSize   int32     `db:"max_size" json:"maxSize"`
	LessonID  uuid.UUID `db:"lesson_id" json:"lessonId"`
	AgeGroups []string  `db:"age_groups" json:"ageGroups"`
}

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 GetMediaProgressParams struct {
	ProfileID uuid.UUID   `db:"profile_id" json:"profileId"`
	ItemIds   []uuid.UUID `db:"item_ids" json:"itemIds"`
}

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 GetProgressedMediaIDsParams

type GetProgressedMediaIDsParams struct {
	ProfileID uuid.UUID   `db:"profile_id" json:"profileId"`
	ItemIds   []uuid.UUID `db:"item_ids" json:"itemIds"`
}

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 GetRolesForPlaylistsRow struct {
	PlaylistsID uuid.UUID `db:"playlists_id" json:"playlistsId"`
	Roles       []string  `db:"roles" json:"roles"`
}

type GetRolesRow

type GetRolesRow struct {
	Code                string   `db:"code" json:"code"`
	ExplicitlyAvailable bool     `db:"explicitly_available" json:"explicitlyAvailable"`
	Emails              []string `db:"emails" json:"emails"`
}

type GetRolesWithCodeRow

type GetRolesWithCodeRow struct {
	Code                string   `db:"code" json:"code"`
	ExplicitlyAvailable bool     `db:"explicitly_available" json:"explicitlyAvailable"`
	Emails              []string `db:"emails" json:"emails"`
}

type GetSelectedAlternativesAndLockStatusParams

type GetSelectedAlternativesAndLockStatusParams struct {
	ProfileID uuid.UUID   `db:"profile_id" json:"profileId"`
	TaskIds   []uuid.UUID `db:"task_ids" json:"taskIds"`
}

type GetSelectedAlternativesAndLockStatusRow

type GetSelectedAlternativesAndLockStatusRow struct {
	TaskID               uuid.UUID   `db:"task_id" json:"taskId"`
	SelectedAlternatives []uuid.UUID `db:"selected_alternatives" json:"selectedAlternatives"`
	Locked               bool        `db:"locked" json:"locked"`
}

type GetTargetsRow

type GetTargetsRow struct {
	ID         uuid.UUID `db:"id" json:"id"`
	Type       string    `db:"type" json:"type"`
	GroupCodes []string  `db:"group_codes" json:"groupCodes"`
}

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 GooseDbVersion struct {
	ID        int32        `db:"id" json:"id"`
	VersionID int64        `db:"version_id" json:"versionId"`
	IsApplied bool         `db:"is_applied" json:"isApplied"`
	Tstamp    null_v4.Time `db:"tstamp" json:"tstamp"`
}

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 InsertAssetStreamAudioLanguageParams

type InsertAssetStreamAudioLanguageParams struct {
	AssetstreamsID int32  `db:"assetstreams_id" json:"assetstreamsId"`
	LanguagesCode  string `db:"languages_code" json:"languagesCode"`
}

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 InsertAssetStreamSubtitleLanguageParams

type InsertAssetStreamSubtitleLanguageParams struct {
	AssetstreamsID int32  `db:"assetstreams_id" json:"assetstreamsId"`
	LanguagesCode  string `db:"languages_code" json:"languagesCode"`
}

type InsertMemberParams

type InsertMemberParams struct {
	ID       int32  `db:"id" json:"id"`
	AgeGroup string `db:"age_group" json:"ageGroup"`
	Org      int32  `db:"org" json:"org"`
}

type InsertOrgCountsParams

type InsertOrgCountsParams struct {
	OrgID        int32  `db:"org_id" json:"orgId"`
	CountPersons int32  `db:"count_persons" json:"countPersons"`
	AgeGroup     string `db:"age_group" json:"ageGroup"`
}

type InsertOrgParams

type InsertOrgParams struct {
	OrgID int32  `db:"org_id" json:"orgId"`
	Type  string `db:"type" json:"type"`
	Name  string `db:"name" json:"name"`
}

type InsertPersonParams

type InsertPersonParams struct {
	ID   uuid.UUID `db:"id" json:"id"`
	Name string    `db:"name" json:"name"`
}

type InsertSongCollectionParams

type InsertSongCollectionParams struct {
	ID    uuid.UUID      `db:"id" json:"id"`
	Key   string         `db:"key" json:"key"`
	Title null_v4.String `db:"title" json:"title"`
}

type InsertSongParams

type InsertSongParams struct {
	ID           uuid.UUID `db:"id" json:"id"`
	Key          string    `db:"key" json:"key"`
	CollectionID uuid.UUID `db:"collection_id" json:"collectionId"`
	Title        string    `db:"title" json:"title"`
}

type InsertTimedMetadataParams

type InsertTimedMetadataParams struct {
	ID          uuid.UUID      `db:"id" json:"id"`
	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"`
	ChapterType null_v4.String `db:"chapter_type" json:"chapterType"`
	SongID      uuid.NullUUID  `db:"song_id" json:"songId"`
}

type InsertTimedMetadataPersonParams

type InsertTimedMetadataPersonParams struct {
	TimedmetadataID uuid.UUID `db:"timedmetadata_id" json:"timedmetadataId"`
	PersonsID       uuid.UUID `db:"persons_id" json:"personsId"`
}

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 Language

type Language struct {
	Code              string         `db:"code" json:"code"`
	Legacy2LetterCode null_v4.String `db:"legacy_2_letter_code" json:"legacy2LetterCode"`
	Legacy3LetterCode null_v4.String `db:"legacy_3_letter_code" json:"legacy3LetterCode"`
	Name              null_v4.String `db:"name" json:"name"`
}

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 LessonsImage struct {
	ID       uuid.UUID `db:"id" json:"id"`
	LessonID uuid.UUID `db:"lesson_id" json:"lessonId"`
	File     uuid.UUID `db:"file" json:"file"`
	Language string    `db:"language" json:"language"`
	Style    string    `db:"style" json:"style"`
}

type LessonsRelation

type LessonsRelation struct {
	ID         int32       `db:"id" json:"id"`
	LessonsID  uuid.UUID   `db:"lessons_id" json:"lessonsId"`
	Item       string      `db:"item" json:"item"`
	Sort       null_v4.Int `db:"sort" json:"sort"`
	Collection string      `db:"collection" json:"collection"`
}

type LessonsTranslation

type LessonsTranslation struct {
	ID            int32          `db:"id" json:"id"`
	LessonsID     uuid.UUID      `db:"lessons_id" json:"lessonsId"`
	LanguagesCode string         `db:"languages_code" json:"languagesCode"`
	Title         null_v4.String `db:"title" json:"title"`
	Description   null_v4.String `db:"description" json:"description"`
}
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 LinksTranslation struct {
	ID            int32  `db:"id" json:"id"`
	LinksID       int32  `db:"links_id" json:"linksId"`
	LanguagesCode string `db:"languages_code" json:"languagesCode"`
	Title         string `db:"title" json:"title"`
	Description   string `db:"description" json:"description"`
}

type ListAchievementGroupOriginalTranslationsRow

type ListAchievementGroupOriginalTranslationsRow struct {
	ID     uuid.UUID       `db:"id" json:"id"`
	Values json.RawMessage `db:"values" json:"values"`
}

type ListAchievementGroupTranslationsRow

type ListAchievementGroupTranslationsRow 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"`
}

type ListAchievementOriginalTranslationsRow

type ListAchievementOriginalTranslationsRow struct {
	ID     uuid.UUID       `db:"id" json:"id"`
	Values json.RawMessage `db:"values" json:"values"`
}

type ListAchievementTranslationsRow

type ListAchievementTranslationsRow 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"`
}

type ListAlternativeTranslationsRow

type ListAlternativeTranslationsRow 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"`
}

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 ListDevicesInApplicationGroupRow

type ListDevicesInApplicationGroupRow struct {
	Token     string    `db:"token" json:"token"`
	ProfileID uuid.UUID `db:"profile_id" json:"profileId"`
	UpdatedAt time.Time `db:"updated_at" json:"updatedAt"`
	Name      string    `db:"name" json:"name"`
	Languages []string  `db:"languages" json:"languages"`
}

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 ListFAQCategoryTranslationsRow

type ListFAQCategoryTranslationsRow 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"`
}

type ListFAQOriginalTranslationsRow

type ListFAQOriginalTranslationsRow struct {
	ID     uuid.UUID       `db:"id" json:"id"`
	Values json.RawMessage `db:"values" json:"values"`
}

type ListFAQTranslationsRow

type ListFAQTranslationsRow 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"`
}

type ListGameOriginalTranslationsRow

type ListGameOriginalTranslationsRow struct {
	ID     uuid.UUID       `db:"id" json:"id"`
	Values json.RawMessage `db:"values" json:"values"`
}

type ListGameTranslationsRow

type ListGameTranslationsRow 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"`
}

type ListLessonOriginalTranslationsRow

type ListLessonOriginalTranslationsRow struct {
	ID     uuid.UUID       `db:"id" json:"id"`
	Values json.RawMessage `db:"values" json:"values"`
}

type ListLessonTranslationsRow

type ListLessonTranslationsRow 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"`
}

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 ListMediaItemTranslationsRow

type ListMediaItemTranslationsRow 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"`
}

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 ListPlaylistTranslationsRow

type ListPlaylistTranslationsRow 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"`
}

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 ListSegmentedShortIDsForRolesRow

type ListSegmentedShortIDsForRolesRow struct {
	Week string      `db:"week" json:"week"`
	Ids  []uuid.UUID `db:"ids" json:"ids"`
}

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 ListStudyTopicTranslationsRow

type ListStudyTopicTranslationsRow 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"`
}

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 ListSurveyQuestionTranslationsRow

type ListSurveyQuestionTranslationsRow 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"`
}

type ListSurveyTranslationsRow

type ListSurveyTranslationsRow 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"`
}

type ListTaskOriginalTranslationsRow

type ListTaskOriginalTranslationsRow struct {
	ID     uuid.UUID       `db:"id" json:"id"`
	Values json.RawMessage `db:"values" json:"values"`
}

type ListTaskTranslationsRow

type ListTaskTranslationsRow 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"`
}

type MaterializedViewsMetum

type MaterializedViewsMetum struct {
	ViewName      string       `db:"view_name" json:"viewName"`
	LastRefreshed null_v4.Time `db:"last_refreshed" json:"lastRefreshed"`
}

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 MediaitemsAsset struct {
	ID           int32     `db:"id" json:"id"`
	MediaitemsID uuid.UUID `db:"mediaitems_id" json:"mediaitemsId"`
	AssetsID     int32     `db:"assets_id" json:"assetsId"`
	Language     string    `db:"language" json:"language"`
}

type MediaitemsContribution

type MediaitemsContribution struct {
	ID              int32         `db:"id" json:"id"`
	MediaitemsID    uuid.NullUUID `db:"mediaitems_id" json:"mediaitemsId"`
	ContributionsID null_v4.Int   `db:"contributions_id" json:"contributionsId"`
}

type MediaitemsStyledimage

type MediaitemsStyledimage struct {
	ID             int32         `db:"id" json:"id"`
	MediaitemsID   uuid.NullUUID `db:"mediaitems_id" json:"mediaitemsId"`
	StyledimagesID uuid.NullUUID `db:"styledimages_id" json:"styledimagesId"`
}

type MediaitemsTag

type MediaitemsTag struct {
	ID           int32         `db:"id" json:"id"`
	MediaitemsID uuid.NullUUID `db:"mediaitems_id" json:"mediaitemsId"`
	TagsID       null_v4.Int   `db:"tags_id" json:"tagsId"`
}

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 MediaitemsUsergroup struct {
	ID             int32     `db:"id" json:"id"`
	MediaitemsID   uuid.UUID `db:"mediaitems_id" json:"mediaitemsId"`
	UsergroupsCode string    `db:"usergroups_code" json:"usergroupsCode"`
}

type MediaitemsUsergroupsDownload

type MediaitemsUsergroupsDownload struct {
	ID             int32     `db:"id" json:"id"`
	MediaitemsID   uuid.UUID `db:"mediaitems_id" json:"mediaitemsId"`
	UsergroupsCode string    `db:"usergroups_code" json:"usergroupsCode"`
}

type MediaitemsUsergroupsEarlyaccess

type MediaitemsUsergroupsEarlyaccess struct {
	ID             int32     `db:"id" json:"id"`
	MediaitemsID   uuid.UUID `db:"mediaitems_id" json:"mediaitemsId"`
	UsergroupsCode string    `db:"usergroups_code" json:"usergroupsCode"`
}

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 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 MessagesMessagetemplate struct {
	ID                 int32 `db:"id" json:"id"`
	MessagesID         int32 `db:"messages_id" json:"messagesId"`
	MessagetemplatesID int32 `db:"messagetemplates_id" json:"messagetemplatesId"`
}

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 NotificationsTarget struct {
	ID              int32     `db:"id" json:"id"`
	NotificationsID uuid.UUID `db:"notifications_id" json:"notificationsId"`
	TargetsID       uuid.UUID `db:"targets_id" json:"targetsId"`
}

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 PagesTranslation struct {
	Description   null_v4.String `db:"description" json:"description"`
	ID            int32          `db:"id" json:"id"`
	LanguagesCode string         `db:"languages_code" json:"languagesCode"`
	PagesID       int32          `db:"pages_id" json:"pagesId"`
	Title         null_v4.String `db:"title" json:"title"`
}

type Person

type Person struct {
	ID   uuid.UUID `db:"id" json:"id"`
	Name string    `db:"name" json:"name"`
}

type PersonsStyledimage

type PersonsStyledimage struct {
	ID             int32     `db:"id" json:"id"`
	PersonsID      uuid.UUID `db:"persons_id" json:"personsId"`
	StyledimagesID uuid.UUID `db:"styledimages_id" json:"styledimagesId"`
}

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 PhrasesTranslation struct {
	ID            int32          `db:"id" json:"id"`
	PhrasesKey    string         `db:"phrases_key" json:"phrasesKey"`
	LanguagesCode string         `db:"languages_code" json:"languagesCode"`
	Value         null_v4.String `db:"value" json:"value"`
}

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 PlaylistsStyledimage struct {
	ID             int32         `db:"id" json:"id"`
	PlaylistsID    uuid.NullUUID `db:"playlists_id" json:"playlistsId"`
	StyledimagesID uuid.NullUUID `db:"styledimages_id" json:"styledimagesId"`
}

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 PlaylistsUsergroup struct {
	ID             int32     `db:"id" json:"id"`
	PlaylistsID    uuid.UUID `db:"playlists_id" json:"playlistsId"`
	UsergroupsCode string    `db:"usergroups_code" json:"usergroupsCode"`
}

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

func (pq *ProfileQueries) SaveProgress(ctx context.Context, progress common.Progress) error

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 PromptsTarget struct {
	ID        int32     `db:"id" json:"id"`
	PromptsID uuid.UUID `db:"prompts_id" json:"promptsId"`
	TargetsID uuid.UUID `db:"targets_id" json:"targetsId"`
}

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 New

func New(db DBTX) *Queries

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 (q *Queries) AssetIDByARN(ctx context.Context, awsArn string) (int32, error)

func (*Queries) ClearAchievementGroupTranslations

func (q *Queries) ClearAchievementGroupTranslations(ctx context.Context, dollar_1 []uuid.UUID) error

func (*Queries) ClearAchievementTranslations

func (q *Queries) ClearAchievementTranslations(ctx context.Context, dollar_1 []uuid.UUID) error

func (*Queries) ClearCalendarEntryTranslations

func (q *Queries) ClearCalendarEntryTranslations(ctx context.Context, dollar_1 []int32) error

func (*Queries) ClearEpisodeTimedMetadata

func (q *Queries) ClearEpisodeTimedMetadata(ctx context.Context, episodeID null_v4.Int) error

func (*Queries) ClearEpisodeTranslations

func (q *Queries) ClearEpisodeTranslations(ctx context.Context, episodeIds []int32) error

func (*Queries) ClearEventTranslations

func (q *Queries) ClearEventTranslations(ctx context.Context, dollar_1 []int32) error

func (*Queries) ClearFAQCategoryTranslations

func (q *Queries) ClearFAQCategoryTranslations(ctx context.Context, dollar_1 []uuid.UUID) error

func (*Queries) ClearFAQTranslations

func (q *Queries) ClearFAQTranslations(ctx context.Context, dollar_1 []uuid.UUID) error

func (*Queries) ClearGameTranslations

func (q *Queries) ClearGameTranslations(ctx context.Context, dollar_1 []uuid.UUID) error

func (*Queries) ClearLessonTranslations

func (q *Queries) ClearLessonTranslations(ctx context.Context, dollar_1 []uuid.UUID) error

func (*Queries) ClearMediaItemTimedMetadata

func (q *Queries) ClearMediaItemTimedMetadata(ctx context.Context, mediaitemID uuid.UUID) error

func (*Queries) ClearMediaItemTranslations

func (q *Queries) ClearMediaItemTranslations(ctx context.Context, dollar_1 []uuid.UUID) error

func (*Queries) ClearPageTranslations

func (q *Queries) ClearPageTranslations(ctx context.Context, dollar_1 []int32) error

func (*Queries) ClearPlaylistTranslations

func (q *Queries) ClearPlaylistTranslations(ctx context.Context, dollar_1 []uuid.UUID) error

func (*Queries) ClearQuestionAlternativeTranslations

func (q *Queries) ClearQuestionAlternativeTranslations(ctx context.Context, dollar_1 []uuid.UUID) error

func (*Queries) ClearSeasonTranslations

func (q *Queries) ClearSeasonTranslations(ctx context.Context, dollar_1 []int32) error

func (*Queries) ClearSectionTranslations

func (q *Queries) ClearSectionTranslations(ctx context.Context, dollar_1 []int32) error

func (*Queries) ClearShowTranslations

func (q *Queries) ClearShowTranslations(ctx context.Context, dollar_1 []int32) error

func (*Queries) ClearStudyTopicTranslations

func (q *Queries) ClearStudyTopicTranslations(ctx context.Context, dollar_1 []uuid.UUID) error

func (*Queries) ClearSurveyQuestionTranslations

func (q *Queries) ClearSurveyQuestionTranslations(ctx context.Context, dollar_1 []uuid.UUID) error

func (*Queries) ClearSurveyTranslations

func (q *Queries) ClearSurveyTranslations(ctx context.Context, dollar_1 []uuid.UUID) error

func (*Queries) ClearTaskTranslations

func (q *Queries) ClearTaskTranslations(ctx context.Context, dollar_1 []uuid.UUID) error

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 (q *Queries) DeleteDevices(ctx context.Context, tokens []string) error

func (*Queries) DeletePath

func (q *Queries) DeletePath(ctx context.Context, path null_v4.String) error

func (*Queries) DeleteUserCollectionEntry

func (q *Queries) DeleteUserCollectionEntry(ctx context.Context, id uuid.UUID) error

func (*Queries) GetAchievedAchievements

func (q *Queries) GetAchievedAchievements(ctx context.Context, arg GetAchievedAchievementsParams) ([]uuid.UUID, error)

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) GetAllMemberIDs

func (q *Queries) GetAllMemberIDs(ctx context.Context) ([]string, error)

func (*Queries) GetAnsweredTasks

func (q *Queries) GetAnsweredTasks(ctx context.Context, arg GetAnsweredTasksParams) ([]uuid.UUID, error)

func (*Queries) GetAnswersSince

func (q *Queries) GetAnswersSince(ctx context.Context, createdAt time.Time) ([]GetAnswersSinceRow, error)

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

func (q *Queries) GetApplications(ctx context.Context, ids []int) ([]common.Application, error)

GetApplications returns a list of applications retrieved by ids

func (*Queries) GetAssetTimedMetadata

func (q *Queries) GetAssetTimedMetadata(ctx context.Context, assetID null_v4.Int) ([]GetAssetTimedMetadataRow, error)

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) GetCollectionIDFromKey

func (q *Queries) GetCollectionIDFromKey(ctx context.Context, key string) (uuid.UUID, error)

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 (q *Queries) GetCollectionSongID(ctx context.Context, arg GetCollectionSongIDParams) (uuid.UUID, error)

func (*Queries) GetCollections

func (q *Queries) GetCollections(ctx context.Context, ids []int) ([]common.Collection, error)

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) GetDevices

func (q *Queries) GetDevices(ctx context.Context, profileIDs []uuid.UUID) ([]common.Device, error)

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) GetEpisodeIDForTimedMetadatas

func (rq *Queries) GetEpisodeIDForTimedMetadatas(ctx context.Context, ids []uuid.UUID) ([]loaders.Conversion[uuid.UUID, int], error)

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

func (q *Queries) GetEpisodes(ctx context.Context, ids []int) ([]common.Episode, error)

GetEpisodes returns a list of common.Episode specified by ids

func (*Queries) GetEvents

func (q *Queries) GetEvents(ctx context.Context, ids []int) ([]common.Event, error)

GetEvents returns specific calendar events

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

func (q *Queries) GetFilesForAssets(ctx context.Context, ids []int) ([]common.File, error)

GetFilesForAssets returns files for assets

func (*Queries) GetFilesForEpisodes

func (q *Queries) GetFilesForEpisodes(ctx context.Context, ids []int) ([]common.File, error)

GetFilesForEpisodes returns files for the specified episodes

func (*Queries) GetGames

func (q *Queries) GetGames(ctx context.Context, ids []uuid.UUID) ([]common.Game, error)

GetGames returns games from the database

func (*Queries) GetGlobalConfig

func (q *Queries) GetGlobalConfig(ctx context.Context) (common.GlobalConfig, error)

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 (q *Queries) GetLanguageKeys(ctx context.Context) ([]string, error)

func (*Queries) GetLanguages

func (q *Queries) GetLanguages(ctx context.Context) ([]Language, error)

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

func (q *Queries) GetLessons(ctx context.Context, ids []uuid.UUID) ([]common.Lesson, error)

GetLessons returns lessons by ids

func (q *Queries) GetLinks(ctx context.Context, ids []int) ([]common.Link, error)

GetLinks returns links from the database

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 (q *Queries) GetMediaItemByID(ctx context.Context, id uuid.UUID) (Mediaitem, error)

func (*Queries) GetMediaProgress

func (q *Queries) GetMediaProgress(ctx context.Context, arg GetMediaProgressParams) ([]GetMediaProgressRow, error)

func (*Queries) GetMemberIDs

func (q *Queries) GetMemberIDs(ctx context.Context, everyone bool) ([]string, error)

func (*Queries) GetMessageGroups

func (q *Queries) GetMessageGroups(ctx context.Context, ids []int) ([]common.MessageGroup, error)

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) GetPages

func (q *Queries) GetPages(ctx context.Context, ids []int) ([]common.Page, error)

GetPages returns a list of pages retrieved by ids

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 (q *Queries) GetPersonIDsByNames(ctx context.Context, names []string) ([]Person, error)

func (*Queries) GetPersons

func (q *Queries) GetPersons(ctx context.Context, ids []uuid.UUID) ([]common.Person, error)

GetPersons returns persons for the specified ids

func (*Queries) GetPhrases

func (q *Queries) GetPhrases(ctx context.Context, keys []string) ([]common.Phrase, error)

GetPhrases returns phrases for the specified keys

func (*Queries) GetPlaylists

func (q *Queries) GetPlaylists(ctx context.Context, ids []uuid.UUID) ([]common.Playlist, error)

GetPlaylists returns playlists from the database

func (*Queries) GetProgressedMediaIDs

func (q *Queries) GetProgressedMediaIDs(ctx context.Context, arg GetProgressedMediaIDsParams) ([]uuid.UUID, error)

func (*Queries) GetPromptIDsForRoles

func (q *Queries) GetPromptIDsForRoles(ctx context.Context, roles []string) ([]uuid.UUID, error)

func (*Queries) GetPrompts

func (q *Queries) GetPrompts(ctx context.Context, ids []uuid.UUID) ([]GetPromptsRow, error)

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 (q *Queries) GetQuestionAlternativesByIDs(ctx context.Context, dollar_1 []uuid.UUID) ([]GetQuestionAlternativesByIDsRow, error)

func (*Queries) GetQuestions

func (q *Queries) GetQuestions(ctx context.Context, ids []uuid.UUID) ([]common.Question, error)

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

func (q *Queries) GetRedirects(ctx context.Context, ids []uuid.UUID) ([]common.Redirect, error)

GetRedirects returns a list of redirects retrieved by ids

func (*Queries) GetRoles

func (q *Queries) GetRoles(ctx context.Context) ([]GetRolesRow, error)

func (*Queries) GetRolesByEmail

func (q *Queries) GetRolesByEmail(ctx context.Context, dollar_1 string) ([]string, error)

func (*Queries) GetRolesForPlaylists

func (q *Queries) GetRolesForPlaylists(ctx context.Context, ids []uuid.UUID) ([]GetRolesForPlaylistsRow, error)

func (*Queries) GetRolesWithCode

func (q *Queries) GetRolesWithCode(ctx context.Context, dollar_1 []string) ([]GetRolesWithCodeRow, error)

func (*Queries) GetSeasons

func (q *Queries) GetSeasons(ctx context.Context, ids []int) ([]common.Season, error)

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 (q *Queries) GetSectionIDsWithMessageIDs(ctx context.Context, dollar_1 []int32) ([]int32, error)

func (*Queries) GetSections

func (q *Queries) GetSections(ctx context.Context, ids []int) ([]common.Section, error)

GetSections returns a list of sections retrieved by ids

func (*Queries) GetShorts

func (q *Queries) GetShorts(ctx context.Context, ids []uuid.UUID) ([]common.Short, error)

GetShorts returns shorts by IDs from the database

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) GetShows

func (q *Queries) GetShows(ctx context.Context, ids []int) ([]common.Show, error)

GetShows returns shows

func (*Queries) GetSongs

func (q *Queries) GetSongs(ctx context.Context, ids []uuid.UUID) ([]common.Song, error)

GetSongs returns songs for the specified ids

func (*Queries) GetStreamsForAssets

func (q *Queries) GetStreamsForAssets(ctx context.Context, ids []int) ([]common.Stream, error)

GetStreamsForAssets returns streams by assetId

func (*Queries) GetStreamsForEpisodes

func (q *Queries) GetStreamsForEpisodes(ctx context.Context, ids []int) ([]common.Stream, error)

GetStreamsForEpisodes returns files for the specified episodes

func (*Queries) GetSurveyIDFromQuestionID

func (q *Queries) GetSurveyIDFromQuestionID(ctx context.Context, id uuid.UUID) (uuid.UUID, error)

func (*Queries) GetSurveyQuestions

func (q *Queries) GetSurveyQuestions(ctx context.Context, ids []uuid.UUID) ([]common.SurveyQuestion, error)

GetSurveyQuestions returns survey questions

func (*Queries) GetSurveys

func (q *Queries) GetSurveys(ctx context.Context, ids []uuid.UUID) ([]common.Survey, error)

GetSurveys returns surveys

func (*Queries) GetTags

func (q *Queries) GetTags(ctx context.Context, ids []int) ([]common.Tag, error)

GetTags returns a list of tags retrieved by ids

func (*Queries) GetTargets

func (q *Queries) GetTargets(ctx context.Context, dollar_1 []uuid.UUID) ([]GetTargetsRow, error)

func (*Queries) GetTasks

func (q *Queries) GetTasks(ctx context.Context, ids []uuid.UUID) ([]common.Task, error)

GetTasks returns tasks by ids

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) GetTopics

func (q *Queries) GetTopics(ctx context.Context, ids []uuid.UUID) ([]common.StudyTopic, error)

GetTopics returns studies

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 (q *Queries) GetUserIDByEmail(ctx context.Context, email null_v4.String) (uuid.UUID, error)

func (*Queries) GetUserIDsWithRoles

func (q *Queries) GetUserIDsWithRoles(ctx context.Context, roles []string) ([]string, error)

func (*Queries) GetUsers

func (q *Queries) GetUsers(ctx context.Context, ids []string) ([]common.User, error)

GetUsers from database

func (*Queries) InsertAsset

func (q *Queries) InsertAsset(ctx context.Context, arg InsertAssetParams) (int32, error)

func (*Queries) InsertAssetFile

func (q *Queries) InsertAssetFile(ctx context.Context, arg InsertAssetFileParams) (int32, error)

func (*Queries) InsertAssetStream

func (q *Queries) InsertAssetStream(ctx context.Context, arg InsertAssetStreamParams) (int32, error)

func (*Queries) InsertAssetStreamAudioLanguage

func (q *Queries) InsertAssetStreamAudioLanguage(ctx context.Context, arg InsertAssetStreamAudioLanguageParams) (int32, error)

func (*Queries) InsertAssetStreamSubtitleLanguage

func (q *Queries) InsertAssetStreamSubtitleLanguage(ctx context.Context, arg InsertAssetStreamSubtitleLanguageParams) (int32, error)

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) InsertTimedMetadata

func (q *Queries) InsertTimedMetadata(ctx context.Context, arg InsertTimedMetadataParams) error

func (*Queries) InsertTimedMetadataPerson

func (q *Queries) InsertTimedMetadataPerson(ctx context.Context, arg InsertTimedMetadataPersonParams) error

func (*Queries) ListAchievementGroupOriginalTranslations

func (q *Queries) ListAchievementGroupOriginalTranslations(ctx context.Context) ([]ListAchievementGroupOriginalTranslationsRow, error)

func (*Queries) ListAchievementGroupTranslations

func (q *Queries) ListAchievementGroupTranslations(ctx context.Context, language string) ([]ListAchievementGroupTranslationsRow, error)

func (*Queries) ListAchievementGroups

func (q *Queries) ListAchievementGroups(ctx context.Context) ([]uuid.UUID, error)

func (*Queries) ListAchievementOriginalTranslations

func (q *Queries) ListAchievementOriginalTranslations(ctx context.Context) ([]ListAchievementOriginalTranslationsRow, error)

func (*Queries) ListAchievementTranslations

func (q *Queries) ListAchievementTranslations(ctx context.Context, language string) ([]ListAchievementTranslationsRow, error)

func (*Queries) ListAchievements

func (q *Queries) ListAchievements(ctx context.Context) ([]uuid.UUID, error)

func (*Queries) ListAllPermittedShowIDs

func (q *Queries) ListAllPermittedShowIDs(ctx context.Context, permissions []string) ([]int, error)

ListAllPermittedShowIDs returns a list of common.Show

func (*Queries) ListAlternativeTranslations

func (q *Queries) ListAlternativeTranslations(ctx context.Context, language string) ([]ListAlternativeTranslationsRow, error)

func (*Queries) ListApplications

func (q *Queries) ListApplications(ctx context.Context) ([]common.Application, error)

ListApplications returns a list of applications

func (*Queries) ListAssets

func (q *Queries) ListAssets(ctx context.Context) ([]Asset, error)

func (*Queries) ListCalendarEntryTranslations

func (q *Queries) ListCalendarEntryTranslations(ctx context.Context, language string) ([]ListCalendarEntryTranslationsRow, error)

func (*Queries) ListDevices

func (q *Queries) ListDevices(ctx context.Context) ([]common.Device, error)

ListDevices return all devices

func (*Queries) ListDevicesInApplicationGroup

func (q *Queries) ListDevicesInApplicationGroup(ctx context.Context, groupID uuid.UUID) ([]ListDevicesInApplicationGroupRow, error)

func (*Queries) ListEpisodeTranslations

func (q *Queries) ListEpisodeTranslations(ctx context.Context, language string) ([]ListEpisodeTranslationsRow, error)

func (*Queries) ListEpisodes

func (q *Queries) ListEpisodes(ctx context.Context) ([]common.Episode, error)

ListEpisodes returns a list of common.Episode

func (*Queries) ListEventTranslations

func (q *Queries) ListEventTranslations(ctx context.Context, language string) ([]ListEventTranslationsRow, error)

func (*Queries) ListEvents

func (q *Queries) ListEvents(ctx context.Context) ([]common.Event, error)

ListEvents returns all CalendarEvents

func (*Queries) ListFAQCategoryIDsForRoles

func (q *Queries) ListFAQCategoryIDsForRoles(ctx context.Context, roles []string) ([]uuid.UUID, error)

func (*Queries) ListFAQCategoryOriginalTranslations

func (q *Queries) ListFAQCategoryOriginalTranslations(ctx context.Context) ([]ListFAQCategoryOriginalTranslationsRow, error)

func (*Queries) ListFAQCategoryTranslations

func (q *Queries) ListFAQCategoryTranslations(ctx context.Context, language string) ([]ListFAQCategoryTranslationsRow, error)

func (*Queries) ListFAQOriginalTranslations

func (q *Queries) ListFAQOriginalTranslations(ctx context.Context) ([]ListFAQOriginalTranslationsRow, error)

-------- FAQ --- --------

func (*Queries) ListFAQTranslations

func (q *Queries) ListFAQTranslations(ctx context.Context, language string) ([]ListFAQTranslationsRow, error)

func (*Queries) ListGameOriginalTranslations

func (q *Queries) ListGameOriginalTranslations(ctx context.Context) ([]ListGameOriginalTranslationsRow, error)

func (*Queries) ListGameTranslations

func (q *Queries) ListGameTranslations(ctx context.Context, language string) ([]ListGameTranslationsRow, error)

func (*Queries) ListLessonOriginalTranslations

func (q *Queries) ListLessonOriginalTranslations(ctx context.Context) ([]ListLessonOriginalTranslationsRow, error)

func (*Queries) ListLessonTranslations

func (q *Queries) ListLessonTranslations(ctx context.Context, language string) ([]ListLessonTranslationsRow, error)

func (*Queries) ListLinkTranslations

func (q *Queries) ListLinkTranslations(ctx context.Context, language string) ([]ListLinkTranslationsRow, error)

func (*Queries) ListMediaItemOriginalTranslations

func (q *Queries) ListMediaItemOriginalTranslations(ctx context.Context) ([]ListMediaItemOriginalTranslationsRow, error)

func (*Queries) ListMediaItemTranslations

func (q *Queries) ListMediaItemTranslations(ctx context.Context, language string) ([]ListMediaItemTranslationsRow, error)

func (*Queries) ListPageTranslations

func (q *Queries) ListPageTranslations(ctx context.Context, language string) ([]ListPageTranslationsRow, error)

func (*Queries) ListPages

func (q *Queries) ListPages(ctx context.Context) ([]common.Page, error)

ListPages returns a list of pages

func (*Queries) ListPlaylistOriginalTranslations

func (q *Queries) ListPlaylistOriginalTranslations(ctx context.Context) ([]ListPlaylistOriginalTranslationsRow, error)

func (*Queries) ListPlaylistTranslations

func (q *Queries) ListPlaylistTranslations(ctx context.Context, language string) ([]ListPlaylistTranslationsRow, error)

func (*Queries) ListPlaylists

func (q *Queries) ListPlaylists(ctx context.Context) ([]common.Playlist, error)

ListPlaylists returns playlists from the database

func (*Queries) ListQuestionAlternativesOriginalTranslations

func (q *Queries) ListQuestionAlternativesOriginalTranslations(ctx context.Context) ([]ListQuestionAlternativesOriginalTranslationsRow, error)

func (*Queries) ListSeasonTranslations

func (q *Queries) ListSeasonTranslations(ctx context.Context, language string) ([]ListSeasonTranslationsRow, error)

func (*Queries) ListSeasons

func (q *Queries) ListSeasons(ctx context.Context) ([]common.Season, error)

ListSeasons returns a list of common.Season

func (*Queries) ListSectionTranslations

func (q *Queries) ListSectionTranslations(ctx context.Context, language string) ([]ListSectionTranslationsRow, error)

func (*Queries) ListSegmentedShortIDsForRoles

func (q *Queries) ListSegmentedShortIDsForRoles(ctx context.Context, roles []string) ([]ListSegmentedShortIDsForRolesRow, error)

func (*Queries) ListShowTranslations

func (q *Queries) ListShowTranslations(ctx context.Context, language string) ([]ListShowTranslationsRow, error)

func (*Queries) ListShows

func (q *Queries) ListShows(ctx context.Context) ([]common.Show, error)

ListShows returns a list of common.Show

func (*Queries) ListStudyTopicOriginalTranslations

func (q *Queries) ListStudyTopicOriginalTranslations(ctx context.Context) ([]ListStudyTopicOriginalTranslationsRow, error)

func (*Queries) ListStudyTopicTranslations

func (q *Queries) ListStudyTopicTranslations(ctx context.Context, language string) ([]ListStudyTopicTranslationsRow, error)

func (*Queries) ListSubscriptions

func (q *Queries) ListSubscriptions(ctx context.Context, profileID uuid.UUID) ([]string, error)

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 (q *Queries) ListSurveyQuestionTranslations(ctx context.Context, language string) ([]ListSurveyQuestionTranslationsRow, error)

func (*Queries) ListSurveyTranslations

func (q *Queries) ListSurveyTranslations(ctx context.Context, language string) ([]ListSurveyTranslationsRow, error)

func (*Queries) ListTags

func (q *Queries) ListTags(ctx context.Context) ([]common.Tag, error)

ListTags returns a list of tags

func (*Queries) ListTaskOriginalTranslations

func (q *Queries) ListTaskOriginalTranslations(ctx context.Context) ([]ListTaskOriginalTranslationsRow, error)

func (*Queries) ListTaskTranslations

func (q *Queries) ListTaskTranslations(ctx context.Context, language string) ([]ListTaskTranslationsRow, error)

func (*Queries) NewestPreviousAssetByMediabankenID

func (q *Queries) NewestPreviousAssetByMediabankenID(ctx context.Context, mediabankenID string) (Asset, error)

func (*Queries) NotificationMarkSendCompleted

func (q *Queries) NotificationMarkSendCompleted(ctx context.Context, id uuid.UUID) error

func (*Queries) NotificationMarkSendStarted

func (q *Queries) NotificationMarkSendStarted(ctx context.Context, id uuid.UUID) error

func (*Queries) ProfileQueries

func (q *Queries) ProfileQueries(profileID uuid.UUID) *ProfileQueries

ProfileQueries returns queries for profile

func (*Queries) RefreshView

func (q *Queries) RefreshView(ctx context.Context, view string) error

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

func (q *Queries) SaveDevice(ctx context.Context, device common.Device) error

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

func (q *Queries) SetImageCDNDomain(domain string)

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) 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

func (*Queries) WithTx

func (q *Queries) WithTx(tx *sql.Tx) *Queries

type Questionalternative

type Questionalternative struct {
	ID        uuid.UUID      `db:"id" json:"id"`
	TaskID    uuid.NullUUID  `db:"task_id" json:"taskId"`
	Sort      null_v4.Int    `db:"sort" json:"sort"`
	Title     null_v4.String `db:"title" json:"title"`
	IsCorrect bool           `db:"is_correct" json:"isCorrect"`
}

type QuestionalternativesTranslation

type QuestionalternativesTranslation struct {
	ID                     int32          `db:"id" json:"id"`
	QuestionalternativesID uuid.UUID      `db:"questionalternatives_id" json:"questionalternativesId"`
	LanguagesCode          string         `db:"languages_code" json:"languagesCode"`
	Title                  null_v4.String `db:"title" json:"title"`
}

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 RemoveProgressForMediaIDsParams

type RemoveProgressForMediaIDsParams struct {
	ProfileID uuid.UUID   `db:"profile_id" json:"profileId"`
	ItemIds   []uuid.UUID `db:"item_ids" json:"itemIds"`
}

type RemoveSubscriptionParams

type RemoveSubscriptionParams struct {
	Key       string    `db:"key" json:"key"`
	ProfileID uuid.UUID `db:"profile_id" json:"profileId"`
}

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

func (rq *RoleQueries) GetEpisodeIDsWithRoles(ctx context.Context, ids []int) ([]int, error)

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 (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

func (rq *RoleQueries) GetSeasonIDsWithRoles(ctx context.Context, ids []int) ([]int, error)

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

func (rq *RoleQueries) GetShowIDsWithRoles(ctx context.Context, ids []int) ([]int, error)

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 SeasonAvailability 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"`
}

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 SeasonsTag struct {
	ID        int32       `db:"id" json:"id"`
	SeasonsID null_v4.Int `db:"seasons_id" json:"seasonsId"`
	TagsID    null_v4.Int `db:"tags_id" json:"tagsId"`
}

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 SeasonsUsergroup struct {
	ID             int32  `db:"id" json:"id"`
	SeasonsID      int32  `db:"seasons_id" json:"seasonsId"`
	UsergroupsCode string `db:"usergroups_code" json:"usergroupsCode"`
}

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"`
}

type SectionsTranslation

type SectionsTranslation struct {
	ID            int32          `db:"id" json:"id"`
	LanguagesCode string         `db:"languages_code" json:"languagesCode"`
	SectionsID    int32          `db:"sections_id" json:"sectionsId"`
	Title         null_v4.String `db:"title" json:"title"`
	Description   null_v4.String `db:"description" json:"description"`
}

type SectionsUsergroup

type SectionsUsergroup struct {
	ID             int32  `db:"id" json:"id"`
	SectionsID     int32  `db:"sections_id" json:"sectionsId"`
	UsergroupsCode string `db:"usergroups_code" json:"usergroupsCode"`
}

type SetAchievementAchievedParams

type SetAchievementAchievedParams struct {
	ProfileID     uuid.UUID   `db:"profile_id" json:"profileId"`
	AchievementID uuid.UUID   `db:"achievement_id" json:"achievementId"`
	ConditionIds  []uuid.UUID `db:"condition_ids" json:"conditionIds"`
}

type SetAnswerLockParams

type SetAnswerLockParams struct {
	Locked    bool      `db:"locked" json:"locked"`
	ProfileID uuid.UUID `db:"profile_id" json:"profileId"`
	LessonID  uuid.UUID `db:"lesson_id" json:"lessonId"`
}

type SetTaskCompletedParams

type SetTaskCompletedParams struct {
	ProfileID            uuid.UUID   `db:"profile_id" json:"profileId"`
	TaskID               uuid.UUID   `db:"task_id" json:"taskId"`
	SelectedAlternatives []uuid.UUID `db:"selected_alternatives" json:"selectedAlternatives"`
}

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"`
}

type ShortsUsergroup

type ShortsUsergroup struct {
	ID             int32          `db:"id" json:"id"`
	ShortsID       uuid.NullUUID  `db:"shorts_id" json:"shortsId"`
	UsergroupsCode null_v4.String `db:"usergroups_code" json:"usergroupsCode"`
}

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 ShowAvailability struct {
	ID            int32        `db:"id" json:"id"`
	Published     bool         `db:"published" json:"published"`
	AvailableFrom null_v4.Time `db:"available_from" json:"availableFrom"`
	AvailableTo   null_v4.Time `db:"available_to" json:"availableTo"`
}

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 ShowsTag

type ShowsTag struct {
	ID      int32 `db:"id" json:"id"`
	ShowsID int32 `db:"shows_id" json:"showsId"`
	TagsID  int32 `db:"tags_id" json:"tagsId"`
}

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 ShowsUsergroup struct {
	ID             int32  `db:"id" json:"id"`
	ShowsID        int32  `db:"shows_id" json:"showsId"`
	UsergroupsCode string `db:"usergroups_code" json:"usergroupsCode"`
}

type Song

type Song struct {
	ID           uuid.UUID `db:"id" json:"id"`
	CollectionID uuid.UUID `db:"collection_id" json:"collectionId"`
	Title        string    `db:"title" json:"title"`
	Key          string    `db:"key" json:"key"`
}

type Songcollection

type Songcollection struct {
	ID    uuid.UUID      `db:"id" json:"id"`
	Title null_v4.String `db:"title" json:"title"`
	Key   string         `db:"key" json:"key"`
}

type SongcollectionsTranslation

type SongcollectionsTranslation struct {
	ID                int32          `db:"id" json:"id"`
	SongcollectionsID uuid.UUID      `db:"songcollections_id" json:"songcollectionsId"`
	LanguagesCode     string         `db:"languages_code" json:"languagesCode"`
	Title             null_v4.String `db:"title" json:"title"`
}

type SongsTranslation

type SongsTranslation struct {
	ID            int32     `db:"id" json:"id"`
	SongsID       uuid.UUID `db:"songs_id" json:"songsId"`
	LanguagesCode string    `db:"languages_code" json:"languagesCode"`
	Title         string    `db:"title" json:"title"`
}

type StatsMembersDatum

type StatsMembersDatum struct {
	ID       int32  `db:"id" json:"id"`
	AgeGroup string `db:"age_group" json:"ageGroup"`
	OrgID    int32  `db:"org_id" json:"orgId"`
}

type StatsOrg

type StatsOrg struct {
	ID   int32  `db:"id" json:"id"`
	Name string `db:"name" json:"name"`
	Type string `db:"type" json:"type"`
}

type StatsOrgCount

type StatsOrgCount struct {
	OrgID        int32  `db:"org_id" json:"orgId"`
	CountPersons int32  `db:"count_persons" json:"countPersons"`
	AgeGroup     string `db:"age_group" json:"ageGroup"`
}

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 StudytopicsImage struct {
	ID       uuid.UUID      `db:"id" json:"id"`
	TopicID  uuid.UUID      `db:"topic_id" json:"topicId"`
	File     uuid.UUID      `db:"file" json:"file"`
	Language string         `db:"language" json:"language"`
	Style    null_v4.String `db:"style" json:"style"`
}

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"`
}

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"`
}

type SurveysTranslation

type SurveysTranslation struct {
	ID            int32          `db:"id" json:"id"`
	SurveysID     uuid.UUID      `db:"surveys_id" json:"surveysId"`
	LanguagesCode string         `db:"languages_code" json:"languagesCode"`
	Title         null_v4.String `db:"title" json:"title"`
	Description   null_v4.String `db:"description" json:"description"`
}

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 TagsTranslation struct {
	ID            int32          `db:"id" json:"id"`
	LanguagesCode string         `db:"languages_code" json:"languagesCode"`
	Name          null_v4.String `db:"name" json:"name"`
	TagsID        int32          `db:"tags_id" json:"tagsId"`
}

type Target

type Target struct {
	ID    uuid.UUID      `db:"id" json:"id"`
	Label null_v4.String `db:"label" json:"label"`
	Type  string         `db:"type" json:"type"`
}

type TargetsUsergroup

type TargetsUsergroup struct {
	ID             int32     `db:"id" json:"id"`
	TargetsID      uuid.UUID `db:"targets_id" json:"targetsId"`
	UsergroupsCode string    `db:"usergroups_code" json:"usergroupsCode"`
}

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 TasksImage struct {
	ID       uuid.UUID `db:"id" json:"id"`
	Image    uuid.UUID `db:"image" json:"image"`
	Language string    `db:"language" json:"language"`
	TaskID   uuid.UUID `db:"task_id" json:"taskId"`
}

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 TimedmetadataContribution

type TimedmetadataContribution struct {
	ID              int32         `db:"id" json:"id"`
	TimedmetadataID uuid.NullUUID `db:"timedmetadata_id" json:"timedmetadataId"`
	ContributionsID null_v4.Int   `db:"contributions_id" json:"contributionsId"`
}

type TimedmetadataPerson

type TimedmetadataPerson struct {
	ID              int32     `db:"id" json:"id"`
	TimedmetadataID uuid.UUID `db:"timedmetadata_id" json:"timedmetadataId"`
	PersonsID       uuid.UUID `db:"persons_id" json:"personsId"`
}

type TimedmetadataStyledimage

type TimedmetadataStyledimage struct {
	ID              int32         `db:"id" json:"id"`
	TimedmetadataID uuid.NullUUID `db:"timedmetadata_id" json:"timedmetadataId"`
	StyledimagesID  uuid.NullUUID `db:"styledimages_id" json:"styledimagesId"`
}

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"`
	ChapterType null_v4.String `db:"chapter_type" json:"chapterType"`
	SongID      uuid.NullUUID  `db:"song_id" json:"songId"`
	Seconds     float32        `db:"seconds" json:"seconds"`
	MediaitemID uuid.NullUUID  `db:"mediaitem_id" json:"mediaitemId"`
}

type UpdateAchievementGroupTranslationParams

type UpdateAchievementGroupTranslationParams 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"`
}

type UpdateAchievementTranslationParams

type UpdateAchievementTranslationParams 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"`
}

type UpdateAlternativeTranslationParams

type UpdateAlternativeTranslationParams struct {
	ItemID   uuid.UUID      `db:"item_id" json:"itemId"`
	Language string         `db:"language" json:"language"`
	Title    null_v4.String `db:"title" json:"title"`
}

type UpdateAssetArnParams

type UpdateAssetArnParams struct {
	AwsArn null_v4.String `db:"aws_arn" json:"awsArn"`
	ID     int32          `db:"id" json:"id"`
}

type UpdateAssetStatusParams

type UpdateAssetStatusParams struct {
	Status string `db:"status" json:"status"`
	ID     int32  `db:"id" json:"id"`
}

type UpdateCalendarEntryTranslationParams

type UpdateCalendarEntryTranslationParams struct {
	ItemID      int32          `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"`
}

type UpdateEpisodeTranslationParams

type UpdateEpisodeTranslationParams struct {
	ItemID      int32          `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"`
}

type UpdateEventTranslationParams

type UpdateEventTranslationParams struct {
	ItemID      int32          `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"`
}

type UpdateFAQCategoryTranslationParams

type UpdateFAQCategoryTranslationParams 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"`
}

type UpdateFAQTranslationParams

type UpdateFAQTranslationParams struct {
	ItemID   uuid.UUID      `db:"item_id" json:"itemId"`
	Language string         `db:"language" json:"language"`
	Question null_v4.String `db:"question" json:"question"`
	Answer   null_v4.String `db:"answer" json:"answer"`
}

type UpdateGameTranslationParams

type UpdateGameTranslationParams 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"`
}

type UpdateLessonTranslationParams

type UpdateLessonTranslationParams 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"`
}

type UpdateLinkTranslationParams

type UpdateLinkTranslationParams struct {
	ItemID      int32  `db:"item_id" json:"itemId"`
	Language    string `db:"language" json:"language"`
	Title       string `db:"title" json:"title"`
	Description string `db:"description" json:"description"`
}

type UpdateMediaItemTranslationParams

type UpdateMediaItemTranslationParams 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"`
}

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 UpdatePageTranslationParams

type UpdatePageTranslationParams struct {
	ItemID      int32          `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"`
}

type UpdatePlaylistTranslationParams

type UpdatePlaylistTranslationParams 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"`
}

type UpdateSeasonTranslationParams

type UpdateSeasonTranslationParams struct {
	ItemID      int32          `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"`
}

type UpdateSectionTranslationParams

type UpdateSectionTranslationParams struct {
	ItemID      int32          `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"`
}

type UpdateShowTranslationParams

type UpdateShowTranslationParams struct {
	ItemID      int32          `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"`
}

type UpdateStudyTopicTranslationParams

type UpdateStudyTopicTranslationParams 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"`
}

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"`
}

type UpdateSurveyTranslationParams

type UpdateSurveyTranslationParams 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"`
}

type UpdateTaskTranslationParams

type UpdateTaskTranslationParams 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"`
}

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 UpsertSurveyAnswerParams

type UpsertSurveyAnswerParams struct {
	ProfileID  uuid.UUID `db:"profile_id" json:"profileId"`
	QuestionID uuid.UUID `db:"question_id" json:"questionId"`
}

type UpsertUserCollectionEntryParams

type UpsertUserCollectionEntryParams 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"`
}

type UpsertUserCollectionParams

type UpsertUserCollectionParams struct {
	ID                 uuid.UUID `db:"id" json:"id"`
	ApplicationgroupID uuid.UUID `db:"applicationgroup_id" json:"applicationgroupId"`
	ProfileID          uuid.UUID `db:"profile_id" json:"profileId"`
	MyList             bool      `db:"my_list" json:"myList"`
	Title              string    `db:"title" json:"title"`
}

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 UsersDevice struct {
	Token     string    `db:"token" json:"token"`
	ProfileID uuid.UUID `db:"profile_id" json:"profileId"`
	UpdatedAt time.Time `db:"updated_at" json:"updatedAt"`
	Name      string    `db:"name" json:"name"`
	Languages []string  `db:"languages" json:"languages"`
}

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 UsersProfile struct {
	ID                 uuid.UUID `db:"id" json:"id"`
	UserID             string    `db:"user_id" json:"userId"`
	Name               string    `db:"name" json:"name"`
	ApplicationgroupID uuid.UUID `db:"applicationgroup_id" json:"applicationgroupId"`
}

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 UsersSubscription struct {
	Key       string    `db:"key" json:"key"`
	ProfileID uuid.UUID `db:"profile_id" json:"profileId"`
}

type UsersSurveyquestionanswer

type UsersSurveyquestionanswer struct {
	ProfileID  uuid.UUID `db:"profile_id" json:"profileId"`
	QuestionID uuid.UUID `db:"question_id" json:"questionId"`
	UpdatedAt  time.Time `db:"updated_at" json:"updatedAt"`
}

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) GetKey

func (r UuidTranslationRow) GetKey() string

GetKey for this item

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL