coredb

package
v0.0.0-...-3e181b4 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrBatchAlreadyClosed = errors.New("batch already closed")
)

Functions

This section is empty.

Types

type AddCollectionToGalleryParams

type AddCollectionToGalleryParams struct {
	CollectionID interface{}  `db:"collection_id" json:"collection_id"`
	GalleryID    persist.DBID `db:"gallery_id" json:"gallery_id"`
}

type AddManyFollowsParams

type AddManyFollowsParams struct {
	Ids       []string     `db:"ids" json:"ids"`
	Follower  persist.DBID `db:"follower" json:"follower"`
	Followees []string     `db:"followees" json:"followees"`
}

type AddPiiAccountCreationInfoParams

type AddPiiAccountCreationInfoParams struct {
	UserID    persist.DBID `db:"user_id" json:"user_id"`
	IpAddress string       `db:"ip_address" json:"ip_address"`
}

type AddSocialToUserParams

type AddSocialToUserParams struct {
	UserID  persist.DBID    `db:"user_id" json:"user_id"`
	Socials persist.Socials `db:"socials" json:"socials"`
}

type AddUserRolesParams

type AddUserRolesParams struct {
	UserID persist.DBID `db:"user_id" json:"user_id"`
	Ids    []string     `db:"ids" json:"ids"`
	Roles  []string     `db:"roles" json:"roles"`
}

type Admire

type Admire struct {
	ID          persist.DBID `db:"id" json:"id"`
	Version     int32        `db:"version" json:"version"`
	FeedEventID persist.DBID `db:"feed_event_id" json:"feed_event_id"`
	ActorID     persist.DBID `db:"actor_id" json:"actor_id"`
	Deleted     bool         `db:"deleted" json:"deleted"`
	CreatedAt   time.Time    `db:"created_at" json:"created_at"`
	LastUpdated time.Time    `db:"last_updated" json:"last_updated"`
	PostID      persist.DBID `db:"post_id" json:"post_id"`
	TokenID     persist.DBID `db:"token_id" json:"token_id"`
	CommentID   persist.DBID `db:"comment_id" json:"comment_id"`
}

type AlchemySpamContract

type AlchemySpamContract struct {
	ID        persist.DBID    `db:"id" json:"id"`
	Chain     persist.Chain   `db:"chain" json:"chain"`
	Address   persist.Address `db:"address" json:"address"`
	CreatedAt time.Time       `db:"created_at" json:"created_at"`
	IsSpam    bool            `db:"is_spam" json:"is_spam"`
}

type BlockUserFromFeedParams

type BlockUserFromFeedParams struct {
	ID     persist.DBID         `db:"id" json:"id"`
	UserID persist.DBID         `db:"user_id" json:"user_id"`
	Reason persist.ReportReason `db:"reason" json:"reason"`
}

type BlockUserParams

type BlockUserParams struct {
	ID            persist.DBID `db:"id" json:"id"`
	UserID        persist.DBID `db:"user_id" json:"user_id"`
	BlockedUserID persist.DBID `db:"blocked_user_id" json:"blocked_user_id"`
}

type CheckUserOwnsAllTokenDbidsParams

type CheckUserOwnsAllTokenDbidsParams struct {
	OwnerUserID persist.DBID   `db:"owner_user_id" json:"owner_user_id"`
	TokenIds    []persist.DBID `db:"token_ids" json:"token_ids"`
}

type Collection

type Collection struct {
	ID             persist.DBID                                     `db:"id" json:"id"`
	Deleted        bool                                             `db:"deleted" json:"deleted"`
	OwnerUserID    persist.DBID                                     `db:"owner_user_id" json:"owner_user_id"`
	Nfts           persist.DBIDList                                 `db:"nfts" json:"nfts"`
	Version        sql.NullInt32                                    `db:"version" json:"version"`
	LastUpdated    time.Time                                        `db:"last_updated" json:"last_updated"`
	CreatedAt      time.Time                                        `db:"created_at" json:"created_at"`
	Hidden         bool                                             `db:"hidden" json:"hidden"`
	CollectorsNote sql.NullString                                   `db:"collectors_note" json:"collectors_note"`
	Name           sql.NullString                                   `db:"name" json:"name"`
	Layout         persist.TokenLayout                              `db:"layout" json:"layout"`
	TokenSettings  map[persist.DBID]persist.CollectionTokenSettings `db:"token_settings" json:"token_settings"`
	GalleryID      persist.DBID                                     `db:"gallery_id" json:"gallery_id"`
}

type Comment

type Comment struct {
	ID                persist.DBID `db:"id" json:"id"`
	Version           int32        `db:"version" json:"version"`
	FeedEventID       persist.DBID `db:"feed_event_id" json:"feed_event_id"`
	ActorID           persist.DBID `db:"actor_id" json:"actor_id"`
	ReplyTo           persist.DBID `db:"reply_to" json:"reply_to"`
	Comment           string       `db:"comment" json:"comment"`
	Deleted           bool         `db:"deleted" json:"deleted"`
	CreatedAt         time.Time    `db:"created_at" json:"created_at"`
	LastUpdated       time.Time    `db:"last_updated" json:"last_updated"`
	PostID            persist.DBID `db:"post_id" json:"post_id"`
	Removed           bool         `db:"removed" json:"removed"`
	TopLevelCommentID persist.DBID `db:"top_level_comment_id" json:"top_level_comment_id"`
}

type Community

type Community struct {
	ID                      persist.DBID          `db:"id" json:"id"`
	Version                 int32                 `db:"version" json:"version"`
	CommunityType           persist.CommunityType `db:"community_type" json:"community_type"`
	Key1                    string                `db:"key1" json:"key1"`
	Key2                    string                `db:"key2" json:"key2"`
	Key3                    string                `db:"key3" json:"key3"`
	Key4                    string                `db:"key4" json:"key4"`
	Name                    string                `db:"name" json:"name"`
	OverrideName            sql.NullString        `db:"override_name" json:"override_name"`
	Description             string                `db:"description" json:"description"`
	OverrideDescription     sql.NullString        `db:"override_description" json:"override_description"`
	ProfileImageUrl         sql.NullString        `db:"profile_image_url" json:"profile_image_url"`
	OverrideProfileImageUrl sql.NullString        `db:"override_profile_image_url" json:"override_profile_image_url"`
	BadgeUrl                sql.NullString        `db:"badge_url" json:"badge_url"`
	OverrideBadgeUrl        sql.NullString        `db:"override_badge_url" json:"override_badge_url"`
	ContractID              persist.DBID          `db:"contract_id" json:"contract_id"`
	CreatedAt               time.Time             `db:"created_at" json:"created_at"`
	LastUpdated             time.Time             `db:"last_updated" json:"last_updated"`
	Deleted                 bool                  `db:"deleted" json:"deleted"`
	WebsiteUrl              sql.NullString        `db:"website_url" json:"website_url"`
	OverrideWebsiteUrl      sql.NullString        `db:"override_website_url" json:"override_website_url"`
	MintUrl                 sql.NullString        `db:"mint_url" json:"mint_url"`
	OverrideMintUrl         sql.NullString        `db:"override_mint_url" json:"override_mint_url"`
}

type CommunityContractProvider

type CommunityContractProvider struct {
	ID              persist.DBID          `db:"id" json:"id"`
	Version         int32                 `db:"version" json:"version"`
	ContractID      persist.DBID          `db:"contract_id" json:"contract_id"`
	CommunityType   persist.CommunityType `db:"community_type" json:"community_type"`
	IsValidProvider bool                  `db:"is_valid_provider" json:"is_valid_provider"`
	CreatedAt       time.Time             `db:"created_at" json:"created_at"`
	LastUpdated     time.Time             `db:"last_updated" json:"last_updated"`
	Deleted         bool                  `db:"deleted" json:"deleted"`
}

type CommunityCreator

type CommunityCreator struct {
	ID                    persist.DBID                 `db:"id" json:"id"`
	Version               int32                        `db:"version" json:"version"`
	CreatorType           persist.CommunityCreatorType `db:"creator_type" json:"creator_type"`
	CommunityID           persist.DBID                 `db:"community_id" json:"community_id"`
	CreatorUserID         persist.DBID                 `db:"creator_user_id" json:"creator_user_id"`
	CreatorAddress        persist.Address              `db:"creator_address" json:"creator_address"`
	CreatorAddressL1Chain persist.L1Chain              `db:"creator_address_l1_chain" json:"creator_address_l1_chain"`
	CreatorAddressChain   persist.Chain                `db:"creator_address_chain" json:"creator_address_chain"`
	CreatedAt             time.Time                    `db:"created_at" json:"created_at"`
	LastUpdated           time.Time                    `db:"last_updated" json:"last_updated"`
	Deleted               bool                         `db:"deleted" json:"deleted"`
}

type CommunityGallery

type CommunityGallery struct {
	UserID                persist.DBID      `db:"user_id" json:"user_id"`
	CommunityID           persist.DBID      `db:"community_id" json:"community_id"`
	GalleryID             persist.DBID      `db:"gallery_id" json:"gallery_id"`
	GalleryRelevance      int32             `db:"gallery_relevance" json:"gallery_relevance"`
	TokenIds              persist.DBIDList  `db:"token_ids" json:"token_ids"`
	TokenDefinitionIds    persist.DBIDList  `db:"token_definition_ids" json:"token_definition_ids"`
	TokenMedias           persist.MediaList `db:"token_medias" json:"token_medias"`
	TokenMediaLastUpdated interface{}       `db:"token_media_last_updated" json:"token_media_last_updated"`
}

type CommunityRelevance

type CommunityRelevance struct {
	ID    persist.DBID `db:"id" json:"id"`
	Score int32        `db:"score" json:"score"`
}

type Contract

type Contract struct {
	ID                    persist.DBID    `db:"id" json:"id"`
	Deleted               bool            `db:"deleted" json:"deleted"`
	Version               sql.NullInt32   `db:"version" json:"version"`
	CreatedAt             time.Time       `db:"created_at" json:"created_at"`
	LastUpdated           time.Time       `db:"last_updated" json:"last_updated"`
	Name                  sql.NullString  `db:"name" json:"name"`
	Symbol                sql.NullString  `db:"symbol" json:"symbol"`
	Address               persist.Address `db:"address" json:"address"`
	CreatorAddress        persist.Address `db:"creator_address" json:"creator_address"`
	Chain                 persist.Chain   `db:"chain" json:"chain"`
	ProfileBannerUrl      sql.NullString  `db:"profile_banner_url" json:"profile_banner_url"`
	ProfileImageUrl       sql.NullString  `db:"profile_image_url" json:"profile_image_url"`
	BadgeUrl              sql.NullString  `db:"badge_url" json:"badge_url"`
	Description           sql.NullString  `db:"description" json:"description"`
	OwnerAddress          persist.Address `db:"owner_address" json:"owner_address"`
	IsProviderMarkedSpam  bool            `db:"is_provider_marked_spam" json:"is_provider_marked_spam"`
	ParentID              persist.DBID    `db:"parent_id" json:"parent_id"`
	OverrideCreatorUserID persist.DBID    `db:"override_creator_user_id" json:"override_creator_user_id"`
	L1Chain               persist.L1Chain `db:"l1_chain" json:"l1_chain"`
}

type ContractCommunityMembership

type ContractCommunityMembership struct {
	ID          persist.DBID `db:"id" json:"id"`
	Version     int32        `db:"version" json:"version"`
	ContractID  persist.DBID `db:"contract_id" json:"contract_id"`
	CommunityID persist.DBID `db:"community_id" json:"community_id"`
	CreatedAt   time.Time    `db:"created_at" json:"created_at"`
	LastUpdated time.Time    `db:"last_updated" json:"last_updated"`
	Deleted     bool         `db:"deleted" json:"deleted"`
}

type ContractCreator

type ContractCreator struct {
	ContractID     persist.DBID    `db:"contract_id" json:"contract_id"`
	CreatorUserID  persist.DBID    `db:"creator_user_id" json:"creator_user_id"`
	Chain          persist.Chain   `db:"chain" json:"chain"`
	CreatorAddress persist.Address `db:"creator_address" json:"creator_address"`
}

type CountAdmiresByCommentIDBatchBatchResults

type CountAdmiresByCommentIDBatchBatchResults struct {
	// contains filtered or unexported fields
}

func (*CountAdmiresByCommentIDBatchBatchResults) Close

func (*CountAdmiresByCommentIDBatchBatchResults) QueryRow

type CountAdmiresByFeedEventIDBatchBatchResults

type CountAdmiresByFeedEventIDBatchBatchResults struct {
	// contains filtered or unexported fields
}

func (*CountAdmiresByFeedEventIDBatchBatchResults) Close

func (*CountAdmiresByFeedEventIDBatchBatchResults) QueryRow

type CountAdmiresByPostIDBatchBatchResults

type CountAdmiresByPostIDBatchBatchResults struct {
	// contains filtered or unexported fields
}

func (*CountAdmiresByPostIDBatchBatchResults) Close

func (*CountAdmiresByPostIDBatchBatchResults) QueryRow

func (b *CountAdmiresByPostIDBatchBatchResults) QueryRow(f func(int, int64, error))

type CountAdmiresByTokenIDBatchBatchResults

type CountAdmiresByTokenIDBatchBatchResults struct {
	// contains filtered or unexported fields
}

func (*CountAdmiresByTokenIDBatchBatchResults) Close

func (*CountAdmiresByTokenIDBatchBatchResults) QueryRow

func (b *CountAdmiresByTokenIDBatchBatchResults) QueryRow(f func(int, int64, error))

type CountCommentsByFeedEventIDBatchBatchResults

type CountCommentsByFeedEventIDBatchBatchResults struct {
	// contains filtered or unexported fields
}

func (*CountCommentsByFeedEventIDBatchBatchResults) Close

func (*CountCommentsByFeedEventIDBatchBatchResults) QueryRow

type CountCommentsByPostIDBatchBatchResults

type CountCommentsByPostIDBatchBatchResults struct {
	// contains filtered or unexported fields
}

func (*CountCommentsByPostIDBatchBatchResults) Close

func (*CountCommentsByPostIDBatchBatchResults) QueryRow

func (b *CountCommentsByPostIDBatchBatchResults) QueryRow(f func(int, int64, error))

type CountGalleriesDisplayingCommunityIDBatchBatchResults

type CountGalleriesDisplayingCommunityIDBatchBatchResults struct {
	// contains filtered or unexported fields
}

func (*CountGalleriesDisplayingCommunityIDBatchBatchResults) Close

func (*CountGalleriesDisplayingCommunityIDBatchBatchResults) QueryRow

type CountInteractionsByFeedEventIDBatchBatchResults

type CountInteractionsByFeedEventIDBatchBatchResults struct {
	// contains filtered or unexported fields
}

func (*CountInteractionsByFeedEventIDBatchBatchResults) Close

func (*CountInteractionsByFeedEventIDBatchBatchResults) Query

type CountInteractionsByFeedEventIDBatchParams

type CountInteractionsByFeedEventIDBatchParams struct {
	AdmireTag   int32        `db:"admire_tag" json:"admire_tag"`
	FeedEventID persist.DBID `db:"feed_event_id" json:"feed_event_id"`
	CommentTag  int32        `db:"comment_tag" json:"comment_tag"`
}

type CountInteractionsByFeedEventIDBatchRow

type CountInteractionsByFeedEventIDBatchRow struct {
	Count int64 `db:"count" json:"count"`
	Tag   int32 `db:"tag" json:"tag"`
}

type CountInteractionsByPostIDBatchBatchResults

type CountInteractionsByPostIDBatchBatchResults struct {
	// contains filtered or unexported fields
}

func (*CountInteractionsByPostIDBatchBatchResults) Close

func (*CountInteractionsByPostIDBatchBatchResults) Query

type CountInteractionsByPostIDBatchParams

type CountInteractionsByPostIDBatchParams struct {
	AdmireTag  int32        `db:"admire_tag" json:"admire_tag"`
	PostID     persist.DBID `db:"post_id" json:"post_id"`
	CommentTag int32        `db:"comment_tag" json:"comment_tag"`
}

type CountInteractionsByPostIDBatchRow

type CountInteractionsByPostIDBatchRow struct {
	Count int64 `db:"count" json:"count"`
	Tag   int32 `db:"tag" json:"tag"`
}

type CountOwnersByContractIdParams

type CountOwnersByContractIdParams struct {
	ID               persist.DBID `db:"id" json:"id"`
	GalleryUsersOnly bool         `db:"gallery_users_only" json:"gallery_users_only"`
}

type CountRepliesByCommentIDBatchBatchResults

type CountRepliesByCommentIDBatchBatchResults struct {
	// contains filtered or unexported fields
}

func (*CountRepliesByCommentIDBatchBatchResults) Close

func (*CountRepliesByCommentIDBatchBatchResults) QueryRow

type CountSharedCommunitiesParams

type CountSharedCommunitiesParams struct {
	UserAID persist.DBID `db:"user_a_id" json:"user_a_id"`
	UserBID persist.DBID `db:"user_b_id" json:"user_b_id"`
}

type CountSharedFollowsParams

type CountSharedFollowsParams struct {
	Follower persist.DBID `db:"follower" json:"follower"`
	Followee persist.DBID `db:"followee" json:"followee"`
}

type CountSocialConnectionsParams

type CountSocialConnectionsParams struct {
	SocialIds       []string     `db:"social_ids" json:"social_ids"`
	Social          string       `db:"social" json:"social"`
	UserID          persist.DBID `db:"user_id" json:"user_id"`
	OnlyUnfollowing bool         `db:"only_unfollowing" json:"only_unfollowing"`
}

type CountTokensByContractIdParams

type CountTokensByContractIdParams struct {
	ID               persist.DBID `db:"id" json:"id"`
	GalleryUsersOnly bool         `db:"gallery_users_only" json:"gallery_users_only"`
}

type CreateAdmireEventParams

type CreateAdmireEventParams struct {
	ID             persist.DBID         `db:"id" json:"id"`
	ActorID        sql.NullString       `db:"actor_id" json:"actor_id"`
	Action         persist.Action       `db:"action" json:"action"`
	ResourceTypeID persist.ResourceType `db:"resource_type_id" json:"resource_type_id"`
	AdmireID       persist.DBID         `db:"admire_id" json:"admire_id"`
	SubjectID      persist.DBID         `db:"subject_id" json:"subject_id"`
	Data           persist.EventData    `db:"data" json:"data"`
	GroupID        sql.NullString       `db:"group_id" json:"group_id"`
	Caption        sql.NullString       `db:"caption" json:"caption"`
	FeedEvent      sql.NullString       `db:"feed_event" json:"feed_event"`
	Post           sql.NullString       `db:"post" json:"post"`
	Token          sql.NullString       `db:"token" json:"token"`
	Comment        sql.NullString       `db:"comment" json:"comment"`
}

type CreateAdmireNotificationParams

type CreateAdmireNotificationParams struct {
	ID        persist.DBID             `db:"id" json:"id"`
	OwnerID   persist.DBID             `db:"owner_id" json:"owner_id"`
	Action    persist.Action           `db:"action" json:"action"`
	Data      persist.NotificationData `db:"data" json:"data"`
	EventIds  persist.DBIDList         `db:"event_ids" json:"event_ids"`
	FeedEvent sql.NullString           `db:"feed_event" json:"feed_event"`
	Post      sql.NullString           `db:"post" json:"post"`
	Token     sql.NullString           `db:"token" json:"token"`
}

type CreateAnnouncementNotificationsParams

type CreateAnnouncementNotificationsParams struct {
	Action   persist.Action           `db:"action" json:"action"`
	Data     persist.NotificationData `db:"data" json:"data"`
	EventIds persist.DBIDList         `db:"event_ids" json:"event_ids"`
	Internal string                   `db:"internal" json:"internal"`
	Ids      []string                 `db:"ids" json:"ids"`
}

type CreateCollectionEventParams

type CreateCollectionEventParams struct {
	ID             persist.DBID         `db:"id" json:"id"`
	ActorID        sql.NullString       `db:"actor_id" json:"actor_id"`
	Action         persist.Action       `db:"action" json:"action"`
	ResourceTypeID persist.ResourceType `db:"resource_type_id" json:"resource_type_id"`
	CollectionID   persist.DBID         `db:"collection_id" json:"collection_id"`
	Data           persist.EventData    `db:"data" json:"data"`
	Caption        sql.NullString       `db:"caption" json:"caption"`
	GroupID        sql.NullString       `db:"group_id" json:"group_id"`
	GalleryID      persist.DBID         `db:"gallery_id" json:"gallery_id"`
}

type CreateCollectionParams

type CreateCollectionParams struct {
	ID             persist.DBID                                     `db:"id" json:"id"`
	Name           sql.NullString                                   `db:"name" json:"name"`
	CollectorsNote sql.NullString                                   `db:"collectors_note" json:"collectors_note"`
	OwnerUserID    persist.DBID                                     `db:"owner_user_id" json:"owner_user_id"`
	GalleryID      persist.DBID                                     `db:"gallery_id" json:"gallery_id"`
	Layout         persist.TokenLayout                              `db:"layout" json:"layout"`
	Nfts           persist.DBIDList                                 `db:"nfts" json:"nfts"`
	Hidden         bool                                             `db:"hidden" json:"hidden"`
	TokenSettings  map[persist.DBID]persist.CollectionTokenSettings `db:"token_settings" json:"token_settings"`
}

type CreateCommentAdmireParams

type CreateCommentAdmireParams struct {
	ID        persist.DBID `db:"id" json:"id"`
	CommentID persist.DBID `db:"comment_id" json:"comment_id"`
	ActorID   persist.DBID `db:"actor_id" json:"actor_id"`
}

type CreateCommentEventParams

type CreateCommentEventParams struct {
	ID             persist.DBID         `db:"id" json:"id"`
	ActorID        sql.NullString       `db:"actor_id" json:"actor_id"`
	Action         persist.Action       `db:"action" json:"action"`
	ResourceTypeID persist.ResourceType `db:"resource_type_id" json:"resource_type_id"`
	CommentID      persist.DBID         `db:"comment_id" json:"comment_id"`
	SubjectID      persist.DBID         `db:"subject_id" json:"subject_id"`
	Data           persist.EventData    `db:"data" json:"data"`
	GroupID        sql.NullString       `db:"group_id" json:"group_id"`
	Caption        sql.NullString       `db:"caption" json:"caption"`
	FeedEvent      sql.NullString       `db:"feed_event" json:"feed_event"`
	Post           sql.NullString       `db:"post" json:"post"`
	Mention        sql.NullString       `db:"mention" json:"mention"`
}

type CreateCommentNotificationParams

type CreateCommentNotificationParams struct {
	ID        persist.DBID             `db:"id" json:"id"`
	OwnerID   persist.DBID             `db:"owner_id" json:"owner_id"`
	Action    persist.Action           `db:"action" json:"action"`
	Data      persist.NotificationData `db:"data" json:"data"`
	EventIds  persist.DBIDList         `db:"event_ids" json:"event_ids"`
	CommentID persist.DBID             `db:"comment_id" json:"comment_id"`
	FeedEvent sql.NullString           `db:"feed_event" json:"feed_event"`
	Post      sql.NullString           `db:"post" json:"post"`
}

type CreateCommunityEventParams

type CreateCommunityEventParams struct {
	ID             persist.DBID         `db:"id" json:"id"`
	ActorID        sql.NullString       `db:"actor_id" json:"actor_id"`
	Action         persist.Action       `db:"action" json:"action"`
	ResourceTypeID persist.ResourceType `db:"resource_type_id" json:"resource_type_id"`
	CommunityID    persist.DBID         `db:"community_id" json:"community_id"`
	Data           persist.EventData    `db:"data" json:"data"`
	GroupID        sql.NullString       `db:"group_id" json:"group_id"`
	Caption        sql.NullString       `db:"caption" json:"caption"`
	Post           sql.NullString       `db:"post" json:"post"`
	Comment        sql.NullString       `db:"comment" json:"comment"`
	FeedEvent      sql.NullString       `db:"feed_event" json:"feed_event"`
	Mention        sql.NullString       `db:"mention" json:"mention"`
}

type CreateCommunityNotificationParams

type CreateCommunityNotificationParams struct {
	ID          persist.DBID             `db:"id" json:"id"`
	OwnerID     persist.DBID             `db:"owner_id" json:"owner_id"`
	Action      persist.Action           `db:"action" json:"action"`
	Data        persist.NotificationData `db:"data" json:"data"`
	EventIds    persist.DBIDList         `db:"event_ids" json:"event_ids"`
	CommunityID persist.DBID             `db:"community_id" json:"community_id"`
	MentionID   persist.DBID             `db:"mention_id" json:"mention_id"`
	FeedEvent   sql.NullString           `db:"feed_event" json:"feed_event"`
	Post        sql.NullString           `db:"post" json:"post"`
	Comment     sql.NullString           `db:"comment" json:"comment"`
}

type CreateDataOnlyEventParams

type CreateDataOnlyEventParams struct {
	ID             persist.DBID         `db:"id" json:"id"`
	ActorID        sql.NullString       `db:"actor_id" json:"actor_id"`
	Action         persist.Action       `db:"action" json:"action"`
	ResourceTypeID persist.ResourceType `db:"resource_type_id" json:"resource_type_id"`
	Data           persist.EventData    `db:"data" json:"data"`
	GroupID        sql.NullString       `db:"group_id" json:"group_id"`
	Caption        sql.NullString       `db:"caption" json:"caption"`
	SubjectID      persist.DBID         `db:"subject_id" json:"subject_id"`
}

type CreateFeedEventAdmireParams

type CreateFeedEventAdmireParams struct {
	ID          persist.DBID `db:"id" json:"id"`
	FeedEventID persist.DBID `db:"feed_event_id" json:"feed_event_id"`
	ActorID     persist.DBID `db:"actor_id" json:"actor_id"`
}

type CreateFeedEventParams

type CreateFeedEventParams struct {
	ID        persist.DBID          `db:"id" json:"id"`
	OwnerID   persist.DBID          `db:"owner_id" json:"owner_id"`
	Action    persist.Action        `db:"action" json:"action"`
	Data      persist.FeedEventData `db:"data" json:"data"`
	EventTime time.Time             `db:"event_time" json:"event_time"`
	EventIds  persist.DBIDList      `db:"event_ids" json:"event_ids"`
	GroupID   sql.NullString        `db:"group_id" json:"group_id"`
	Caption   sql.NullString        `db:"caption" json:"caption"`
}

type CreateGalleryEventParams

type CreateGalleryEventParams struct {
	ID             persist.DBID         `db:"id" json:"id"`
	ActorID        sql.NullString       `db:"actor_id" json:"actor_id"`
	Action         persist.Action       `db:"action" json:"action"`
	ResourceTypeID persist.ResourceType `db:"resource_type_id" json:"resource_type_id"`
	GalleryID      persist.DBID         `db:"gallery_id" json:"gallery_id"`
	Data           persist.EventData    `db:"data" json:"data"`
	ExternalID     sql.NullString       `db:"external_id" json:"external_id"`
	GroupID        sql.NullString       `db:"group_id" json:"group_id"`
	Caption        sql.NullString       `db:"caption" json:"caption"`
}

type CreateMentionUserNotificationParams

type CreateMentionUserNotificationParams struct {
	ID        persist.DBID             `db:"id" json:"id"`
	OwnerID   persist.DBID             `db:"owner_id" json:"owner_id"`
	Action    persist.Action           `db:"action" json:"action"`
	Data      persist.NotificationData `db:"data" json:"data"`
	EventIds  persist.DBIDList         `db:"event_ids" json:"event_ids"`
	MentionID persist.DBID             `db:"mention_id" json:"mention_id"`
	FeedEvent sql.NullString           `db:"feed_event" json:"feed_event"`
	Post      sql.NullString           `db:"post" json:"post"`
	Comment   sql.NullString           `db:"comment" json:"comment"`
}

type CreatePostAdmireParams

type CreatePostAdmireParams struct {
	ID      persist.DBID `db:"id" json:"id"`
	PostID  persist.DBID `db:"post_id" json:"post_id"`
	ActorID persist.DBID `db:"actor_id" json:"actor_id"`
}

type CreatePostEventParams

type CreatePostEventParams struct {
	ID             persist.DBID         `db:"id" json:"id"`
	ActorID        sql.NullString       `db:"actor_id" json:"actor_id"`
	Action         persist.Action       `db:"action" json:"action"`
	ResourceTypeID persist.ResourceType `db:"resource_type_id" json:"resource_type_id"`
	UserID         persist.DBID         `db:"user_id" json:"user_id"`
	SubjectID      persist.DBID         `db:"subject_id" json:"subject_id"`
	PostID         persist.DBID         `db:"post_id" json:"post_id"`
}

type CreatePostNotificationParams

type CreatePostNotificationParams struct {
	ID       persist.DBID             `db:"id" json:"id"`
	OwnerID  persist.DBID             `db:"owner_id" json:"owner_id"`
	Action   persist.Action           `db:"action" json:"action"`
	Data     persist.NotificationData `db:"data" json:"data"`
	EventIds persist.DBIDList         `db:"event_ids" json:"event_ids"`
	PostID   persist.DBID             `db:"post_id" json:"post_id"`
}

type CreatePushTicketsParams

type CreatePushTicketsParams struct {
	Ids          []string `db:"ids" json:"ids"`
	PushTokenIds []string `db:"push_token_ids" json:"push_token_ids"`
	TicketIds    []string `db:"ticket_ids" json:"ticket_ids"`
}

type CreatePushTokenForUserParams

type CreatePushTokenForUserParams struct {
	ID        persist.DBID `db:"id" json:"id"`
	UserID    persist.DBID `db:"user_id" json:"user_id"`
	PushToken string       `db:"push_token" json:"push_token"`
}

type CreateSimpleNotificationParams

type CreateSimpleNotificationParams struct {
	ID       persist.DBID             `db:"id" json:"id"`
	OwnerID  persist.DBID             `db:"owner_id" json:"owner_id"`
	Action   persist.Action           `db:"action" json:"action"`
	Data     persist.NotificationData `db:"data" json:"data"`
	EventIds persist.DBIDList         `db:"event_ids" json:"event_ids"`
}

type CreateTokenAdmireParams

type CreateTokenAdmireParams struct {
	ID      persist.DBID `db:"id" json:"id"`
	TokenID persist.DBID `db:"token_id" json:"token_id"`
	ActorID persist.DBID `db:"actor_id" json:"actor_id"`
}

type CreateTokenEventParams

type CreateTokenEventParams struct {
	ID             persist.DBID         `db:"id" json:"id"`
	ActorID        sql.NullString       `db:"actor_id" json:"actor_id"`
	Action         persist.Action       `db:"action" json:"action"`
	ResourceTypeID persist.ResourceType `db:"resource_type_id" json:"resource_type_id"`
	TokenID        persist.DBID         `db:"token_id" json:"token_id"`
	Data           persist.EventData    `db:"data" json:"data"`
	GroupID        sql.NullString       `db:"group_id" json:"group_id"`
	Caption        sql.NullString       `db:"caption" json:"caption"`
	Gallery        sql.NullString       `db:"gallery" json:"gallery"`
	Collection     sql.NullString       `db:"collection" json:"collection"`
}

type CreateTokenNotificationParams

type CreateTokenNotificationParams struct {
	ID       persist.DBID             `db:"id" json:"id"`
	OwnerID  persist.DBID             `db:"owner_id" json:"owner_id"`
	Action   persist.Action           `db:"action" json:"action"`
	Data     persist.NotificationData `db:"data" json:"data"`
	EventIds persist.DBIDList         `db:"event_ids" json:"event_ids"`
	TokenID  persist.DBID             `db:"token_id" json:"token_id"`
	Amount   int32                    `db:"amount" json:"amount"`
}

type CreateUserEventParams

type CreateUserEventParams struct {
	ID             persist.DBID         `db:"id" json:"id"`
	ActorID        sql.NullString       `db:"actor_id" json:"actor_id"`
	Action         persist.Action       `db:"action" json:"action"`
	ResourceTypeID persist.ResourceType `db:"resource_type_id" json:"resource_type_id"`
	UserID         persist.DBID         `db:"user_id" json:"user_id"`
	Data           persist.EventData    `db:"data" json:"data"`
	GroupID        sql.NullString       `db:"group_id" json:"group_id"`
	Caption        sql.NullString       `db:"caption" json:"caption"`
	Post           sql.NullString       `db:"post" json:"post"`
	Comment        sql.NullString       `db:"comment" json:"comment"`
	FeedEvent      sql.NullString       `db:"feed_event" json:"feed_event"`
	Mention        sql.NullString       `db:"mention" json:"mention"`
}

type CreateUserPostedYourWorkNotificationParams

type CreateUserPostedYourWorkNotificationParams struct {
	ID          persist.DBID             `db:"id" json:"id"`
	OwnerID     persist.DBID             `db:"owner_id" json:"owner_id"`
	Action      persist.Action           `db:"action" json:"action"`
	Data        persist.NotificationData `db:"data" json:"data"`
	EventIds    persist.DBIDList         `db:"event_ids" json:"event_ids"`
	CommunityID persist.DBID             `db:"community_id" json:"community_id"`
	Post        sql.NullString           `db:"post" json:"post"`
}

type CreateViewGalleryNotificationParams

type CreateViewGalleryNotificationParams struct {
	ID        persist.DBID             `db:"id" json:"id"`
	OwnerID   persist.DBID             `db:"owner_id" json:"owner_id"`
	Action    persist.Action           `db:"action" json:"action"`
	Data      persist.NotificationData `db:"data" json:"data"`
	EventIds  persist.DBIDList         `db:"event_ids" json:"event_ids"`
	GalleryID persist.DBID             `db:"gallery_id" json:"gallery_id"`
}

type DBTX

type DBTX interface {
	Exec(context.Context, string, ...interface{}) (pgconn.CommandTag, error)
	Query(context.Context, string, ...interface{}) (pgx.Rows, error)
	QueryRow(context.Context, string, ...interface{}) pgx.Row
	SendBatch(context.Context, *pgx.Batch) pgx.BatchResults
}

type DeleteTokensBeforeTimestampParams

type DeleteTokensBeforeTimestampParams struct {
	RemoveHolderStatus  bool           `db:"remove_holder_status" json:"remove_holder_status"`
	RemoveCreatorStatus bool           `db:"remove_creator_status" json:"remove_creator_status"`
	OnlyFromUserID      sql.NullString `db:"only_from_user_id" json:"only_from_user_id"`
	OnlyFromContractIds []string       `db:"only_from_contract_ids" json:"only_from_contract_ids"`
	OnlyFromChains      []int32        `db:"only_from_chains" json:"only_from_chains"`
	Timestamp           time.Time      `db:"timestamp" json:"timestamp"`
}

type DeleteUserRolesParams

type DeleteUserRolesParams struct {
	UserID persist.DBID   `db:"user_id" json:"user_id"`
	Roles  []persist.Role `db:"roles" json:"roles"`
}

type DevMetadataUser

type DevMetadataUser struct {
	UserID          persist.DBID  `db:"user_id" json:"user_id"`
	HasEmailAddress persist.Email `db:"has_email_address" json:"has_email_address"`
	Deleted         bool          `db:"deleted" json:"deleted"`
}

type EarlyAccess

type EarlyAccess struct {
	Address persist.Address `db:"address" json:"address"`
}

type Event

type Event struct {
	ID             persist.DBID         `db:"id" json:"id"`
	Version        int32                `db:"version" json:"version"`
	ActorID        sql.NullString       `db:"actor_id" json:"actor_id"`
	ResourceTypeID persist.ResourceType `db:"resource_type_id" json:"resource_type_id"`
	SubjectID      persist.DBID         `db:"subject_id" json:"subject_id"`
	UserID         persist.DBID         `db:"user_id" json:"user_id"`
	TokenID        persist.DBID         `db:"token_id" json:"token_id"`
	CollectionID   persist.DBID         `db:"collection_id" json:"collection_id"`
	Action         persist.Action       `db:"action" json:"action"`
	Data           persist.EventData    `db:"data" json:"data"`
	Deleted        bool                 `db:"deleted" json:"deleted"`
	LastUpdated    time.Time            `db:"last_updated" json:"last_updated"`
	CreatedAt      time.Time            `db:"created_at" json:"created_at"`
	GalleryID      persist.DBID         `db:"gallery_id" json:"gallery_id"`
	CommentID      persist.DBID         `db:"comment_id" json:"comment_id"`
	AdmireID       persist.DBID         `db:"admire_id" json:"admire_id"`
	FeedEventID    persist.DBID         `db:"feed_event_id" json:"feed_event_id"`
	ExternalID     sql.NullString       `db:"external_id" json:"external_id"`
	Caption        sql.NullString       `db:"caption" json:"caption"`
	GroupID        sql.NullString       `db:"group_id" json:"group_id"`
	PostID         persist.DBID         `db:"post_id" json:"post_id"`
	MentionID      persist.DBID         `db:"mention_id" json:"mention_id"`
	CommunityID    persist.DBID         `db:"community_id" json:"community_id"`
}

type ExternalSocialConnection

type ExternalSocialConnection struct {
	ID                persist.DBID `db:"id" json:"id"`
	Version           int32        `db:"version" json:"version"`
	SocialAccountType string       `db:"social_account_type" json:"social_account_type"`
	FollowerID        persist.DBID `db:"follower_id" json:"follower_id"`
	FolloweeID        persist.DBID `db:"followee_id" json:"followee_id"`
	CreatedAt         time.Time    `db:"created_at" json:"created_at"`
	LastUpdated       time.Time    `db:"last_updated" json:"last_updated"`
	Deleted           bool         `db:"deleted" json:"deleted"`
}

type FeedBlocklist

type FeedBlocklist struct {
	ID          persist.DBID         `db:"id" json:"id"`
	UserID      persist.DBID         `db:"user_id" json:"user_id"`
	LastUpdated time.Time            `db:"last_updated" json:"last_updated"`
	CreatedAt   time.Time            `db:"created_at" json:"created_at"`
	Deleted     bool                 `db:"deleted" json:"deleted"`
	Reason      persist.ReportReason `db:"reason" json:"reason"`
	Active      sql.NullBool         `db:"active" json:"active"`
}

type FeedEntity

type FeedEntity struct {
	ID             persist.DBID `db:"id" json:"id"`
	FeedEntityType int32        `db:"feed_entity_type" json:"feed_entity_type"`
	CreatedAt      time.Time    `db:"created_at" json:"created_at"`
	ActorID        persist.DBID `db:"actor_id" json:"actor_id"`
}

type FeedEntityScore

type FeedEntityScore struct {
	ID             persist.DBID     `db:"id" json:"id"`
	CreatedAt      time.Time        `db:"created_at" json:"created_at"`
	ActorID        persist.DBID     `db:"actor_id" json:"actor_id"`
	Action         persist.Action   `db:"action" json:"action"`
	ContractIds    persist.DBIDList `db:"contract_ids" json:"contract_ids"`
	Interactions   int32            `db:"interactions" json:"interactions"`
	FeedEntityType int32            `db:"feed_entity_type" json:"feed_entity_type"`
	LastUpdated    time.Time        `db:"last_updated" json:"last_updated"`
}

type FeedEntityScoreView

type FeedEntityScoreView struct {
	ID             persist.DBID     `db:"id" json:"id"`
	CreatedAt      time.Time        `db:"created_at" json:"created_at"`
	ActorID        persist.DBID     `db:"actor_id" json:"actor_id"`
	Action         persist.Action   `db:"action" json:"action"`
	ContractIds    persist.DBIDList `db:"contract_ids" json:"contract_ids"`
	Interactions   int32            `db:"interactions" json:"interactions"`
	FeedEntityType int32            `db:"feed_entity_type" json:"feed_entity_type"`
	LastUpdated    time.Time        `db:"last_updated" json:"last_updated"`
}

type FeedEvent

type FeedEvent struct {
	ID          persist.DBID          `db:"id" json:"id"`
	Version     int32                 `db:"version" json:"version"`
	OwnerID     persist.DBID          `db:"owner_id" json:"owner_id"`
	Action      persist.Action        `db:"action" json:"action"`
	Data        persist.FeedEventData `db:"data" json:"data"`
	EventTime   time.Time             `db:"event_time" json:"event_time"`
	EventIds    persist.DBIDList      `db:"event_ids" json:"event_ids"`
	Deleted     bool                  `db:"deleted" json:"deleted"`
	LastUpdated time.Time             `db:"last_updated" json:"last_updated"`
	CreatedAt   time.Time             `db:"created_at" json:"created_at"`
	Caption     sql.NullString        `db:"caption" json:"caption"`
	GroupID     sql.NullString        `db:"group_id" json:"group_id"`
}

type Follow

type Follow struct {
	ID          persist.DBID `db:"id" json:"id"`
	Follower    persist.DBID `db:"follower" json:"follower"`
	Followee    persist.DBID `db:"followee" json:"followee"`
	Deleted     bool         `db:"deleted" json:"deleted"`
	CreatedAt   time.Time    `db:"created_at" json:"created_at"`
	LastUpdated time.Time    `db:"last_updated" json:"last_updated"`
}
type Gallery struct {
	ID          persist.DBID     `db:"id" json:"id"`
	Deleted     bool             `db:"deleted" json:"deleted"`
	LastUpdated time.Time        `db:"last_updated" json:"last_updated"`
	CreatedAt   time.Time        `db:"created_at" json:"created_at"`
	Version     sql.NullInt32    `db:"version" json:"version"`
	OwnerUserID persist.DBID     `db:"owner_user_id" json:"owner_user_id"`
	Collections persist.DBIDList `db:"collections" json:"collections"`
	Name        string           `db:"name" json:"name"`
	Description string           `db:"description" json:"description"`
	Hidden      bool             `db:"hidden" json:"hidden"`
	Position    string           `db:"position" json:"position"`
}

type GalleryRelevance

type GalleryRelevance struct {
	ID    persist.DBID `db:"id" json:"id"`
	Score int32        `db:"score" json:"score"`
}

type GalleryRepoAddCollectionsParams

type GalleryRepoAddCollectionsParams struct {
	CollectionIds []string     `db:"collection_ids" json:"collection_ids"`
	GalleryID     persist.DBID `db:"gallery_id" json:"gallery_id"`
}

type GalleryRepoCheckOwnCollectionsParams

type GalleryRepoCheckOwnCollectionsParams struct {
	OwnerUserID   persist.DBID   `db:"owner_user_id" json:"owner_user_id"`
	CollectionIds []persist.DBID `db:"collection_ids" json:"collection_ids"`
}

type GalleryRepoCreateParams

type GalleryRepoCreateParams struct {
	GalleryID   persist.DBID `db:"gallery_id" json:"gallery_id"`
	OwnerUserID persist.DBID `db:"owner_user_id" json:"owner_user_id"`
	Name        string       `db:"name" json:"name"`
	Description string       `db:"description" json:"description"`
	Position    string       `db:"position" json:"position"`
}

type GalleryRepoDeleteParams

type GalleryRepoDeleteParams struct {
	GalleryID   persist.DBID `db:"gallery_id" json:"gallery_id"`
	OwnerUserID persist.DBID `db:"owner_user_id" json:"owner_user_id"`
}

type GalleryRepoGetPreviewsForUserIDParams

type GalleryRepoGetPreviewsForUserIDParams struct {
	OwnerUserID persist.DBID `db:"owner_user_id" json:"owner_user_id"`
	Limit       int32        `db:"limit" json:"limit"`
}

type GalleryRepoUpdateParams

type GalleryRepoUpdateParams struct {
	CollectionIds persist.DBIDList `db:"collection_ids" json:"collection_ids"`
	GalleryID     persist.DBID     `db:"gallery_id" json:"gallery_id"`
}

type GetAdmireByActorIDAndCommentIDBatchResults

type GetAdmireByActorIDAndCommentIDBatchResults struct {
	// contains filtered or unexported fields
}

func (*GetAdmireByActorIDAndCommentIDBatchResults) Close

func (*GetAdmireByActorIDAndCommentIDBatchResults) QueryRow

type GetAdmireByActorIDAndCommentIDParams

type GetAdmireByActorIDAndCommentIDParams struct {
	ActorID   persist.DBID `db:"actor_id" json:"actor_id"`
	CommentID persist.DBID `db:"comment_id" json:"comment_id"`
}

type GetAdmireByActorIDAndFeedEventIDBatchResults

type GetAdmireByActorIDAndFeedEventIDBatchResults struct {
	// contains filtered or unexported fields
}

func (*GetAdmireByActorIDAndFeedEventIDBatchResults) Close

func (*GetAdmireByActorIDAndFeedEventIDBatchResults) QueryRow

type GetAdmireByActorIDAndFeedEventIDParams

type GetAdmireByActorIDAndFeedEventIDParams struct {
	ActorID     persist.DBID `db:"actor_id" json:"actor_id"`
	FeedEventID persist.DBID `db:"feed_event_id" json:"feed_event_id"`
}

type GetAdmireByActorIDAndPostIDBatchResults

type GetAdmireByActorIDAndPostIDBatchResults struct {
	// contains filtered or unexported fields
}

func (*GetAdmireByActorIDAndPostIDBatchResults) Close

func (*GetAdmireByActorIDAndPostIDBatchResults) QueryRow

type GetAdmireByActorIDAndPostIDParams

type GetAdmireByActorIDAndPostIDParams struct {
	ActorID persist.DBID `db:"actor_id" json:"actor_id"`
	PostID  persist.DBID `db:"post_id" json:"post_id"`
}

type GetAdmireByActorIDAndTokenIDBatchResults

type GetAdmireByActorIDAndTokenIDBatchResults struct {
	// contains filtered or unexported fields
}

func (*GetAdmireByActorIDAndTokenIDBatchResults) Close

func (*GetAdmireByActorIDAndTokenIDBatchResults) QueryRow

type GetAdmireByActorIDAndTokenIDParams

type GetAdmireByActorIDAndTokenIDParams struct {
	ActorID persist.DBID `db:"actor_id" json:"actor_id"`
	TokenID persist.DBID `db:"token_id" json:"token_id"`
}

type GetAdmireByAdmireIDBatchBatchResults

type GetAdmireByAdmireIDBatchBatchResults struct {
	// contains filtered or unexported fields
}

func (*GetAdmireByAdmireIDBatchBatchResults) Close

func (*GetAdmireByAdmireIDBatchBatchResults) QueryRow

func (b *GetAdmireByAdmireIDBatchBatchResults) QueryRow(f func(int, Admire, error))

type GetAdmiresByActorIDBatchBatchResults

type GetAdmiresByActorIDBatchBatchResults struct {
	// contains filtered or unexported fields
}

func (*GetAdmiresByActorIDBatchBatchResults) Close

func (*GetAdmiresByActorIDBatchBatchResults) Query

func (b *GetAdmiresByActorIDBatchBatchResults) Query(f func(int, []Admire, error))

type GetChildContractsByParentIDBatchPaginateBatchResults

type GetChildContractsByParentIDBatchPaginateBatchResults struct {
	// contains filtered or unexported fields
}

func (*GetChildContractsByParentIDBatchPaginateBatchResults) Close

func (*GetChildContractsByParentIDBatchPaginateBatchResults) Query

type GetChildContractsByParentIDBatchPaginateParams

type GetChildContractsByParentIDBatchPaginateParams struct {
	ParentID      persist.DBID `db:"parent_id" json:"parent_id"`
	CurBeforeTime time.Time    `db:"cur_before_time" json:"cur_before_time"`
	CurBeforeID   persist.DBID `db:"cur_before_id" json:"cur_before_id"`
	CurAfterTime  time.Time    `db:"cur_after_time" json:"cur_after_time"`
	CurAfterID    persist.DBID `db:"cur_after_id" json:"cur_after_id"`
	PagingForward bool         `db:"paging_forward" json:"paging_forward"`
	Limit         int32        `db:"limit" json:"limit"`
}

type GetCollectionByIdBatchBatchResults

type GetCollectionByIdBatchBatchResults struct {
	// contains filtered or unexported fields
}

func (*GetCollectionByIdBatchBatchResults) Close

func (*GetCollectionByIdBatchBatchResults) QueryRow

func (b *GetCollectionByIdBatchBatchResults) QueryRow(f func(int, Collection, error))

type GetCollectionsByGalleryIdBatchBatchResults

type GetCollectionsByGalleryIdBatchBatchResults struct {
	// contains filtered or unexported fields
}

func (*GetCollectionsByGalleryIdBatchBatchResults) Close

func (*GetCollectionsByGalleryIdBatchBatchResults) Query

type GetCommentByCommentIDBatchBatchResults

type GetCommentByCommentIDBatchBatchResults struct {
	// contains filtered or unexported fields
}

func (*GetCommentByCommentIDBatchBatchResults) Close

func (*GetCommentByCommentIDBatchBatchResults) QueryRow

type GetCommunitiesByKeysParams

type GetCommunitiesByKeysParams struct {
	Types []int32  `db:"types" json:"types"`
	Key1  []string `db:"key1" json:"key1"`
	Key2  []string `db:"key2" json:"key2"`
	Key3  []string `db:"key3" json:"key3"`
	Key4  []string `db:"key4" json:"key4"`
}

type GetCommunitiesByKeysRow

type GetCommunitiesByKeysRow struct {
	BatchKeyIndex int32     `db:"batch_key_index" json:"batch_key_index"`
	Community     Community `db:"community" json:"community"`
}

type GetCommunitiesByTokenDefinitionIDBatchResults

type GetCommunitiesByTokenDefinitionIDBatchResults struct {
	// contains filtered or unexported fields
}

func (*GetCommunitiesByTokenDefinitionIDBatchResults) Close

func (*GetCommunitiesByTokenDefinitionIDBatchResults) Query

type GetCommunityByIDBatchBatchResults

type GetCommunityByIDBatchBatchResults struct {
	// contains filtered or unexported fields
}

func (*GetCommunityByIDBatchBatchResults) Close

func (*GetCommunityByIDBatchBatchResults) QueryRow

func (b *GetCommunityByIDBatchBatchResults) QueryRow(f func(int, Community, error))

type GetCommunityByKeyBatchResults

type GetCommunityByKeyBatchResults struct {
	// contains filtered or unexported fields
}

func (*GetCommunityByKeyBatchResults) Close

func (*GetCommunityByKeyBatchResults) QueryRow

func (b *GetCommunityByKeyBatchResults) QueryRow(f func(int, Community, error))

type GetCommunityByKeyParams

type GetCommunityByKeyParams struct {
	Type persist.CommunityType `db:"type" json:"type"`
	Key1 string                `db:"key1" json:"key1"`
	Key2 string                `db:"key2" json:"key2"`
	Key3 string                `db:"key3" json:"key3"`
	Key4 string                `db:"key4" json:"key4"`
}

type GetContractByChainAddressBatchBatchResults

type GetContractByChainAddressBatchBatchResults struct {
	// contains filtered or unexported fields
}

func (*GetContractByChainAddressBatchBatchResults) Close

func (*GetContractByChainAddressBatchBatchResults) QueryRow

type GetContractByChainAddressBatchParams

type GetContractByChainAddressBatchParams struct {
	Address persist.Address `db:"address" json:"address"`
	Chain   persist.Chain   `db:"chain" json:"chain"`
}

type GetContractByChainAddressParams

type GetContractByChainAddressParams struct {
	Address persist.Address `db:"address" json:"address"`
	Chain   persist.Chain   `db:"chain" json:"chain"`
}

type GetContractCreatorsByIdsRow

type GetContractCreatorsByIdsRow struct {
	BatchKeyIndex   int32           `db:"batch_key_index" json:"batch_key_index"`
	ContractCreator ContractCreator `db:"contract_creator" json:"contract_creator"`
}

type GetContractLabelsRow

type GetContractLabelsRow struct {
	UserID     persist.DBID `db:"user_id" json:"user_id"`
	ContractID persist.DBID `db:"contract_id" json:"contract_id"`
	Displayed  bool         `db:"displayed" json:"displayed"`
}

type GetContractsByIDsRow

type GetContractsByIDsRow struct {
	BatchKeyIndex int32    `db:"batch_key_index" json:"batch_key_index"`
	Contract      Contract `db:"contract" json:"contract"`
}

type GetContractsDisplayedByUserIDBatchBatchResults

type GetContractsDisplayedByUserIDBatchBatchResults struct {
	// contains filtered or unexported fields
}

func (*GetContractsDisplayedByUserIDBatchBatchResults) Close

func (*GetContractsDisplayedByUserIDBatchBatchResults) Query

type GetCreatedContractsBatchPaginateBatchResults

type GetCreatedContractsBatchPaginateBatchResults struct {
	// contains filtered or unexported fields
}

func (*GetCreatedContractsBatchPaginateBatchResults) Close

func (*GetCreatedContractsBatchPaginateBatchResults) Query

type GetCreatedContractsBatchPaginateParams

type GetCreatedContractsBatchPaginateParams struct {
	UserID           persist.DBID `db:"user_id" json:"user_id"`
	IncludeAllChains bool         `db:"include_all_chains" json:"include_all_chains"`
	Chains           string       `db:"chains" json:"chains"`
	CurBeforeTime    time.Time    `db:"cur_before_time" json:"cur_before_time"`
	CurBeforeID      persist.DBID `db:"cur_before_id" json:"cur_before_id"`
	CurAfterTime     time.Time    `db:"cur_after_time" json:"cur_after_time"`
	CurAfterID       persist.DBID `db:"cur_after_id" json:"cur_after_id"`
	PagingForward    bool         `db:"paging_forward" json:"paging_forward"`
	Limit            int32        `db:"limit" json:"limit"`
}

type GetCreatedContractsByUserIDParams

type GetCreatedContractsByUserIDParams struct {
	UserID           persist.DBID `db:"user_id" json:"user_id"`
	Chains           []int32      `db:"chains" json:"chains"`
	NewContractsOnly bool         `db:"new_contracts_only" json:"new_contracts_only"`
}

type GetCreatedContractsByUserIDRow

type GetCreatedContractsByUserIDRow struct {
	Contract          Contract     `db:"contract" json:"contract"`
	WalletID          persist.DBID `db:"wallet_id" json:"wallet_id"`
	IsOverrideCreator bool         `db:"is_override_creator" json:"is_override_creator"`
}

type GetCreatorsByCommunityIDBatchResults

type GetCreatorsByCommunityIDBatchResults struct {
	// contains filtered or unexported fields
}

func (*GetCreatorsByCommunityIDBatchResults) Close

func (*GetCreatorsByCommunityIDBatchResults) Query

type GetCreatorsByCommunityIDRow

type GetCreatorsByCommunityIDRow struct {
	CommunityID         persist.DBID    `db:"community_id" json:"community_id"`
	CreatorUserID       persist.DBID    `db:"creator_user_id" json:"creator_user_id"`
	CreatorAddress      persist.Address `db:"creator_address" json:"creator_address"`
	CreatorAddressChain persist.Chain   `db:"creator_address_chain" json:"creator_address_chain"`
}

type GetEventByIdBatchBatchResults

type GetEventByIdBatchBatchResults struct {
	// contains filtered or unexported fields
}

func (*GetEventByIdBatchBatchResults) Close

func (*GetEventByIdBatchBatchResults) QueryRow

func (b *GetEventByIdBatchBatchResults) QueryRow(f func(int, FeedEvent, error))

type GetEventsInWindowParams

type GetEventsInWindowParams struct {
	ID             persist.DBID     `db:"id" json:"id"`
	Secs           float64          `db:"secs" json:"secs"`
	Actions        []persist.Action `db:"actions" json:"actions"`
	IncludeSubject bool             `db:"include_subject" json:"include_subject"`
}

type GetExternalFollowGraphSourceRow

type GetExternalFollowGraphSourceRow struct {
	FollowerID persist.DBID `db:"follower_id" json:"follower_id"`
	FolloweeID persist.DBID `db:"followee_id" json:"followee_id"`
}

type GetFarcasterConnectionsParams

type GetFarcasterConnectionsParams struct {
	Fids   []string     `db:"fids" json:"fids"`
	UserID persist.DBID `db:"user_id" json:"user_id"`
}

type GetFarcasterConnectionsRow

type GetFarcasterConnectionsRow struct {
	User User `db:"user" json:"user"`
}

type GetFeedEntityScoresParams

type GetFeedEntityScoresParams struct {
	ViewerID  persist.DBID `db:"viewer_id" json:"viewer_id"`
	WindowEnd time.Time    `db:"window_end" json:"window_end"`
	Span      int32        `db:"span" json:"span"`
}

type GetFeedEntityScoresRow

type GetFeedEntityScoresRow struct {
	FeedEntityScore FeedEntityScore `db:"feed_entity_score" json:"feed_entity_score"`
	Post            Post            `db:"post" json:"post"`
	Streak          int64           `db:"streak" json:"streak"`
	IsGalleryPost   bool            `db:"is_gallery_post" json:"is_gallery_post"`
}

type GetFollowGraphSourceRow

type GetFollowGraphSourceRow struct {
	Follower persist.DBID `db:"follower" json:"follower"`
	Followee persist.DBID `db:"followee" json:"followee"`
}

type GetFollowersByUserIdBatchBatchResults

type GetFollowersByUserIdBatchBatchResults struct {
	// contains filtered or unexported fields
}

func (*GetFollowersByUserIdBatchBatchResults) Close

func (*GetFollowersByUserIdBatchBatchResults) Query

func (b *GetFollowersByUserIdBatchBatchResults) Query(f func(int, []User, error))

type GetFollowingByUserIdBatchBatchResults

type GetFollowingByUserIdBatchBatchResults struct {
	// contains filtered or unexported fields
}

func (*GetFollowingByUserIdBatchBatchResults) Close

func (*GetFollowingByUserIdBatchBatchResults) Query

func (b *GetFollowingByUserIdBatchBatchResults) Query(f func(int, []User, error))

type GetFrameTokensByCommunityIDBatchResults

type GetFrameTokensByCommunityIDBatchResults struct {
	// contains filtered or unexported fields
}

func (*GetFrameTokensByCommunityIDBatchResults) Close

func (*GetFrameTokensByCommunityIDBatchResults) Query

type GetFrameTokensByCommunityIDParams

type GetFrameTokensByCommunityIDParams struct {
	CommunityID persist.DBID `db:"community_id" json:"community_id"`
	Limit       int32        `db:"limit" json:"limit"`
}

type GetFrameTokensByCommunityIDRow

type GetFrameTokensByCommunityIDRow struct {
	Token           Token           `db:"token" json:"token"`
	TokenDefinition TokenDefinition `db:"token_definition" json:"token_definition"`
	Contract        Contract        `db:"contract" json:"contract"`
}

type GetGalleriesByUserIdBatchBatchResults

type GetGalleriesByUserIdBatchBatchResults struct {
	// contains filtered or unexported fields
}

func (*GetGalleriesByUserIdBatchBatchResults) Close

func (*GetGalleriesByUserIdBatchBatchResults) Query

type GetGalleriesDisplayingCommunityIDPaginateBatchBatchResults

type GetGalleriesDisplayingCommunityIDPaginateBatchBatchResults struct {
	// contains filtered or unexported fields
}

func (*GetGalleriesDisplayingCommunityIDPaginateBatchBatchResults) Close

func (*GetGalleriesDisplayingCommunityIDPaginateBatchBatchResults) Query

type GetGalleriesDisplayingCommunityIDPaginateBatchParams

type GetGalleriesDisplayingCommunityIDPaginateBatchParams struct {
	CommunityID                persist.DBID `db:"community_id" json:"community_id"`
	RelativeToUserID           persist.DBID `db:"relative_to_user_id" json:"relative_to_user_id"`
	CurBeforeIsNotRelativeUser bool         `db:"cur_before_is_not_relative_user" json:"cur_before_is_not_relative_user"`
	CurBeforeRelevance         float64      `db:"cur_before_relevance" json:"cur_before_relevance"`
	CurBeforeID                persist.DBID `db:"cur_before_id" json:"cur_before_id"`
	CurAfterIsNotRelativeUser  bool         `db:"cur_after_is_not_relative_user" json:"cur_after_is_not_relative_user"`
	CurAfterRelevance          float64      `db:"cur_after_relevance" json:"cur_after_relevance"`
	CurAfterID                 persist.DBID `db:"cur_after_id" json:"cur_after_id"`
	PagingForward              bool         `db:"paging_forward" json:"paging_forward"`
	Limit                      int32        `db:"limit" json:"limit"`
}

type GetGalleriesDisplayingCommunityIDPaginateBatchRow

type GetGalleriesDisplayingCommunityIDPaginateBatchRow struct {
	Gallery                   Gallery           `db:"gallery" json:"gallery"`
	CommunityTokenIds         persist.DBIDList  `db:"community_token_ids" json:"community_token_ids"`
	CommunityMedias           persist.MediaList `db:"community_medias" json:"community_medias"`
	CommunityMediaLastUpdated []time.Time       `db:"community_media_last_updated" json:"community_media_last_updated"`
	AllTokenIds               persist.DBIDList  `db:"all_token_ids" json:"all_token_ids"`
	AllMedias                 persist.MediaList `db:"all_medias" json:"all_medias"`
	AllMediaLastUpdated       []time.Time       `db:"all_media_last_updated" json:"all_media_last_updated"`
	Relevance                 float64           `db:"relevance" json:"relevance"`
}

type GetGalleryByCollectionIdBatchBatchResults

type GetGalleryByCollectionIdBatchBatchResults struct {
	// contains filtered or unexported fields
}

func (*GetGalleryByCollectionIdBatchBatchResults) Close

func (*GetGalleryByCollectionIdBatchBatchResults) QueryRow

type GetGalleryByIdBatchBatchResults

type GetGalleryByIdBatchBatchResults struct {
	// contains filtered or unexported fields
}

func (*GetGalleryByIdBatchBatchResults) Close

func (*GetGalleryByIdBatchBatchResults) QueryRow

func (b *GetGalleryByIdBatchBatchResults) QueryRow(f func(int, Gallery, error))

type GetGalleryEventsInWindowParams

type GetGalleryEventsInWindowParams struct {
	ID             persist.DBID     `db:"id" json:"id"`
	Secs           float64          `db:"secs" json:"secs"`
	Actions        []persist.Action `db:"actions" json:"actions"`
	GalleryID      persist.DBID     `db:"gallery_id" json:"gallery_id"`
	IncludeSubject bool             `db:"include_subject" json:"include_subject"`
}

type GetGalleryTokenMediasByGalleryIDBatchBatchResults

type GetGalleryTokenMediasByGalleryIDBatchBatchResults struct {
	// contains filtered or unexported fields
}

func (*GetGalleryTokenMediasByGalleryIDBatchBatchResults) Close

func (*GetGalleryTokenMediasByGalleryIDBatchBatchResults) Query

type GetLastFeedEventForCollectionParams

type GetLastFeedEventForCollectionParams struct {
	OwnerID      persist.DBID     `db:"owner_id" json:"owner_id"`
	EventTime    time.Time        `db:"event_time" json:"event_time"`
	Actions      []persist.Action `db:"actions" json:"actions"`
	CollectionID persist.DBID     `db:"collection_id" json:"collection_id"`
}

type GetLastFeedEventForTokenParams

type GetLastFeedEventForTokenParams struct {
	OwnerID   persist.DBID     `db:"owner_id" json:"owner_id"`
	EventTime time.Time        `db:"event_time" json:"event_time"`
	Actions   []persist.Action `db:"actions" json:"actions"`
	TokenID   string           `db:"token_id" json:"token_id"`
}

type GetLastFeedEventForUserParams

type GetLastFeedEventForUserParams struct {
	OwnerID   persist.DBID     `db:"owner_id" json:"owner_id"`
	EventTime time.Time        `db:"event_time" json:"event_time"`
	Actions   []persist.Action `db:"actions" json:"actions"`
}

type GetMediaByMediaIdIgnoringStatusBatchBatchResults

type GetMediaByMediaIdIgnoringStatusBatchBatchResults struct {
	// contains filtered or unexported fields
}

func (*GetMediaByMediaIdIgnoringStatusBatchBatchResults) Close

func (*GetMediaByMediaIdIgnoringStatusBatchBatchResults) QueryRow

type GetMediaByTokenIdentifiersIgnoringStatusParams

type GetMediaByTokenIdentifiersIgnoringStatusParams struct {
	Chain           persist.Chain      `db:"chain" json:"chain"`
	ContractAddress persist.Address    `db:"contract_address" json:"contract_address"`
	TokenID         persist.HexTokenID `db:"token_id" json:"token_id"`
}

type GetMembershipByMembershipIdBatchBatchResults

type GetMembershipByMembershipIdBatchBatchResults struct {
	// contains filtered or unexported fields
}

func (*GetMembershipByMembershipIdBatchBatchResults) Close

func (*GetMembershipByMembershipIdBatchBatchResults) QueryRow

type GetMentionsByCommentIDBatchResults

type GetMentionsByCommentIDBatchResults struct {
	// contains filtered or unexported fields
}

func (*GetMentionsByCommentIDBatchResults) Close

func (*GetMentionsByCommentIDBatchResults) Query

func (b *GetMentionsByCommentIDBatchResults) Query(f func(int, []Mention, error))

type GetMentionsByPostIDBatchResults

type GetMentionsByPostIDBatchResults struct {
	// contains filtered or unexported fields
}

func (*GetMentionsByPostIDBatchResults) Close

func (*GetMentionsByPostIDBatchResults) Query

func (b *GetMentionsByPostIDBatchResults) Query(f func(int, []Mention, error))

type GetMostActiveUsersParams

type GetMostActiveUsersParams struct {
	Limit                  int32 `db:"limit" json:"limit"`
	AdmireReceivedWeight   int32 `db:"admire_received_weight" json:"admire_received_weight"`
	AdmireGivenWeight      int32 `db:"admire_given_weight" json:"admire_given_weight"`
	CommentsMadeWeight     int32 `db:"comments_made_weight" json:"comments_made_weight"`
	CommentsReceivedWeight int32 `db:"comments_received_weight" json:"comments_received_weight"`
}

type GetMostActiveUsersRow

type GetMostActiveUsersRow struct {
	Score            int32        `db:"score" json:"score"`
	ActorID          persist.DBID `db:"actor_id" json:"actor_id"`
	AdmiresGiven     int64        `db:"admires_given" json:"admires_given"`
	AdmiresReceived  int64        `db:"admires_received" json:"admires_received"`
	CommentsMade     int64        `db:"comments_made" json:"comments_made"`
	CommentsReceived int64        `db:"comments_received" json:"comments_received"`
	Traits           pgtype.JSONB `db:"traits" json:"traits"`
}

type GetMostRecentNotificationByOwnerIDForActionParams

type GetMostRecentNotificationByOwnerIDForActionParams struct {
	OwnerID          persist.DBID   `db:"owner_id" json:"owner_id"`
	Action           persist.Action `db:"action" json:"action"`
	FeedEventID      persist.DBID   `db:"feed_event_id" json:"feed_event_id"`
	PostID           persist.DBID   `db:"post_id" json:"post_id"`
	CommentID        persist.DBID   `db:"comment_id" json:"comment_id"`
	OnlyForFeedEvent bool           `db:"only_for_feed_event" json:"only_for_feed_event"`
	OnlyForPost      bool           `db:"only_for_post" json:"only_for_post"`
	OnlyForComment   bool           `db:"only_for_comment" json:"only_for_comment"`
}

type GetMostRecentNotificationByOwnerIDTokenIDForActionParams

type GetMostRecentNotificationByOwnerIDTokenIDForActionParams struct {
	OwnerID          persist.DBID   `db:"owner_id" json:"owner_id"`
	TokenID          persist.DBID   `db:"token_id" json:"token_id"`
	Action           persist.Action `db:"action" json:"action"`
	FeedEventID      persist.DBID   `db:"feed_event_id" json:"feed_event_id"`
	PostID           persist.DBID   `db:"post_id" json:"post_id"`
	OnlyForFeedEvent bool           `db:"only_for_feed_event" json:"only_for_feed_event"`
	OnlyForPost      bool           `db:"only_for_post" json:"only_for_post"`
}

type GetNewTokensByFeedEventIdBatchBatchResults

type GetNewTokensByFeedEventIdBatchBatchResults struct {
	// contains filtered or unexported fields
}

func (*GetNewTokensByFeedEventIdBatchBatchResults) Close

func (*GetNewTokensByFeedEventIdBatchBatchResults) Query

type GetNotificationByIDBatchBatchResults

type GetNotificationByIDBatchBatchResults struct {
	// contains filtered or unexported fields
}

func (*GetNotificationByIDBatchBatchResults) Close

func (*GetNotificationByIDBatchBatchResults) QueryRow

type GetNotificationsByOwnerIDForActionAfterParams

type GetNotificationsByOwnerIDForActionAfterParams struct {
	OwnerID      persist.DBID   `db:"owner_id" json:"owner_id"`
	Action       persist.Action `db:"action" json:"action"`
	CreatedAfter time.Time      `db:"created_after" json:"created_after"`
}

type GetOwnersByContractIdBatchPaginateBatchResults

type GetOwnersByContractIdBatchPaginateBatchResults struct {
	// contains filtered or unexported fields
}

func (*GetOwnersByContractIdBatchPaginateBatchResults) Close

func (*GetOwnersByContractIdBatchPaginateBatchResults) Query

type GetOwnersByContractIdBatchPaginateParams

type GetOwnersByContractIdBatchPaginateParams struct {
	ID                 persist.DBID  `db:"id" json:"id"`
	GalleryUsersOnly   bool          `db:"gallery_users_only" json:"gallery_users_only"`
	CurBeforeUniversal bool          `db:"cur_before_universal" json:"cur_before_universal"`
	CurBeforeTime      time.Time     `db:"cur_before_time" json:"cur_before_time"`
	CurBeforeID        persist.DBID  `db:"cur_before_id" json:"cur_before_id"`
	CurAfterUniversal  bool          `db:"cur_after_universal" json:"cur_after_universal"`
	CurAfterTime       time.Time     `db:"cur_after_time" json:"cur_after_time"`
	CurAfterID         persist.DBID  `db:"cur_after_id" json:"cur_after_id"`
	PagingForward      bool          `db:"paging_forward" json:"paging_forward"`
	Limit              sql.NullInt32 `db:"limit" json:"limit"`
}

type GetPostByIdBatchBatchResults

type GetPostByIdBatchBatchResults struct {
	// contains filtered or unexported fields
}

func (*GetPostByIdBatchBatchResults) Close

func (*GetPostByIdBatchBatchResults) QueryRow

func (b *GetPostByIdBatchBatchResults) QueryRow(f func(int, Post, error))

type GetPostsByIdsPaginateBatchBatchResults

type GetPostsByIdsPaginateBatchBatchResults struct {
	// contains filtered or unexported fields
}

func (*GetPostsByIdsPaginateBatchBatchResults) Close

func (*GetPostsByIdsPaginateBatchBatchResults) Query

func (b *GetPostsByIdsPaginateBatchBatchResults) Query(f func(int, []Post, error))

type GetPostsByIdsPaginateBatchParams

type GetPostsByIdsPaginateBatchParams struct {
	PostIds      []string `db:"post_ids" json:"post_ids"`
	CurAfterPos  int32    `db:"cur_after_pos" json:"cur_after_pos"`
	CurBeforePos int32    `db:"cur_before_pos" json:"cur_before_pos"`
}

type GetPotentialENSProfileImageByUserIdParams

type GetPotentialENSProfileImageByUserIdParams struct {
	EnsAddress persist.Address `db:"ens_address" json:"ens_address"`
	Chain      persist.Chain   `db:"chain" json:"chain"`
	UserID     persist.DBID    `db:"user_id" json:"user_id"`
}

type GetPotentialENSProfileImageByUserIdRow

type GetPotentialENSProfileImageByUserIdRow struct {
	TokenDefinition TokenDefinition `db:"token_definition" json:"token_definition"`
	TokenMedia      TokenMedia      `db:"token_media" json:"token_media"`
	Wallet          Wallet          `db:"wallet" json:"wallet"`
}

type GetPreviewURLsByContractIdAndUserIdParams

type GetPreviewURLsByContractIdAndUserIdParams struct {
	OwnerID    persist.DBID `db:"owner_id" json:"owner_id"`
	ContractID persist.DBID `db:"contract_id" json:"contract_id"`
}

type GetProfileImageByIdBatchBatchResults

type GetProfileImageByIdBatchBatchResults struct {
	// contains filtered or unexported fields
}

func (*GetProfileImageByIdBatchBatchResults) Close

func (*GetProfileImageByIdBatchBatchResults) QueryRow

type GetProfileImageByIdBatchParams

type GetProfileImageByIdBatchParams struct {
	ID              persist.DBID               `db:"id" json:"id"`
	EnsSourceType   persist.ProfileImageSource `db:"ens_source_type" json:"ens_source_type"`
	TokenSourceType persist.ProfileImageSource `db:"token_source_type" json:"token_source_type"`
}

type GetRecentUnseenNotificationsParams

type GetRecentUnseenNotificationsParams struct {
	OwnerID      persist.DBID `db:"owner_id" json:"owner_id"`
	CreatedAfter time.Time    `db:"created_after" json:"created_after"`
	Lim          int32        `db:"lim" json:"lim"`
}

type GetSVGTokensWithContractsByIDsParams

type GetSVGTokensWithContractsByIDsParams struct {
	StartID persist.DBID `db:"start_id" json:"start_id"`
	EndID   persist.DBID `db:"end_id" json:"end_id"`
}

type GetSVGTokensWithContractsByIDsRow

type GetSVGTokensWithContractsByIDsRow struct {
	ID                    persist.DBID      `db:"id" json:"id"`
	Deleted               bool              `db:"deleted" json:"deleted"`
	Version               sql.NullInt32     `db:"version" json:"version"`
	CreatedAt             time.Time         `db:"created_at" json:"created_at"`
	LastUpdated           time.Time         `db:"last_updated" json:"last_updated"`
	CollectorsNote        sql.NullString    `db:"collectors_note" json:"collectors_note"`
	Quantity              persist.HexString `db:"quantity" json:"quantity"`
	BlockNumber           sql.NullInt64     `db:"block_number" json:"block_number"`
	OwnerUserID           persist.DBID      `db:"owner_user_id" json:"owner_user_id"`
	OwnedByWallets        persist.DBIDList  `db:"owned_by_wallets" json:"owned_by_wallets"`
	ContractID            persist.DBID      `db:"contract_id" json:"contract_id"`
	IsUserMarkedSpam      sql.NullBool      `db:"is_user_marked_spam" json:"is_user_marked_spam"`
	LastSynced            time.Time         `db:"last_synced" json:"last_synced"`
	IsCreatorToken        bool              `db:"is_creator_token" json:"is_creator_token"`
	TokenDefinitionID     persist.DBID      `db:"token_definition_id" json:"token_definition_id"`
	IsHolderToken         bool              `db:"is_holder_token" json:"is_holder_token"`
	Displayable           bool              `db:"displayable" json:"displayable"`
	ID_2                  persist.DBID      `db:"id_2" json:"id_2"`
	Deleted_2             bool              `db:"deleted_2" json:"deleted_2"`
	Version_2             sql.NullInt32     `db:"version_2" json:"version_2"`
	CreatedAt_2           time.Time         `db:"created_at_2" json:"created_at_2"`
	LastUpdated_2         time.Time         `db:"last_updated_2" json:"last_updated_2"`
	Name                  sql.NullString    `db:"name" json:"name"`
	Symbol                sql.NullString    `db:"symbol" json:"symbol"`
	Address               persist.Address   `db:"address" json:"address"`
	CreatorAddress        persist.Address   `db:"creator_address" json:"creator_address"`
	Chain                 persist.Chain     `db:"chain" json:"chain"`
	ProfileBannerUrl      sql.NullString    `db:"profile_banner_url" json:"profile_banner_url"`
	ProfileImageUrl       sql.NullString    `db:"profile_image_url" json:"profile_image_url"`
	BadgeUrl              sql.NullString    `db:"badge_url" json:"badge_url"`
	Description           sql.NullString    `db:"description" json:"description"`
	OwnerAddress          persist.Address   `db:"owner_address" json:"owner_address"`
	IsProviderMarkedSpam  bool              `db:"is_provider_marked_spam" json:"is_provider_marked_spam"`
	ParentID              persist.DBID      `db:"parent_id" json:"parent_id"`
	OverrideCreatorUserID persist.DBID      `db:"override_creator_user_id" json:"override_creator_user_id"`
	L1Chain               persist.L1Chain   `db:"l1_chain" json:"l1_chain"`
	WalletAddress         persist.Address   `db:"wallet_address" json:"wallet_address"`
}

type GetSharedCommunitiesBatchPaginateBatchResults

type GetSharedCommunitiesBatchPaginateBatchResults struct {
	// contains filtered or unexported fields
}

func (*GetSharedCommunitiesBatchPaginateBatchResults) Close

func (*GetSharedCommunitiesBatchPaginateBatchResults) Query

type GetSharedCommunitiesBatchPaginateParams

type GetSharedCommunitiesBatchPaginateParams struct {
	UserAID                   persist.DBID `db:"user_a_id" json:"user_a_id"`
	UserBID                   persist.DBID `db:"user_b_id" json:"user_b_id"`
	CurBeforeDisplayedByUserA bool         `db:"cur_before_displayed_by_user_a" json:"cur_before_displayed_by_user_a"`
	CurBeforeDisplayedByUserB bool         `db:"cur_before_displayed_by_user_b" json:"cur_before_displayed_by_user_b"`
	CurBeforeOwnedCount       int32        `db:"cur_before_owned_count" json:"cur_before_owned_count"`
	CurBeforeContractID       persist.DBID `db:"cur_before_contract_id" json:"cur_before_contract_id"`
	CurAfterDisplayedByUserA  bool         `db:"cur_after_displayed_by_user_a" json:"cur_after_displayed_by_user_a"`
	CurAfterDisplayedByUserB  bool         `db:"cur_after_displayed_by_user_b" json:"cur_after_displayed_by_user_b"`
	CurAfterOwnedCount        int32        `db:"cur_after_owned_count" json:"cur_after_owned_count"`
	CurAfterContractID        persist.DBID `db:"cur_after_contract_id" json:"cur_after_contract_id"`
	PagingForward             bool         `db:"paging_forward" json:"paging_forward"`
	Limit                     int32        `db:"limit" json:"limit"`
}

type GetSharedCommunitiesBatchPaginateRow

type GetSharedCommunitiesBatchPaginateRow struct {
	Community        Community `db:"community" json:"community"`
	DisplayedByUserA bool      `db:"displayed_by_user_a" json:"displayed_by_user_a"`
	DisplayedByUserB bool      `db:"displayed_by_user_b" json:"displayed_by_user_b"`
	OwnedCount       int64     `db:"owned_count" json:"owned_count"`
}

type GetSharedFollowersBatchPaginateBatchResults

type GetSharedFollowersBatchPaginateBatchResults struct {
	// contains filtered or unexported fields
}

func (*GetSharedFollowersBatchPaginateBatchResults) Close

func (*GetSharedFollowersBatchPaginateBatchResults) Query

type GetSharedFollowersBatchPaginateParams

type GetSharedFollowersBatchPaginateParams struct {
	Follower      persist.DBID `db:"follower" json:"follower"`
	Followee      persist.DBID `db:"followee" json:"followee"`
	CurBeforeTime time.Time    `db:"cur_before_time" json:"cur_before_time"`
	CurBeforeID   persist.DBID `db:"cur_before_id" json:"cur_before_id"`
	CurAfterTime  time.Time    `db:"cur_after_time" json:"cur_after_time"`
	CurAfterID    persist.DBID `db:"cur_after_id" json:"cur_after_id"`
	PagingForward bool         `db:"paging_forward" json:"paging_forward"`
	Limit         int32        `db:"limit" json:"limit"`
}

type GetSharedFollowersBatchPaginateRow

type GetSharedFollowersBatchPaginateRow struct {
	User       User      `db:"user" json:"user"`
	FollowedOn time.Time `db:"followed_on" json:"followed_on"`
}

type GetSocialAuthByUserIDParams

type GetSocialAuthByUserIDParams struct {
	UserID   persist.DBID           `db:"user_id" json:"user_id"`
	Provider persist.SocialProvider `db:"provider" json:"provider"`
}

type GetSocialConnectionsPaginateParams

type GetSocialConnectionsPaginateParams struct {
	Limit               int32        `db:"limit" json:"limit"`
	SocialIds           []string     `db:"social_ids" json:"social_ids"`
	SocialUsernames     []string     `db:"social_usernames" json:"social_usernames"`
	SocialDisplaynames  []string     `db:"social_displaynames" json:"social_displaynames"`
	SocialProfileImages []string     `db:"social_profile_images" json:"social_profile_images"`
	Social              string       `db:"social" json:"social"`
	UserID              persist.DBID `db:"user_id" json:"user_id"`
	OnlyUnfollowing     bool         `db:"only_unfollowing" json:"only_unfollowing"`
	CurBeforeFollowing  bool         `db:"cur_before_following" json:"cur_before_following"`
	CurBeforeTime       time.Time    `db:"cur_before_time" json:"cur_before_time"`
	CurBeforeID         persist.DBID `db:"cur_before_id" json:"cur_before_id"`
	CurAfterFollowing   bool         `db:"cur_after_following" json:"cur_after_following"`
	CurAfterTime        time.Time    `db:"cur_after_time" json:"cur_after_time"`
	CurAfterID          persist.DBID `db:"cur_after_id" json:"cur_after_id"`
	PagingForward       bool         `db:"paging_forward" json:"paging_forward"`
}

type GetSocialConnectionsPaginateRow

type GetSocialConnectionsPaginateRow struct {
	SocialID           interface{}  `db:"social_id" json:"social_id"`
	SocialUsername     interface{}  `db:"social_username" json:"social_username"`
	SocialDisplayname  interface{}  `db:"social_displayname" json:"social_displayname"`
	SocialProfileImage interface{}  `db:"social_profile_image" json:"social_profile_image"`
	UserID             persist.DBID `db:"user_id" json:"user_id"`
	UserCreatedAt      time.Time    `db:"user_created_at" json:"user_created_at"`
	AlreadyFollowing   bool         `db:"already_following" json:"already_following"`
}

type GetSocialConnectionsParams

type GetSocialConnectionsParams struct {
	SocialIds           []string     `db:"social_ids" json:"social_ids"`
	SocialUsernames     []string     `db:"social_usernames" json:"social_usernames"`
	SocialDisplaynames  []string     `db:"social_displaynames" json:"social_displaynames"`
	SocialProfileImages []string     `db:"social_profile_images" json:"social_profile_images"`
	Social              string       `db:"social" json:"social"`
	UserID              persist.DBID `db:"user_id" json:"user_id"`
	OnlyUnfollowing     bool         `db:"only_unfollowing" json:"only_unfollowing"`
}

type GetSocialConnectionsRow

type GetSocialConnectionsRow struct {
	SocialID           interface{}  `db:"social_id" json:"social_id"`
	SocialUsername     interface{}  `db:"social_username" json:"social_username"`
	SocialDisplayname  interface{}  `db:"social_displayname" json:"social_displayname"`
	SocialProfileImage interface{}  `db:"social_profile_image" json:"social_profile_image"`
	UserID             persist.DBID `db:"user_id" json:"user_id"`
	UserCreatedAt      time.Time    `db:"user_created_at" json:"user_created_at"`
	AlreadyFollowing   bool         `db:"already_following" json:"already_following"`
}

type GetTokenByIdBatchBatchResults

type GetTokenByIdBatchBatchResults struct {
	// contains filtered or unexported fields
}

func (*GetTokenByIdBatchBatchResults) Close

func (*GetTokenByIdBatchBatchResults) QueryRow

type GetTokenByIdBatchRow

type GetTokenByIdBatchRow struct {
	Token           Token           `db:"token" json:"token"`
	TokenDefinition TokenDefinition `db:"token_definition" json:"token_definition"`
}

type GetTokenByIdIgnoreDisplayableBatchBatchResults

type GetTokenByIdIgnoreDisplayableBatchBatchResults struct {
	// contains filtered or unexported fields
}

func (*GetTokenByIdIgnoreDisplayableBatchBatchResults) Close

func (*GetTokenByIdIgnoreDisplayableBatchBatchResults) QueryRow

type GetTokenByIdIgnoreDisplayableBatchRow

type GetTokenByIdIgnoreDisplayableBatchRow struct {
	Token           Token           `db:"token" json:"token"`
	TokenDefinition TokenDefinition `db:"token_definition" json:"token_definition"`
}

type GetTokenByIdRow

type GetTokenByIdRow struct {
	Token           Token           `db:"token" json:"token"`
	TokenDefinition TokenDefinition `db:"token_definition" json:"token_definition"`
}

type GetTokenByUserTokenIdentifiersBatchBatchResults

type GetTokenByUserTokenIdentifiersBatchBatchResults struct {
	// contains filtered or unexported fields
}

func (*GetTokenByUserTokenIdentifiersBatchBatchResults) Close

func (*GetTokenByUserTokenIdentifiersBatchBatchResults) QueryRow

type GetTokenByUserTokenIdentifiersBatchParams

type GetTokenByUserTokenIdentifiersBatchParams struct {
	OwnerID         persist.DBID       `db:"owner_id" json:"owner_id"`
	TokenID         persist.HexTokenID `db:"token_id" json:"token_id"`
	Chain           persist.Chain      `db:"chain" json:"chain"`
	ContractAddress persist.Address    `db:"contract_address" json:"contract_address"`
}

type GetTokenByUserTokenIdentifiersBatchRow

type GetTokenByUserTokenIdentifiersBatchRow struct {
	Token           Token           `db:"token" json:"token"`
	TokenDefinition TokenDefinition `db:"token_definition" json:"token_definition"`
	Contract        Contract        `db:"contract" json:"contract"`
}

type GetTokenByUserTokenIdentifiersIgnoreDisplayableBatchBatchResults

type GetTokenByUserTokenIdentifiersIgnoreDisplayableBatchBatchResults struct {
	// contains filtered or unexported fields
}

func (*GetTokenByUserTokenIdentifiersIgnoreDisplayableBatchBatchResults) Close

func (*GetTokenByUserTokenIdentifiersIgnoreDisplayableBatchBatchResults) QueryRow

type GetTokenByUserTokenIdentifiersIgnoreDisplayableBatchParams

type GetTokenByUserTokenIdentifiersIgnoreDisplayableBatchParams struct {
	OwnerID         persist.DBID       `db:"owner_id" json:"owner_id"`
	TokenID         persist.HexTokenID `db:"token_id" json:"token_id"`
	Chain           persist.Chain      `db:"chain" json:"chain"`
	ContractAddress persist.Address    `db:"contract_address" json:"contract_address"`
}

type GetTokenByUserTokenIdentifiersIgnoreDisplayableBatchRow

type GetTokenByUserTokenIdentifiersIgnoreDisplayableBatchRow struct {
	Token           Token           `db:"token" json:"token"`
	TokenDefinition TokenDefinition `db:"token_definition" json:"token_definition"`
	Contract        Contract        `db:"contract" json:"contract"`
	TokenMedia      TokenMedia      `db:"token_media" json:"token_media"`
}

type GetTokenByUserTokenIdentifiersParams

type GetTokenByUserTokenIdentifiersParams struct {
	OwnerID         persist.DBID       `db:"owner_id" json:"owner_id"`
	TokenID         persist.HexTokenID `db:"token_id" json:"token_id"`
	Chain           persist.Chain      `db:"chain" json:"chain"`
	ContractAddress persist.Address    `db:"contract_address" json:"contract_address"`
}

type GetTokenByUserTokenIdentifiersRow

type GetTokenByUserTokenIdentifiersRow struct {
	Token           Token           `db:"token" json:"token"`
	TokenDefinition TokenDefinition `db:"token_definition" json:"token_definition"`
	Contract        Contract        `db:"contract" json:"contract"`
}

type GetTokenDefinitionByIdBatchBatchResults

type GetTokenDefinitionByIdBatchBatchResults struct {
	// contains filtered or unexported fields
}

func (*GetTokenDefinitionByIdBatchBatchResults) Close

func (*GetTokenDefinitionByIdBatchBatchResults) QueryRow

type GetTokenDefinitionByTokenDbidBatchBatchResults

type GetTokenDefinitionByTokenDbidBatchBatchResults struct {
	// contains filtered or unexported fields
}

func (*GetTokenDefinitionByTokenDbidBatchBatchResults) Close

func (*GetTokenDefinitionByTokenDbidBatchBatchResults) QueryRow

type GetTokenDefinitionByTokenIdentifiersParams

type GetTokenDefinitionByTokenIdentifiersParams struct {
	Chain           persist.Chain      `db:"chain" json:"chain"`
	ContractAddress persist.Address    `db:"contract_address" json:"contract_address"`
	TokenID         persist.HexTokenID `db:"token_id" json:"token_id"`
}

type GetTokenFullDetailsByUserTokenIdentifiersParams

type GetTokenFullDetailsByUserTokenIdentifiersParams struct {
	OwnerUserID     persist.DBID       `db:"owner_user_id" json:"owner_user_id"`
	Chain           persist.Chain      `db:"chain" json:"chain"`
	ContractAddress persist.Address    `db:"contract_address" json:"contract_address"`
	TokenID         persist.HexTokenID `db:"token_id" json:"token_id"`
}

type GetTokenFullDetailsByUserTokenIdentifiersRow

type GetTokenFullDetailsByUserTokenIdentifiersRow struct {
	Token           Token           `db:"token" json:"token"`
	TokenDefinition TokenDefinition `db:"token_definition" json:"token_definition"`
	Contract        Contract        `db:"contract" json:"contract"`
}

type GetTokensByCollectionIdBatchBatchResults

type GetTokensByCollectionIdBatchBatchResults struct {
	// contains filtered or unexported fields
}

func (*GetTokensByCollectionIdBatchBatchResults) Close

func (*GetTokensByCollectionIdBatchBatchResults) Query

type GetTokensByCollectionIdBatchParams

type GetTokensByCollectionIdBatchParams struct {
	CollectionID persist.DBID  `db:"collection_id" json:"collection_id"`
	Limit        sql.NullInt32 `db:"limit" json:"limit"`
}

type GetTokensByContractAddressUserIdParams

type GetTokensByContractAddressUserIdParams struct {
	OwnerUserID     persist.DBID    `db:"owner_user_id" json:"owner_user_id"`
	ContractAddress persist.Address `db:"contract_address" json:"contract_address"`
	Chain           persist.Chain   `db:"chain" json:"chain"`
	WalletID        string          `db:"wallet_id" json:"wallet_id"`
}

type GetTokensByContractAddressUserIdRow

type GetTokensByContractAddressUserIdRow struct {
	Token           Token           `db:"token" json:"token"`
	TokenDefinition TokenDefinition `db:"token_definition" json:"token_definition"`
	Contract        Contract        `db:"contract" json:"contract"`
}

type GetTokensByContractIdPaginateParams

type GetTokensByContractIdPaginateParams struct {
	ID                 persist.DBID `db:"id" json:"id"`
	Limit              int32        `db:"limit" json:"limit"`
	GalleryUsersOnly   bool         `db:"gallery_users_only" json:"gallery_users_only"`
	CurBeforeUniversal bool         `db:"cur_before_universal" json:"cur_before_universal"`
	CurBeforeTime      time.Time    `db:"cur_before_time" json:"cur_before_time"`
	CurBeforeID        persist.DBID `db:"cur_before_id" json:"cur_before_id"`
	CurAfterUniversal  bool         `db:"cur_after_universal" json:"cur_after_universal"`
	CurAfterTime       time.Time    `db:"cur_after_time" json:"cur_after_time"`
	CurAfterID         persist.DBID `db:"cur_after_id" json:"cur_after_id"`
	PagingForward      bool         `db:"paging_forward" json:"paging_forward"`
}

type GetTokensByContractIdPaginateRow

type GetTokensByContractIdPaginateRow struct {
	Token           Token           `db:"token" json:"token"`
	TokenDefinition TokenDefinition `db:"token_definition" json:"token_definition"`
	Contract        Contract        `db:"contract" json:"contract"`
	User            User            `db:"user" json:"user"`
}

type GetTokensByUserIdBatchBatchResults

type GetTokensByUserIdBatchBatchResults struct {
	// contains filtered or unexported fields
}

func (*GetTokensByUserIdBatchBatchResults) Close

func (*GetTokensByUserIdBatchBatchResults) Query

type GetTokensByUserIdBatchParams

type GetTokensByUserIdBatchParams struct {
	OwnerUserID    persist.DBID `db:"owner_user_id" json:"owner_user_id"`
	IncludeHolder  bool         `db:"include_holder" json:"include_holder"`
	IncludeCreator bool         `db:"include_creator" json:"include_creator"`
}

type GetTokensByUserIdBatchRow

type GetTokensByUserIdBatchRow struct {
	Token           Token           `db:"token" json:"token"`
	TokenDefinition TokenDefinition `db:"token_definition" json:"token_definition"`
	Contract        Contract        `db:"contract" json:"contract"`
}

type GetTokensByWalletIdsBatchBatchResults

type GetTokensByWalletIdsBatchBatchResults struct {
	// contains filtered or unexported fields
}

func (*GetTokensByWalletIdsBatchBatchResults) Close

func (*GetTokensByWalletIdsBatchBatchResults) Query

type GetTokensByWalletIdsBatchRow

type GetTokensByWalletIdsBatchRow struct {
	Token           Token           `db:"token" json:"token"`
	TokenDefinition TokenDefinition `db:"token_definition" json:"token_definition"`
}

type GetTopCollectionsForCommunityParams

type GetTopCollectionsForCommunityParams struct {
	Chain   persist.Chain   `db:"chain" json:"chain"`
	Address persist.Address `db:"address" json:"address"`
}

type GetUniqueTokenIdentifiersByTokenIDRow

type GetUniqueTokenIdentifiersByTokenIDRow struct {
	TokenID         persist.HexTokenID `db:"token_id" json:"token_id"`
	ContractAddress persist.Address    `db:"contract_address" json:"contract_address"`
	Chain           persist.Chain      `db:"chain" json:"chain"`
	Quantity        persist.HexString  `db:"quantity" json:"quantity"`
	OwnerAddresses  []string           `db:"owner_addresses" json:"owner_addresses"`
}

type GetUserByAddressAndL1BatchBatchResults

type GetUserByAddressAndL1BatchBatchResults struct {
	// contains filtered or unexported fields
}

func (*GetUserByAddressAndL1BatchBatchResults) Close

func (*GetUserByAddressAndL1BatchBatchResults) QueryRow

func (b *GetUserByAddressAndL1BatchBatchResults) QueryRow(f func(int, User, error))

type GetUserByAddressAndL1BatchParams

type GetUserByAddressAndL1BatchParams struct {
	Address persist.Address `db:"address" json:"address"`
	L1Chain persist.L1Chain `db:"l1_chain" json:"l1_chain"`
}

type GetUserByAddressAndL1Params

type GetUserByAddressAndL1Params struct {
	Address persist.Address `db:"address" json:"address"`
	L1Chain persist.L1Chain `db:"l1_chain" json:"l1_chain"`
}

type GetUserByIdBatchBatchResults

type GetUserByIdBatchBatchResults struct {
	// contains filtered or unexported fields
}

func (*GetUserByIdBatchBatchResults) Close

func (*GetUserByIdBatchBatchResults) QueryRow

func (b *GetUserByIdBatchBatchResults) QueryRow(f func(int, User, error))

type GetUserByUsernameBatchBatchResults

type GetUserByUsernameBatchBatchResults struct {
	// contains filtered or unexported fields
}

func (*GetUserByUsernameBatchBatchResults) Close

func (*GetUserByUsernameBatchBatchResults) QueryRow

func (b *GetUserByUsernameBatchBatchResults) QueryRow(f func(int, User, error))

type GetUserNotificationsBatchBatchResults

type GetUserNotificationsBatchBatchResults struct {
	// contains filtered or unexported fields
}

func (*GetUserNotificationsBatchBatchResults) Close

func (*GetUserNotificationsBatchBatchResults) Query

type GetUserNotificationsBatchParams

type GetUserNotificationsBatchParams struct {
	OwnerID       persist.DBID `db:"owner_id" json:"owner_id"`
	CurBeforeTime time.Time    `db:"cur_before_time" json:"cur_before_time"`
	CurBeforeID   persist.DBID `db:"cur_before_id" json:"cur_before_id"`
	CurAfterTime  time.Time    `db:"cur_after_time" json:"cur_after_time"`
	CurAfterID    persist.DBID `db:"cur_after_id" json:"cur_after_id"`
	PagingForward bool         `db:"paging_forward" json:"paging_forward"`
	Limit         int32        `db:"limit" json:"limit"`
}

type GetUserNotificationsParams

type GetUserNotificationsParams struct {
	OwnerID       persist.DBID `db:"owner_id" json:"owner_id"`
	Limit         int32        `db:"limit" json:"limit"`
	CurBeforeTime time.Time    `db:"cur_before_time" json:"cur_before_time"`
	CurBeforeID   persist.DBID `db:"cur_before_id" json:"cur_before_id"`
	CurAfterTime  time.Time    `db:"cur_after_time" json:"cur_after_time"`
	CurAfterID    persist.DBID `db:"cur_after_id" json:"cur_after_id"`
	PagingForward bool         `db:"paging_forward" json:"paging_forward"`
}

type GetUserRolesByUserIdParams

type GetUserRolesByUserIdParams struct {
	UserID                persist.DBID    `db:"user_id" json:"user_id"`
	Chain                 persist.Chain   `db:"chain" json:"chain"`
	MembershipAddress     persist.Address `db:"membership_address" json:"membership_address"`
	MembershipTokenIds    []string        `db:"membership_token_ids" json:"membership_token_ids"`
	GrantedMembershipRole string          `db:"granted_membership_role" json:"granted_membership_role"`
}

type GetUserUnseenNotificationsParams

type GetUserUnseenNotificationsParams struct {
	OwnerID       persist.DBID `db:"owner_id" json:"owner_id"`
	Limit         int32        `db:"limit" json:"limit"`
	CurBeforeTime time.Time    `db:"cur_before_time" json:"cur_before_time"`
	CurBeforeID   persist.DBID `db:"cur_before_id" json:"cur_before_id"`
	CurAfterTime  time.Time    `db:"cur_after_time" json:"cur_after_time"`
	CurAfterID    persist.DBID `db:"cur_after_id" json:"cur_after_id"`
	PagingForward bool         `db:"paging_forward" json:"paging_forward"`
}

type GetUsersByChainAddressesParams

type GetUsersByChainAddressesParams struct {
	Addresses []string        `db:"addresses" json:"addresses"`
	L1Chain   persist.L1Chain `db:"l1_chain" json:"l1_chain"`
}

type GetUsersByChainAddressesRow

type GetUsersByChainAddressesRow struct {
	ID                   persist.DBID                     `db:"id" json:"id"`
	Deleted              bool                             `db:"deleted" json:"deleted"`
	Version              sql.NullInt32                    `db:"version" json:"version"`
	LastUpdated          time.Time                        `db:"last_updated" json:"last_updated"`
	CreatedAt            time.Time                        `db:"created_at" json:"created_at"`
	Username             sql.NullString                   `db:"username" json:"username"`
	UsernameIdempotent   sql.NullString                   `db:"username_idempotent" json:"username_idempotent"`
	Wallets              persist.WalletList               `db:"wallets" json:"wallets"`
	Bio                  sql.NullString                   `db:"bio" json:"bio"`
	Traits               pgtype.JSONB                     `db:"traits" json:"traits"`
	Universal            bool                             `db:"universal" json:"universal"`
	NotificationSettings persist.UserNotificationSettings `db:"notification_settings" json:"notification_settings"`
	EmailUnsubscriptions persist.EmailUnsubscriptions     `db:"email_unsubscriptions" json:"email_unsubscriptions"`
	FeaturedGallery      *persist.DBID                    `db:"featured_gallery" json:"featured_gallery"`
	PrimaryWalletID      persist.DBID                     `db:"primary_wallet_id" json:"primary_wallet_id"`
	UserExperiences      pgtype.JSONB                     `db:"user_experiences" json:"user_experiences"`
	ProfileImageID       persist.DBID                     `db:"profile_image_id" json:"profile_image_id"`
	Persona              persist.Persona                  `db:"persona" json:"persona"`
	Address              persist.Address                  `db:"address" json:"address"`
}

type GetUsersByIDsParams

type GetUsersByIDsParams struct {
	Limit         int32          `db:"limit" json:"limit"`
	UserIds       []persist.DBID `db:"user_ids" json:"user_ids"`
	CurBeforeTime time.Time      `db:"cur_before_time" json:"cur_before_time"`
	CurBeforeID   persist.DBID   `db:"cur_before_id" json:"cur_before_id"`
	CurAfterTime  time.Time      `db:"cur_after_time" json:"cur_after_time"`
	CurAfterID    persist.DBID   `db:"cur_after_id" json:"cur_after_id"`
	PagingForward bool           `db:"paging_forward" json:"paging_forward"`
}

type GetUsersByPositionPaginateBatchBatchResults

type GetUsersByPositionPaginateBatchBatchResults struct {
	// contains filtered or unexported fields
}

func (*GetUsersByPositionPaginateBatchBatchResults) Close

func (*GetUsersByPositionPaginateBatchBatchResults) Query

type GetUsersByPositionPaginateBatchParams

type GetUsersByPositionPaginateBatchParams struct {
	UserIds      []string `db:"user_ids" json:"user_ids"`
	CurAfterPos  int32    `db:"cur_after_pos" json:"cur_after_pos"`
	CurBeforePos int32    `db:"cur_before_pos" json:"cur_before_pos"`
}

type GetUsersByPositionPersonalizedBatchBatchResults

type GetUsersByPositionPersonalizedBatchBatchResults struct {
	// contains filtered or unexported fields
}

func (*GetUsersByPositionPersonalizedBatchBatchResults) Close

func (*GetUsersByPositionPersonalizedBatchBatchResults) Query

type GetUsersByPositionPersonalizedBatchParams

type GetUsersByPositionPersonalizedBatchParams struct {
	UserIds  []string     `db:"user_ids" json:"user_ids"`
	ViewerID persist.DBID `db:"viewer_id" json:"viewer_id"`
}

type GetUsersBySocialIDsParams

type GetUsersBySocialIDsParams struct {
	SocialAccountType string   `db:"social_account_type" json:"social_account_type"`
	SocialIds         []string `db:"social_ids" json:"social_ids"`
}

type GetUsersByWalletAddressesAndChainsParams

type GetUsersByWalletAddressesAndChainsParams struct {
	WalletAddresses []string `db:"wallet_addresses" json:"wallet_addresses"`
	Chains          []int32  `db:"chains" json:"chains"`
}

type GetUsersByWalletAddressesAndChainsRow

type GetUsersByWalletAddressesAndChainsRow struct {
	Wallet Wallet `db:"wallet" json:"wallet"`
	User   User   `db:"user" json:"user"`
}

type GetUsersWithEmailNotificationsOnForEmailTypeParams

type GetUsersWithEmailNotificationsOnForEmailTypeParams struct {
	Limit               int32        `db:"limit" json:"limit"`
	EmailUnsubscription string       `db:"email_unsubscription" json:"email_unsubscription"`
	CurBeforeTime       time.Time    `db:"cur_before_time" json:"cur_before_time"`
	CurBeforeID         persist.DBID `db:"cur_before_id" json:"cur_before_id"`
	CurAfterTime        time.Time    `db:"cur_after_time" json:"cur_after_time"`
	CurAfterID          persist.DBID `db:"cur_after_id" json:"cur_after_id"`
	EmailTestersOnly    bool         `db:"email_testers_only" json:"email_testers_only"`
	PagingForward       bool         `db:"paging_forward" json:"paging_forward"`
}

type GetUsersWithRolePaginateParams

type GetUsersWithRolePaginateParams struct {
	Limit         int32        `db:"limit" json:"limit"`
	Role          persist.Role `db:"role" json:"role"`
	CurBeforeKey  string       `db:"cur_before_key" json:"cur_before_key"`
	CurBeforeID   persist.DBID `db:"cur_before_id" json:"cur_before_id"`
	CurAfterKey   string       `db:"cur_after_key" json:"cur_after_key"`
	CurAfterID    persist.DBID `db:"cur_after_id" json:"cur_after_id"`
	PagingForward bool         `db:"paging_forward" json:"paging_forward"`
}

type GetUsersWithTraitBatchBatchResults

type GetUsersWithTraitBatchBatchResults struct {
	// contains filtered or unexported fields
}

func (*GetUsersWithTraitBatchBatchResults) Close

func (*GetUsersWithTraitBatchBatchResults) Query

func (b *GetUsersWithTraitBatchBatchResults) Query(f func(int, []User, error))

type GetUsersWithoutSocialsRow

type GetUsersWithoutSocialsRow struct {
	ID      persist.DBID    `db:"id" json:"id"`
	Address persist.Address `db:"address" json:"address"`
	Column3 interface{}     `db:"column_3" json:"column_3"`
	Column4 interface{}     `db:"column_4" json:"column_4"`
}

type GetVisibleCollectionsByIDsPaginateBatchBatchResults

type GetVisibleCollectionsByIDsPaginateBatchBatchResults struct {
	// contains filtered or unexported fields
}

func (*GetVisibleCollectionsByIDsPaginateBatchBatchResults) Close

func (*GetVisibleCollectionsByIDsPaginateBatchBatchResults) Query

type GetVisibleCollectionsByIDsPaginateBatchParams

type GetVisibleCollectionsByIDsPaginateBatchParams struct {
	CollectionIds []string `db:"collection_ids" json:"collection_ids"`
	CurAfterPos   int32    `db:"cur_after_pos" json:"cur_after_pos"`
	CurBeforePos  int32    `db:"cur_before_pos" json:"cur_before_pos"`
}

type GetWalletByAddressAndL1ChainParams

type GetWalletByAddressAndL1ChainParams struct {
	Address persist.Address `db:"address" json:"address"`
	L1Chain persist.L1Chain `db:"l1_chain" json:"l1_chain"`
}

type GetWalletByIDBatchBatchResults

type GetWalletByIDBatchBatchResults struct {
	// contains filtered or unexported fields
}

func (*GetWalletByIDBatchBatchResults) Close

func (*GetWalletByIDBatchBatchResults) QueryRow

func (b *GetWalletByIDBatchBatchResults) QueryRow(f func(int, Wallet, error))

type GetWalletsByUserIDBatchBatchResults

type GetWalletsByUserIDBatchBatchResults struct {
	// contains filtered or unexported fields
}

func (*GetWalletsByUserIDBatchBatchResults) Close

func (*GetWalletsByUserIDBatchBatchResults) Query

func (b *GetWalletsByUserIDBatchBatchResults) Query(f func(int, []Wallet, error))

type GetWindowedTrendingUserIDsParams

type GetWindowedTrendingUserIDsParams struct {
	Limit     int32     `db:"limit" json:"limit"`
	WindowEnd time.Time `db:"window_end" json:"window_end"`
}

type HasLaterGroupedEventParams

type HasLaterGroupedEventParams struct {
	GroupID sql.NullString `db:"group_id" json:"group_id"`
	EventID persist.DBID   `db:"event_id" json:"event_id"`
}

type HasMintedClaimsByUserIDParams

type HasMintedClaimsByUserIDParams struct {
	RecipientUserID       persist.DBID `db:"recipient_user_id" json:"recipient_user_id"`
	HighlightCollectionID string       `db:"highlight_collection_id" json:"highlight_collection_id"`
	MintedStatuses        []string     `db:"minted_statuses" json:"minted_statuses"`
	PendingStatuses       []string     `db:"pending_statuses" json:"pending_statuses"`
}

type HasMintedClaimsByUserIDRow

type HasMintedClaimsByUserIDRow struct {
	HasMinted  bool `db:"has_minted" json:"has_minted"`
	HasPending bool `db:"has_pending" json:"has_pending"`
}

type HasMintedClaimsByWalletAddressParams

type HasMintedClaimsByWalletAddressParams struct {
	RecipientL1Chain      persist.L1Chain `db:"recipient_l1_chain" json:"recipient_l1_chain"`
	RecipientAddress      persist.Address `db:"recipient_address" json:"recipient_address"`
	HighlightCollectionID string          `db:"highlight_collection_id" json:"highlight_collection_id"`
	MintedStatuses        []string        `db:"minted_statuses" json:"minted_statuses"`
	PendingStatuses       []string        `db:"pending_statuses" json:"pending_statuses"`
}

type HasMintedClaimsByWalletAddressRow

type HasMintedClaimsByWalletAddressRow struct {
	HasMinted  bool `db:"has_minted" json:"has_minted"`
	HasPending bool `db:"has_pending" json:"has_pending"`
}

type HighlightMintClaim

type HighlightMintClaim struct {
	ID                    persist.DBID          `db:"id" json:"id"`
	RecipientUserID       persist.DBID          `db:"recipient_user_id" json:"recipient_user_id"`
	RecipientL1Chain      persist.L1Chain       `db:"recipient_l1_chain" json:"recipient_l1_chain"`
	RecipientAddress      persist.Address       `db:"recipient_address" json:"recipient_address"`
	RecipientWalletID     persist.DBID          `db:"recipient_wallet_id" json:"recipient_wallet_id"`
	InternalTokenID       persist.DBID          `db:"internal_token_id" json:"internal_token_id"`
	HighlightCollectionID string                `db:"highlight_collection_id" json:"highlight_collection_id"`
	HighlightClaimID      string                `db:"highlight_claim_id" json:"highlight_claim_id"`
	CollectionAddress     persist.Address       `db:"collection_address" json:"collection_address"`
	CollectionChain       persist.Chain         `db:"collection_chain" json:"collection_chain"`
	MintedTokenID         persist.HexTokenID    `db:"minted_token_id" json:"minted_token_id"`
	MintedTokenMetadata   persist.TokenMetadata `db:"minted_token_metadata" json:"minted_token_metadata"`
	Status                highlight.ClaimStatus `db:"status" json:"status"`
	ErrorMessage          sql.NullString        `db:"error_message" json:"error_message"`
	CreatedAt             time.Time             `db:"created_at" json:"created_at"`
	LastUpdated           time.Time             `db:"last_updated" json:"last_updated"`
	Deleted               bool                  `db:"deleted" json:"deleted"`
}

type InsertCommentMentionParams

type InsertCommentMentionParams struct {
	ID        persist.DBID   `db:"id" json:"id"`
	User      sql.NullString `db:"user" json:"user"`
	Community sql.NullString `db:"community" json:"community"`
	CommentID persist.DBID   `db:"comment_id" json:"comment_id"`
	Start     sql.NullInt32  `db:"start" json:"start"`
	Length    sql.NullInt32  `db:"length" json:"length"`
}

type InsertCommentParams

type InsertCommentParams struct {
	ID        persist.DBID   `db:"id" json:"id"`
	FeedEvent sql.NullString `db:"feed_event" json:"feed_event"`
	Post      sql.NullString `db:"post" json:"post"`
	ActorID   persist.DBID   `db:"actor_id" json:"actor_id"`
	Reply     sql.NullString `db:"reply" json:"reply"`
	Comment   string         `db:"comment" json:"comment"`
}

type InsertMentionParams

type InsertMentionParams struct {
	ID        persist.DBID   `db:"id" json:"id"`
	CommentID persist.DBID   `db:"comment_id" json:"comment_id"`
	Start     sql.NullInt32  `db:"start" json:"start"`
	Length    sql.NullInt32  `db:"length" json:"length"`
	User      sql.NullString `db:"user" json:"user"`
	Community sql.NullString `db:"community" json:"community"`
}

type InsertNonceParams

type InsertNonceParams struct {
	ID    persist.DBID `db:"id" json:"id"`
	Value string       `db:"value" json:"value"`
}

type InsertPostMentionParams

type InsertPostMentionParams struct {
	ID        persist.DBID   `db:"id" json:"id"`
	User      sql.NullString `db:"user" json:"user"`
	Community sql.NullString `db:"community" json:"community"`
	PostID    persist.DBID   `db:"post_id" json:"post_id"`
	Start     sql.NullInt32  `db:"start" json:"start"`
	Length    sql.NullInt32  `db:"length" json:"length"`
}

type InsertPostParams

type InsertPostParams struct {
	ID          persist.DBID     `db:"id" json:"id"`
	TokenIds    persist.DBIDList `db:"token_ids" json:"token_ids"`
	ContractIds persist.DBIDList `db:"contract_ids" json:"contract_ids"`
	ActorID     persist.DBID     `db:"actor_id" json:"actor_id"`
	Caption     sql.NullString   `db:"caption" json:"caption"`
	UserMintUrl sql.NullString   `db:"user_mint_url" json:"user_mint_url"`
}

type InsertSpamContractsParams

type InsertSpamContractsParams struct {
	ID        []string    `db:"id" json:"id"`
	Chain     []int32     `db:"chain" json:"chain"`
	Address   []string    `db:"address" json:"address"`
	CreatedAt []time.Time `db:"created_at" json:"created_at"`
	IsSpam    []bool      `db:"is_spam" json:"is_spam"`
}

type InsertTokenPipelineResultsParams

type InsertTokenPipelineResultsParams struct {
	ProcessingJobID  persist.DBID             `db:"processing_job_id" json:"processing_job_id"`
	TokenProperties  persist.TokenProperties  `db:"token_properties" json:"token_properties"`
	PipelineMetadata persist.PipelineMetadata `db:"pipeline_metadata" json:"pipeline_metadata"`
	ProcessingCause  persist.ProcessingCause  `db:"processing_cause" json:"processing_cause"`
	ProcessorVersion string                   `db:"processor_version" json:"processor_version"`
	RetiringMediaID  persist.DBID             `db:"retiring_media_id" json:"retiring_media_id"`
	Chain            persist.Chain            `db:"chain" json:"chain"`
	ContractAddress  persist.Address          `db:"contract_address" json:"contract_address"`
	TokenID          persist.HexTokenID       `db:"token_id" json:"token_id"`
	NewMediaIsActive bool                     `db:"new_media_is_active" json:"new_media_is_active"`
	NewMediaID       persist.DBID             `db:"new_media_id" json:"new_media_id"`
	DecimalTokenID   persist.DecimalTokenID   `db:"decimal_token_id" json:"decimal_token_id"`
	NewMedia         pgtype.JSONB             `db:"new_media" json:"new_media"`
	NewMetadata      pgtype.JSONB             `db:"new_metadata" json:"new_metadata"`
	NewName          sql.NullString           `db:"new_name" json:"new_name"`
	NewDescription   sql.NullString           `db:"new_description" json:"new_description"`
}

type InsertTokenPipelineResultsRow

type InsertTokenPipelineResultsRow struct {
	TokenMedia TokenMedia `db:"token_media" json:"token_media"`
}

type InsertUserParams

type InsertUserParams struct {
	ID                   persist.DBID                 `db:"id" json:"id"`
	Username             sql.NullString               `db:"username" json:"username"`
	UsernameIdempotent   sql.NullString               `db:"username_idempotent" json:"username_idempotent"`
	Bio                  sql.NullString               `db:"bio" json:"bio"`
	Universal            bool                         `db:"universal" json:"universal"`
	EmailUnsubscriptions persist.EmailUnsubscriptions `db:"email_unsubscriptions" json:"email_unsubscriptions"`
}

type InsertWalletParams

type InsertWalletParams struct {
	ID         persist.DBID       `db:"id" json:"id"`
	Address    persist.Address    `db:"address" json:"address"`
	Chain      persist.Chain      `db:"chain" json:"chain"`
	L1Chain    persist.L1Chain    `db:"l1_chain" json:"l1_chain"`
	WalletType persist.WalletType `db:"wallet_type" json:"wallet_type"`
	UserID     persist.DBID       `db:"user_id" json:"user_id"`
}

type IsActorActionActiveParams

type IsActorActionActiveParams struct {
	ActorID     sql.NullString   `db:"actor_id" json:"actor_id"`
	Actions     []persist.Action `db:"actions" json:"actions"`
	WindowStart time.Time        `db:"window_start" json:"window_start"`
	WindowEnd   time.Time        `db:"window_end" json:"window_end"`
}

type IsActorGalleryActiveParams

type IsActorGalleryActiveParams struct {
	ActorID     sql.NullString `db:"actor_id" json:"actor_id"`
	GalleryID   persist.DBID   `db:"gallery_id" json:"gallery_id"`
	WindowStart time.Time      `db:"window_start" json:"window_start"`
	WindowEnd   time.Time      `db:"window_end" json:"window_end"`
}

type IsActorSubjectActionActiveParams

type IsActorSubjectActionActiveParams struct {
	ActorID     sql.NullString   `db:"actor_id" json:"actor_id"`
	SubjectID   persist.DBID     `db:"subject_id" json:"subject_id"`
	Actions     []persist.Action `db:"actions" json:"actions"`
	WindowStart time.Time        `db:"window_start" json:"window_start"`
	WindowEnd   time.Time        `db:"window_end" json:"window_end"`
}

type IsActorSubjectActiveParams

type IsActorSubjectActiveParams struct {
	ActorID     sql.NullString `db:"actor_id" json:"actor_id"`
	SubjectID   persist.DBID   `db:"subject_id" json:"subject_id"`
	WindowStart time.Time      `db:"window_start" json:"window_start"`
	WindowEnd   time.Time      `db:"window_end" json:"window_end"`
}

type IsMemberOfCommunityParams

type IsMemberOfCommunityParams struct {
	UserID      persist.DBID `db:"user_id" json:"user_id"`
	CommunityID persist.DBID `db:"community_id" json:"community_id"`
}

type LegacyNonce

type LegacyNonce struct {
	ID          persist.DBID    `db:"id" json:"id"`
	Deleted     bool            `db:"deleted" json:"deleted"`
	Version     sql.NullInt32   `db:"version" json:"version"`
	LastUpdated time.Time       `db:"last_updated" json:"last_updated"`
	CreatedAt   time.Time       `db:"created_at" json:"created_at"`
	UserID      persist.DBID    `db:"user_id" json:"user_id"`
	Address     persist.Address `db:"address" json:"address"`
	Value       sql.NullString  `db:"value" json:"value"`
	Chain       persist.Chain   `db:"chain" json:"chain"`
	L1Chain     persist.L1Chain `db:"l1_chain" json:"l1_chain"`
}

type LegacyView

type LegacyView struct {
	UserID      persist.DBID  `db:"user_id" json:"user_id"`
	ViewCount   sql.NullInt32 `db:"view_count" json:"view_count"`
	LastUpdated time.Time     `db:"last_updated" json:"last_updated"`
	CreatedAt   time.Time     `db:"created_at" json:"created_at"`
	Deleted     sql.NullBool  `db:"deleted" json:"deleted"`
}

type MarketplaceContract

type MarketplaceContract struct {
	ContractID persist.DBID `db:"contract_id" json:"contract_id"`
}

type MediaValidationRule

type MediaValidationRule struct {
	ID        persist.DBID `db:"id" json:"id"`
	CreatedAt time.Time    `db:"created_at" json:"created_at"`
	MediaType string       `db:"media_type" json:"media_type"`
	Property  string       `db:"property" json:"property"`
	Required  bool         `db:"required" json:"required"`
}

type Membership

type Membership struct {
	ID          persist.DBID            `db:"id" json:"id"`
	Deleted     bool                    `db:"deleted" json:"deleted"`
	Version     sql.NullInt32           `db:"version" json:"version"`
	CreatedAt   time.Time               `db:"created_at" json:"created_at"`
	LastUpdated time.Time               `db:"last_updated" json:"last_updated"`
	TokenID     persist.DBID            `db:"token_id" json:"token_id"`
	Name        sql.NullString          `db:"name" json:"name"`
	AssetUrl    sql.NullString          `db:"asset_url" json:"asset_url"`
	Owners      persist.TokenHolderList `db:"owners" json:"owners"`
}

type Mention

type Mention struct {
	ID          persist.DBID  `db:"id" json:"id"`
	PostID      persist.DBID  `db:"post_id" json:"post_id"`
	CommentID   persist.DBID  `db:"comment_id" json:"comment_id"`
	UserID      persist.DBID  `db:"user_id" json:"user_id"`
	Start       sql.NullInt32 `db:"start" json:"start"`
	Length      sql.NullInt32 `db:"length" json:"length"`
	CreatedAt   time.Time     `db:"created_at" json:"created_at"`
	Deleted     bool          `db:"deleted" json:"deleted"`
	CommunityID persist.DBID  `db:"community_id" json:"community_id"`
}

type Merch

type Merch struct {
	ID           persist.DBID       `db:"id" json:"id"`
	Deleted      bool               `db:"deleted" json:"deleted"`
	Version      sql.NullInt32      `db:"version" json:"version"`
	CreatedAt    time.Time          `db:"created_at" json:"created_at"`
	LastUpdated  time.Time          `db:"last_updated" json:"last_updated"`
	TokenID      persist.HexTokenID `db:"token_id" json:"token_id"`
	ObjectType   int32              `db:"object_type" json:"object_type"`
	DiscountCode sql.NullString     `db:"discount_code" json:"discount_code"`
	Redeemed     bool               `db:"redeemed" json:"redeemed"`
}

type MigrationValidation

type MigrationValidation struct {
	ID                       persist.DBID   `db:"id" json:"id"`
	MediaID                  persist.DBID   `db:"media_id" json:"media_id"`
	ProcessingJobID          persist.DBID   `db:"processing_job_id" json:"processing_job_id"`
	Chain                    persist.Chain  `db:"chain" json:"chain"`
	Contract                 sql.NullString `db:"contract" json:"contract"`
	TokenID                  persist.DBID   `db:"token_id" json:"token_id"`
	MediaType                interface{}    `db:"media_type" json:"media_type"`
	RemappedTo               interface{}    `db:"remapped_to" json:"remapped_to"`
	OldMedia                 pgtype.JSONB   `db:"old_media" json:"old_media"`
	NewMedia                 pgtype.JSONB   `db:"new_media" json:"new_media"`
	MediaTypeValidation      string         `db:"media_type_validation" json:"media_type_validation"`
	DimensionsValidation     string         `db:"dimensions_validation" json:"dimensions_validation"`
	MediaUrlValidation       string         `db:"media_url_validation" json:"media_url_validation"`
	ThumbnailUrlValidation   string         `db:"thumbnail_url_validation" json:"thumbnail_url_validation"`
	LivePreviewUrlValidation string         `db:"live_preview_url_validation" json:"live_preview_url_validation"`
	LastRefreshed            interface{}    `db:"last_refreshed" json:"last_refreshed"`
}

type Nonce

type Nonce struct {
	ID        persist.DBID `db:"id" json:"id"`
	Value     string       `db:"value" json:"value"`
	CreatedAt time.Time    `db:"created_at" json:"created_at"`
	Consumed  bool         `db:"consumed" json:"consumed"`
}

type Notification

type Notification struct {
	ID          persist.DBID             `db:"id" json:"id"`
	Deleted     bool                     `db:"deleted" json:"deleted"`
	OwnerID     persist.DBID             `db:"owner_id" json:"owner_id"`
	Version     sql.NullInt32            `db:"version" json:"version"`
	LastUpdated time.Time                `db:"last_updated" json:"last_updated"`
	CreatedAt   time.Time                `db:"created_at" json:"created_at"`
	Action      persist.Action           `db:"action" json:"action"`
	Data        persist.NotificationData `db:"data" json:"data"`
	EventIds    persist.DBIDList         `db:"event_ids" json:"event_ids"`
	FeedEventID persist.DBID             `db:"feed_event_id" json:"feed_event_id"`
	CommentID   persist.DBID             `db:"comment_id" json:"comment_id"`
	GalleryID   persist.DBID             `db:"gallery_id" json:"gallery_id"`
	Seen        bool                     `db:"seen" json:"seen"`
	Amount      int32                    `db:"amount" json:"amount"`
	PostID      persist.DBID             `db:"post_id" json:"post_id"`
	TokenID     persist.DBID             `db:"token_id" json:"token_id"`
	MentionID   persist.DBID             `db:"mention_id" json:"mention_id"`
	CommunityID persist.DBID             `db:"community_id" json:"community_id"`
}

type OwnedCommunity

type OwnedCommunity struct {
	UserID         persist.DBID `db:"user_id" json:"user_id"`
	UserCreatedAt  time.Time    `db:"user_created_at" json:"user_created_at"`
	CommunityID    persist.DBID `db:"community_id" json:"community_id"`
	OwnedCount     int64        `db:"owned_count" json:"owned_count"`
	DisplayedCount int64        `db:"displayed_count" json:"displayed_count"`
	Displayed      bool         `db:"displayed" json:"displayed"`
	LastUpdated    time.Time    `db:"last_updated" json:"last_updated"`
}

type OwnedContract

type OwnedContract struct {
	UserID         persist.DBID `db:"user_id" json:"user_id"`
	UserCreatedAt  time.Time    `db:"user_created_at" json:"user_created_at"`
	ContractID     persist.DBID `db:"contract_id" json:"contract_id"`
	OwnedCount     int64        `db:"owned_count" json:"owned_count"`
	DisplayedCount int64        `db:"displayed_count" json:"displayed_count"`
	Displayed      bool         `db:"displayed" json:"displayed"`
	LastUpdated    time.Time    `db:"last_updated" json:"last_updated"`
}

type PaginateAdmiresByCommentIDBatchBatchResults

type PaginateAdmiresByCommentIDBatchBatchResults struct {
	// contains filtered or unexported fields
}

func (*PaginateAdmiresByCommentIDBatchBatchResults) Close

func (*PaginateAdmiresByCommentIDBatchBatchResults) Query

type PaginateAdmiresByCommentIDBatchParams

type PaginateAdmiresByCommentIDBatchParams struct {
	CommentID     persist.DBID `db:"comment_id" json:"comment_id"`
	CurBeforeTime time.Time    `db:"cur_before_time" json:"cur_before_time"`
	CurBeforeID   persist.DBID `db:"cur_before_id" json:"cur_before_id"`
	CurAfterTime  time.Time    `db:"cur_after_time" json:"cur_after_time"`
	CurAfterID    persist.DBID `db:"cur_after_id" json:"cur_after_id"`
	PagingForward bool         `db:"paging_forward" json:"paging_forward"`
	Limit         int32        `db:"limit" json:"limit"`
}

type PaginateAdmiresByFeedEventIDBatchBatchResults

type PaginateAdmiresByFeedEventIDBatchBatchResults struct {
	// contains filtered or unexported fields
}

func (*PaginateAdmiresByFeedEventIDBatchBatchResults) Close

func (*PaginateAdmiresByFeedEventIDBatchBatchResults) Query

type PaginateAdmiresByFeedEventIDBatchParams

type PaginateAdmiresByFeedEventIDBatchParams struct {
	FeedEventID   persist.DBID `db:"feed_event_id" json:"feed_event_id"`
	CurBeforeTime time.Time    `db:"cur_before_time" json:"cur_before_time"`
	CurBeforeID   persist.DBID `db:"cur_before_id" json:"cur_before_id"`
	CurAfterTime  time.Time    `db:"cur_after_time" json:"cur_after_time"`
	CurAfterID    persist.DBID `db:"cur_after_id" json:"cur_after_id"`
	PagingForward bool         `db:"paging_forward" json:"paging_forward"`
	Limit         int32        `db:"limit" json:"limit"`
}

type PaginateAdmiresByPostIDBatchBatchResults

type PaginateAdmiresByPostIDBatchBatchResults struct {
	// contains filtered or unexported fields
}

func (*PaginateAdmiresByPostIDBatchBatchResults) Close

func (*PaginateAdmiresByPostIDBatchBatchResults) Query

type PaginateAdmiresByPostIDBatchParams

type PaginateAdmiresByPostIDBatchParams struct {
	PostID        persist.DBID `db:"post_id" json:"post_id"`
	CurBeforeTime time.Time    `db:"cur_before_time" json:"cur_before_time"`
	CurBeforeID   persist.DBID `db:"cur_before_id" json:"cur_before_id"`
	CurAfterTime  time.Time    `db:"cur_after_time" json:"cur_after_time"`
	CurAfterID    persist.DBID `db:"cur_after_id" json:"cur_after_id"`
	PagingForward bool         `db:"paging_forward" json:"paging_forward"`
	Limit         int32        `db:"limit" json:"limit"`
}

type PaginateAdmiresByTokenIDBatchBatchResults

type PaginateAdmiresByTokenIDBatchBatchResults struct {
	// contains filtered or unexported fields
}

func (*PaginateAdmiresByTokenIDBatchBatchResults) Close

func (*PaginateAdmiresByTokenIDBatchBatchResults) Query

type PaginateAdmiresByTokenIDBatchParams

type PaginateAdmiresByTokenIDBatchParams struct {
	TokenID       persist.DBID `db:"token_id" json:"token_id"`
	OnlyForActor  bool         `db:"only_for_actor" json:"only_for_actor"`
	ActorID       persist.DBID `db:"actor_id" json:"actor_id"`
	CurBeforeTime time.Time    `db:"cur_before_time" json:"cur_before_time"`
	CurBeforeID   persist.DBID `db:"cur_before_id" json:"cur_before_id"`
	CurAfterTime  time.Time    `db:"cur_after_time" json:"cur_after_time"`
	CurAfterID    persist.DBID `db:"cur_after_id" json:"cur_after_id"`
	PagingForward bool         `db:"paging_forward" json:"paging_forward"`
	Limit         int32        `db:"limit" json:"limit"`
}

type PaginateCommentsByFeedEventIDBatchBatchResults

type PaginateCommentsByFeedEventIDBatchBatchResults struct {
	// contains filtered or unexported fields
}

func (*PaginateCommentsByFeedEventIDBatchBatchResults) Close

func (*PaginateCommentsByFeedEventIDBatchBatchResults) Query

type PaginateCommentsByFeedEventIDBatchParams

type PaginateCommentsByFeedEventIDBatchParams struct {
	FeedEventID   persist.DBID `db:"feed_event_id" json:"feed_event_id"`
	CurBeforeTime time.Time    `db:"cur_before_time" json:"cur_before_time"`
	CurBeforeID   persist.DBID `db:"cur_before_id" json:"cur_before_id"`
	CurAfterTime  time.Time    `db:"cur_after_time" json:"cur_after_time"`
	CurAfterID    persist.DBID `db:"cur_after_id" json:"cur_after_id"`
	PagingForward bool         `db:"paging_forward" json:"paging_forward"`
	Limit         int32        `db:"limit" json:"limit"`
}

type PaginateCommentsByPostIDBatchBatchResults

type PaginateCommentsByPostIDBatchBatchResults struct {
	// contains filtered or unexported fields
}

func (*PaginateCommentsByPostIDBatchBatchResults) Close

func (*PaginateCommentsByPostIDBatchBatchResults) Query

type PaginateCommentsByPostIDBatchParams

type PaginateCommentsByPostIDBatchParams struct {
	PostID        persist.DBID `db:"post_id" json:"post_id"`
	CurBeforeTime time.Time    `db:"cur_before_time" json:"cur_before_time"`
	CurBeforeID   persist.DBID `db:"cur_before_id" json:"cur_before_id"`
	CurAfterTime  time.Time    `db:"cur_after_time" json:"cur_after_time"`
	CurAfterID    persist.DBID `db:"cur_after_id" json:"cur_after_id"`
	PagingForward bool         `db:"paging_forward" json:"paging_forward"`
	Limit         int32        `db:"limit" json:"limit"`
}

type PaginateGlobalFeedParams

type PaginateGlobalFeedParams struct {
	CurBeforeTime time.Time    `db:"cur_before_time" json:"cur_before_time"`
	CurBeforeID   persist.DBID `db:"cur_before_id" json:"cur_before_id"`
	CurAfterTime  time.Time    `db:"cur_after_time" json:"cur_after_time"`
	CurAfterID    persist.DBID `db:"cur_after_id" json:"cur_after_id"`
	ViewerID      persist.DBID `db:"viewer_id" json:"viewer_id"`
	PagingForward bool         `db:"paging_forward" json:"paging_forward"`
	Limit         int32        `db:"limit" json:"limit"`
}

type PaginateHoldersByCommunityIDBatchResults

type PaginateHoldersByCommunityIDBatchResults struct {
	// contains filtered or unexported fields
}

func (*PaginateHoldersByCommunityIDBatchResults) Close

func (*PaginateHoldersByCommunityIDBatchResults) Query

type PaginateHoldersByCommunityIDParams

type PaginateHoldersByCommunityIDParams struct {
	CurBeforeTime time.Time     `db:"cur_before_time" json:"cur_before_time"`
	CurBeforeID   persist.DBID  `db:"cur_before_id" json:"cur_before_id"`
	CurAfterTime  time.Time     `db:"cur_after_time" json:"cur_after_time"`
	CurAfterID    persist.DBID  `db:"cur_after_id" json:"cur_after_id"`
	PagingForward bool          `db:"paging_forward" json:"paging_forward"`
	Limit         sql.NullInt32 `db:"limit" json:"limit"`
	CommunityID   persist.DBID  `db:"community_id" json:"community_id"`
}

type PaginateInteractionsByFeedEventIDBatchBatchResults

type PaginateInteractionsByFeedEventIDBatchBatchResults struct {
	// contains filtered or unexported fields
}

func (*PaginateInteractionsByFeedEventIDBatchBatchResults) Close

func (*PaginateInteractionsByFeedEventIDBatchBatchResults) Query

type PaginateInteractionsByFeedEventIDBatchParams

type PaginateInteractionsByFeedEventIDBatchParams struct {
	AdmireTag     int32        `db:"admire_tag" json:"admire_tag"`
	FeedEventID   persist.DBID `db:"feed_event_id" json:"feed_event_id"`
	CurBeforeTag  int32        `db:"cur_before_tag" json:"cur_before_tag"`
	CurBeforeTime time.Time    `db:"cur_before_time" json:"cur_before_time"`
	CurBeforeID   persist.DBID `db:"cur_before_id" json:"cur_before_id"`
	CurAfterTag   int32        `db:"cur_after_tag" json:"cur_after_tag"`
	CurAfterTime  time.Time    `db:"cur_after_time" json:"cur_after_time"`
	CurAfterID    persist.DBID `db:"cur_after_id" json:"cur_after_id"`
	CommentTag    int32        `db:"comment_tag" json:"comment_tag"`
	PagingForward bool         `db:"paging_forward" json:"paging_forward"`
	Limit         int32        `db:"limit" json:"limit"`
}

type PaginateInteractionsByFeedEventIDBatchRow

type PaginateInteractionsByFeedEventIDBatchRow struct {
	CreatedAt time.Time    `db:"created_at" json:"created_at"`
	ID        persist.DBID `db:"id" json:"id"`
	Tag       int32        `db:"tag" json:"tag"`
}

type PaginateInteractionsByPostIDBatchBatchResults

type PaginateInteractionsByPostIDBatchBatchResults struct {
	// contains filtered or unexported fields
}

func (*PaginateInteractionsByPostIDBatchBatchResults) Close

func (*PaginateInteractionsByPostIDBatchBatchResults) Query

type PaginateInteractionsByPostIDBatchParams

type PaginateInteractionsByPostIDBatchParams struct {
	AdmireTag     int32        `db:"admire_tag" json:"admire_tag"`
	PostID        persist.DBID `db:"post_id" json:"post_id"`
	CurBeforeTag  int32        `db:"cur_before_tag" json:"cur_before_tag"`
	CurBeforeTime time.Time    `db:"cur_before_time" json:"cur_before_time"`
	CurBeforeID   persist.DBID `db:"cur_before_id" json:"cur_before_id"`
	CurAfterTag   int32        `db:"cur_after_tag" json:"cur_after_tag"`
	CurAfterTime  time.Time    `db:"cur_after_time" json:"cur_after_time"`
	CurAfterID    persist.DBID `db:"cur_after_id" json:"cur_after_id"`
	CommentTag    int32        `db:"comment_tag" json:"comment_tag"`
	PagingForward bool         `db:"paging_forward" json:"paging_forward"`
	Limit         int32        `db:"limit" json:"limit"`
}

type PaginateInteractionsByPostIDBatchRow

type PaginateInteractionsByPostIDBatchRow struct {
	CreatedAt time.Time    `db:"created_at" json:"created_at"`
	ID        persist.DBID `db:"id" json:"id"`
	Tag       int32        `db:"tag" json:"tag"`
}

type PaginatePersonalFeedByUserIDParams

type PaginatePersonalFeedByUserIDParams struct {
	Follower      persist.DBID `db:"follower" json:"follower"`
	CurBeforeTime time.Time    `db:"cur_before_time" json:"cur_before_time"`
	CurBeforeID   persist.DBID `db:"cur_before_id" json:"cur_before_id"`
	CurAfterTime  time.Time    `db:"cur_after_time" json:"cur_after_time"`
	CurAfterID    persist.DBID `db:"cur_after_id" json:"cur_after_id"`
	PagingForward bool         `db:"paging_forward" json:"paging_forward"`
	Limit         int32        `db:"limit" json:"limit"`
}

type PaginatePostsByCommunityIDBatchResults

type PaginatePostsByCommunityIDBatchResults struct {
	// contains filtered or unexported fields
}

func (*PaginatePostsByCommunityIDBatchResults) Close

func (*PaginatePostsByCommunityIDBatchResults) Query

func (b *PaginatePostsByCommunityIDBatchResults) Query(f func(int, []Post, error))

type PaginatePostsByCommunityIDParams

type PaginatePostsByCommunityIDParams struct {
	CommunityID   persist.DBID `db:"community_id" json:"community_id"`
	CurBeforeTime time.Time    `db:"cur_before_time" json:"cur_before_time"`
	CurBeforeID   persist.DBID `db:"cur_before_id" json:"cur_before_id"`
	CurAfterTime  time.Time    `db:"cur_after_time" json:"cur_after_time"`
	CurAfterID    persist.DBID `db:"cur_after_id" json:"cur_after_id"`
	PagingForward bool         `db:"paging_forward" json:"paging_forward"`
	Limit         int32        `db:"limit" json:"limit"`
}

type PaginatePostsByContractIDAndProjectIDParams

type PaginatePostsByContractIDAndProjectIDParams struct {
	CurBeforeTime time.Time    `db:"cur_before_time" json:"cur_before_time"`
	CurBeforeID   persist.DBID `db:"cur_before_id" json:"cur_before_id"`
	CurAfterTime  time.Time    `db:"cur_after_time" json:"cur_after_time"`
	CurAfterID    persist.DBID `db:"cur_after_id" json:"cur_after_id"`
	PagingForward bool         `db:"paging_forward" json:"paging_forward"`
	Limit         int32        `db:"limit" json:"limit"`
	ContractID    persist.DBID `db:"contract_id" json:"contract_id"`
	ProjectIDInt  int32        `db:"project_id_int" json:"project_id_int"`
}

type PaginatePostsByContractIDBatchResults

type PaginatePostsByContractIDBatchResults struct {
	// contains filtered or unexported fields
}

func (*PaginatePostsByContractIDBatchResults) Close

func (*PaginatePostsByContractIDBatchResults) Query

func (b *PaginatePostsByContractIDBatchResults) Query(f func(int, []Post, error))

type PaginatePostsByContractIDParams

type PaginatePostsByContractIDParams struct {
	ContractID    persist.DBID `db:"contract_id" json:"contract_id"`
	CurBeforeTime time.Time    `db:"cur_before_time" json:"cur_before_time"`
	CurBeforeID   persist.DBID `db:"cur_before_id" json:"cur_before_id"`
	CurAfterTime  time.Time    `db:"cur_after_time" json:"cur_after_time"`
	CurAfterID    persist.DBID `db:"cur_after_id" json:"cur_after_id"`
	PagingForward bool         `db:"paging_forward" json:"paging_forward"`
	Limit         int32        `db:"limit" json:"limit"`
}

type PaginatePostsByUserIDParams

type PaginatePostsByUserIDParams struct {
	UserID        persist.DBID `db:"user_id" json:"user_id"`
	CurBeforeTime time.Time    `db:"cur_before_time" json:"cur_before_time"`
	CurBeforeID   persist.DBID `db:"cur_before_id" json:"cur_before_id"`
	CurAfterTime  time.Time    `db:"cur_after_time" json:"cur_after_time"`
	CurAfterID    persist.DBID `db:"cur_after_id" json:"cur_after_id"`
	PagingForward bool         `db:"paging_forward" json:"paging_forward"`
	Limit         int32        `db:"limit" json:"limit"`
}

type PaginateRepliesByCommentIDBatchBatchResults

type PaginateRepliesByCommentIDBatchBatchResults struct {
	// contains filtered or unexported fields
}

func (*PaginateRepliesByCommentIDBatchBatchResults) Close

func (*PaginateRepliesByCommentIDBatchBatchResults) Query

type PaginateRepliesByCommentIDBatchParams

type PaginateRepliesByCommentIDBatchParams struct {
	CommentID     persist.DBID `db:"comment_id" json:"comment_id"`
	CurBeforeTime time.Time    `db:"cur_before_time" json:"cur_before_time"`
	CurBeforeID   persist.DBID `db:"cur_before_id" json:"cur_before_id"`
	CurAfterTime  time.Time    `db:"cur_after_time" json:"cur_after_time"`
	CurAfterID    persist.DBID `db:"cur_after_id" json:"cur_after_id"`
	PagingForward bool         `db:"paging_forward" json:"paging_forward"`
	Limit         int32        `db:"limit" json:"limit"`
}

type PaginateTokensAdmiredByUserIDBatchBatchResults

type PaginateTokensAdmiredByUserIDBatchBatchResults struct {
	// contains filtered or unexported fields
}

func (*PaginateTokensAdmiredByUserIDBatchBatchResults) Close

func (*PaginateTokensAdmiredByUserIDBatchBatchResults) Query

type PaginateTokensAdmiredByUserIDBatchParams

type PaginateTokensAdmiredByUserIDBatchParams struct {
	UserID        persist.DBID `db:"user_id" json:"user_id"`
	CurBeforeTime time.Time    `db:"cur_before_time" json:"cur_before_time"`
	CurBeforeID   persist.DBID `db:"cur_before_id" json:"cur_before_id"`
	CurAfterTime  time.Time    `db:"cur_after_time" json:"cur_after_time"`
	CurAfterID    persist.DBID `db:"cur_after_id" json:"cur_after_id"`
	PagingForward bool         `db:"paging_forward" json:"paging_forward"`
	Limit         int32        `db:"limit" json:"limit"`
}

type PaginateTokensAdmiredByUserIDBatchRow

type PaginateTokensAdmiredByUserIDBatchRow struct {
	Token  Token  `db:"token" json:"token"`
	Admire Admire `db:"admire" json:"admire"`
}

type PaginateTokensByCommunityIDBatchResults

type PaginateTokensByCommunityIDBatchResults struct {
	// contains filtered or unexported fields
}

func (*PaginateTokensByCommunityIDBatchResults) Close

func (*PaginateTokensByCommunityIDBatchResults) Query

type PaginateTokensByCommunityIDParams

type PaginateTokensByCommunityIDParams struct {
	CommunityID   persist.DBID `db:"community_id" json:"community_id"`
	CurBeforeTime time.Time    `db:"cur_before_time" json:"cur_before_time"`
	CurBeforeID   persist.DBID `db:"cur_before_id" json:"cur_before_id"`
	CurAfterTime  time.Time    `db:"cur_after_time" json:"cur_after_time"`
	CurAfterID    persist.DBID `db:"cur_after_id" json:"cur_after_id"`
	PagingForward bool         `db:"paging_forward" json:"paging_forward"`
	Limit         int32        `db:"limit" json:"limit"`
}

type PaginateTokensByCommunityIDRow

type PaginateTokensByCommunityIDRow struct {
	Token           Token           `db:"token" json:"token"`
	TokenDefinition TokenDefinition `db:"token_definition" json:"token_definition"`
	Contract        Contract        `db:"contract" json:"contract"`
}

type PiiAccountCreationInfo

type PiiAccountCreationInfo struct {
	UserID    persist.DBID `db:"user_id" json:"user_id"`
	IpAddress string       `db:"ip_address" json:"ip_address"`
	CreatedAt time.Time    `db:"created_at" json:"created_at"`
}

type PiiForUser

type PiiForUser struct {
	UserID                    persist.DBID    `db:"user_id" json:"user_id"`
	PiiUnverifiedEmailAddress persist.Email   `db:"pii_unverified_email_address" json:"pii_unverified_email_address"`
	Deleted                   bool            `db:"deleted" json:"deleted"`
	PiiSocials                persist.Socials `db:"pii_socials" json:"pii_socials"`
	PiiVerifiedEmailAddress   persist.Email   `db:"pii_verified_email_address" json:"pii_verified_email_address"`
}

type PiiSocialsAuth

type PiiSocialsAuth struct {
	ID           persist.DBID           `db:"id" json:"id"`
	Deleted      bool                   `db:"deleted" json:"deleted"`
	Version      sql.NullInt32          `db:"version" json:"version"`
	CreatedAt    time.Time              `db:"created_at" json:"created_at"`
	LastUpdated  time.Time              `db:"last_updated" json:"last_updated"`
	UserID       persist.DBID           `db:"user_id" json:"user_id"`
	Provider     persist.SocialProvider `db:"provider" json:"provider"`
	AccessToken  sql.NullString         `db:"access_token" json:"access_token"`
	RefreshToken sql.NullString         `db:"refresh_token" json:"refresh_token"`
}

type PiiUserView

type PiiUserView struct {
	ID                        persist.DBID                     `db:"id" json:"id"`
	Deleted                   bool                             `db:"deleted" json:"deleted"`
	Version                   sql.NullInt32                    `db:"version" json:"version"`
	LastUpdated               time.Time                        `db:"last_updated" json:"last_updated"`
	CreatedAt                 time.Time                        `db:"created_at" json:"created_at"`
	Username                  sql.NullString                   `db:"username" json:"username"`
	UsernameIdempotent        sql.NullString                   `db:"username_idempotent" json:"username_idempotent"`
	Wallets                   persist.WalletList               `db:"wallets" json:"wallets"`
	Bio                       sql.NullString                   `db:"bio" json:"bio"`
	Traits                    pgtype.JSONB                     `db:"traits" json:"traits"`
	Universal                 bool                             `db:"universal" json:"universal"`
	NotificationSettings      persist.UserNotificationSettings `db:"notification_settings" json:"notification_settings"`
	EmailUnsubscriptions      persist.EmailUnsubscriptions     `db:"email_unsubscriptions" json:"email_unsubscriptions"`
	FeaturedGallery           *persist.DBID                    `db:"featured_gallery" json:"featured_gallery"`
	PrimaryWalletID           persist.DBID                     `db:"primary_wallet_id" json:"primary_wallet_id"`
	UserExperiences           pgtype.JSONB                     `db:"user_experiences" json:"user_experiences"`
	ProfileImageID            persist.DBID                     `db:"profile_image_id" json:"profile_image_id"`
	PiiUnverifiedEmailAddress persist.Email                    `db:"pii_unverified_email_address" json:"pii_unverified_email_address"`
	PiiVerifiedEmailAddress   persist.Email                    `db:"pii_verified_email_address" json:"pii_verified_email_address"`
	PiiSocials                persist.Socials                  `db:"pii_socials" json:"pii_socials"`
}

type Post

type Post struct {
	ID          persist.DBID     `db:"id" json:"id"`
	Version     int32            `db:"version" json:"version"`
	TokenIds    persist.DBIDList `db:"token_ids" json:"token_ids"`
	ContractIds persist.DBIDList `db:"contract_ids" json:"contract_ids"`
	ActorID     persist.DBID     `db:"actor_id" json:"actor_id"`
	Caption     sql.NullString   `db:"caption" json:"caption"`
	CreatedAt   time.Time        `db:"created_at" json:"created_at"`
	LastUpdated time.Time        `db:"last_updated" json:"last_updated"`
	Deleted     bool             `db:"deleted" json:"deleted"`
	IsFirstPost bool             `db:"is_first_post" json:"is_first_post"`
	UserMintUrl sql.NullString   `db:"user_mint_url" json:"user_mint_url"`
}

type PrivyUser

type PrivyUser struct {
	ID          persist.DBID `db:"id" json:"id"`
	PrivyDid    string       `db:"privy_did" json:"privy_did"`
	UserID      persist.DBID `db:"user_id" json:"user_id"`
	CreatedAt   time.Time    `db:"created_at" json:"created_at"`
	LastUpdated time.Time    `db:"last_updated" json:"last_updated"`
	Deleted     bool         `db:"deleted" json:"deleted"`
}

type ProfileImage

type ProfileImage struct {
	ID           persist.DBID               `db:"id" json:"id"`
	UserID       persist.DBID               `db:"user_id" json:"user_id"`
	TokenID      persist.DBID               `db:"token_id" json:"token_id"`
	SourceType   persist.ProfileImageSource `db:"source_type" json:"source_type"`
	Deleted      bool                       `db:"deleted" json:"deleted"`
	CreatedAt    time.Time                  `db:"created_at" json:"created_at"`
	LastUpdated  time.Time                  `db:"last_updated" json:"last_updated"`
	WalletID     persist.DBID               `db:"wallet_id" json:"wallet_id"`
	EnsAvatarUri sql.NullString             `db:"ens_avatar_uri" json:"ens_avatar_uri"`
	EnsDomain    sql.NullString             `db:"ens_domain" json:"ens_domain"`
}

type PushNotificationTicket

type PushNotificationTicket struct {
	ID               persist.DBID `db:"id" json:"id"`
	PushTokenID      persist.DBID `db:"push_token_id" json:"push_token_id"`
	TicketID         string       `db:"ticket_id" json:"ticket_id"`
	CreatedAt        time.Time    `db:"created_at" json:"created_at"`
	CheckAfter       time.Time    `db:"check_after" json:"check_after"`
	NumCheckAttempts int32        `db:"num_check_attempts" json:"num_check_attempts"`
	Deleted          bool         `db:"deleted" json:"deleted"`
	Status           string       `db:"status" json:"status"`
}

type PushNotificationToken

type PushNotificationToken struct {
	ID        persist.DBID `db:"id" json:"id"`
	UserID    persist.DBID `db:"user_id" json:"user_id"`
	PushToken string       `db:"push_token" json:"push_token"`
	CreatedAt time.Time    `db:"created_at" json:"created_at"`
	Deleted   bool         `db:"deleted" json:"deleted"`
}

type Queries

type Queries struct {
	// contains filtered or unexported fields
}

func New

func New(db DBTX) *Queries

func (*Queries) AddCollectionToGallery

func (q *Queries) AddCollectionToGallery(ctx context.Context, arg AddCollectionToGalleryParams) error

func (*Queries) AddManyFollows

func (q *Queries) AddManyFollows(ctx context.Context, arg AddManyFollowsParams) ([]bool, error)

func (*Queries) AddPiiAccountCreationInfo

func (q *Queries) AddPiiAccountCreationInfo(ctx context.Context, arg AddPiiAccountCreationInfoParams) error

func (*Queries) AddSocialToUser

func (q *Queries) AddSocialToUser(ctx context.Context, arg AddSocialToUserParams) error

func (*Queries) AddUserRoles

func (q *Queries) AddUserRoles(ctx context.Context, arg AddUserRolesParams) error

func (*Queries) BlockUser

func (q *Queries) BlockUser(ctx context.Context, arg BlockUserParams) (persist.DBID, error)

func (*Queries) BlockUserFromFeed

func (q *Queries) BlockUserFromFeed(ctx context.Context, arg BlockUserFromFeedParams) error

func (*Queries) CheckUserOwnsAllTokenDbids

func (q *Queries) CheckUserOwnsAllTokenDbids(ctx context.Context, arg CheckUserOwnsAllTokenDbidsParams) (bool, error)

func (*Queries) ClearNotificationsForUser

func (q *Queries) ClearNotificationsForUser(ctx context.Context, ownerID persist.DBID) ([]Notification, error)

func (*Queries) ConsumeNonce

func (q *Queries) ConsumeNonce(ctx context.Context, value string) (Nonce, error)

func (*Queries) CountAdmiresByCommentIDBatch

func (q *Queries) CountAdmiresByCommentIDBatch(ctx context.Context, commentID []persist.DBID) *CountAdmiresByCommentIDBatchBatchResults

func (*Queries) CountAdmiresByFeedEventIDBatch

func (q *Queries) CountAdmiresByFeedEventIDBatch(ctx context.Context, feedEventID []persist.DBID) *CountAdmiresByFeedEventIDBatchBatchResults

func (*Queries) CountAdmiresByPostIDBatch

func (q *Queries) CountAdmiresByPostIDBatch(ctx context.Context, postID []persist.DBID) *CountAdmiresByPostIDBatchBatchResults

func (*Queries) CountAdmiresByTokenIDBatch

func (q *Queries) CountAdmiresByTokenIDBatch(ctx context.Context, tokenID []persist.DBID) *CountAdmiresByTokenIDBatchBatchResults

func (*Queries) CountAllUsers

func (q *Queries) CountAllUsers(ctx context.Context) (int64, error)

func (*Queries) CountCommentsAndRepliesByFeedEventID

func (q *Queries) CountCommentsAndRepliesByFeedEventID(ctx context.Context, feedEventID persist.DBID) (int64, error)

func (*Queries) CountCommentsAndRepliesByPostID

func (q *Queries) CountCommentsAndRepliesByPostID(ctx context.Context, postID persist.DBID) (int64, error)

func (*Queries) CountCommentsByFeedEventIDBatch

func (q *Queries) CountCommentsByFeedEventIDBatch(ctx context.Context, feedEventID []persist.DBID) *CountCommentsByFeedEventIDBatchBatchResults

func (*Queries) CountCommentsByPostIDBatch

func (q *Queries) CountCommentsByPostIDBatch(ctx context.Context, postID []persist.DBID) *CountCommentsByPostIDBatchBatchResults

func (*Queries) CountFollowersByUserID

func (q *Queries) CountFollowersByUserID(ctx context.Context, followee persist.DBID) (int64, error)

func (*Queries) CountGalleriesDisplayingCommunityIDBatch

func (q *Queries) CountGalleriesDisplayingCommunityIDBatch(ctx context.Context, communityID []persist.DBID) *CountGalleriesDisplayingCommunityIDBatchBatchResults

func (*Queries) CountHoldersByCommunityID

func (q *Queries) CountHoldersByCommunityID(ctx context.Context, communityID persist.DBID) (int64, error)

func (*Queries) CountOwnersByContractId

func (q *Queries) CountOwnersByContractId(ctx context.Context, arg CountOwnersByContractIdParams) (int64, error)

func (*Queries) CountPostsByCommunityID

func (q *Queries) CountPostsByCommunityID(ctx context.Context, communityID persist.DBID) (int64, error)

func (*Queries) CountPostsByContractID

func (q *Queries) CountPostsByContractID(ctx context.Context, contractID persist.DBID) (int64, error)

func (*Queries) CountPostsByUserID

func (q *Queries) CountPostsByUserID(ctx context.Context, actorID persist.DBID) (int64, error)

func (*Queries) CountRepliesByCommentIDBatch

func (q *Queries) CountRepliesByCommentIDBatch(ctx context.Context, commentID []persist.DBID) *CountRepliesByCommentIDBatchBatchResults

func (*Queries) CountSharedCommunities

func (q *Queries) CountSharedCommunities(ctx context.Context, arg CountSharedCommunitiesParams) (int64, error)

func (*Queries) CountSharedFollows

func (q *Queries) CountSharedFollows(ctx context.Context, arg CountSharedFollowsParams) (int64, error)

func (*Queries) CountSocialConnections

func (q *Queries) CountSocialConnections(ctx context.Context, arg CountSocialConnectionsParams) (int64, error)

func (*Queries) CountTokensAdmiredByUserID

func (q *Queries) CountTokensAdmiredByUserID(ctx context.Context, actorID persist.DBID) (int64, error)

func (*Queries) CountTokensByCommunityID

func (q *Queries) CountTokensByCommunityID(ctx context.Context, communityID persist.DBID) (int64, error)

func (*Queries) CountTokensByContractId

func (q *Queries) CountTokensByContractId(ctx context.Context, arg CountTokensByContractIdParams) (int64, error)

func (*Queries) CountUserNotifications

func (q *Queries) CountUserNotifications(ctx context.Context, ownerID persist.DBID) (int64, error)

func (*Queries) CountUserUnseenNotifications

func (q *Queries) CountUserUnseenNotifications(ctx context.Context, ownerID persist.DBID) (int64, error)

func (*Queries) CreateAdmireEvent

func (q *Queries) CreateAdmireEvent(ctx context.Context, arg CreateAdmireEventParams) (Event, error)

func (*Queries) CreateAdmireNotification

func (q *Queries) CreateAdmireNotification(ctx context.Context, arg CreateAdmireNotificationParams) (Notification, error)

func (*Queries) CreateAnnouncementNotifications

func (q *Queries) CreateAnnouncementNotifications(ctx context.Context, arg CreateAnnouncementNotificationsParams) ([]Notification, error)

later on, we might want to add a "global" column to notifications or even an enum column like "match" to determine how largely consumed notifications will get searched for for a given user. For example, global notifications will always return for a user and follower notifications will perform the check to see if the user follows the owner of the notification. Where this breaks is how we handle "seen" notifications. Since there is 1:1 notifications to users right now, we can't have a "seen" field on the notification itself. We would have to move seen out into a separate table.

func (*Queries) CreateCollection

func (q *Queries) CreateCollection(ctx context.Context, arg CreateCollectionParams) (persist.DBID, error)

func (*Queries) CreateCollectionEvent

func (q *Queries) CreateCollectionEvent(ctx context.Context, arg CreateCollectionEventParams) (Event, error)

func (*Queries) CreateCommentAdmire

func (q *Queries) CreateCommentAdmire(ctx context.Context, arg CreateCommentAdmireParams) (persist.DBID, error)

func (*Queries) CreateCommentEvent

func (q *Queries) CreateCommentEvent(ctx context.Context, arg CreateCommentEventParams) (Event, error)

func (*Queries) CreateCommentNotification

func (q *Queries) CreateCommentNotification(ctx context.Context, arg CreateCommentNotificationParams) (Notification, error)

func (*Queries) CreateCommunityEvent

func (q *Queries) CreateCommunityEvent(ctx context.Context, arg CreateCommunityEventParams) (Event, error)

func (*Queries) CreateCommunityNotification

func (q *Queries) CreateCommunityNotification(ctx context.Context, arg CreateCommunityNotificationParams) (Notification, error)

func (*Queries) CreateDataOnlyEvent

func (q *Queries) CreateDataOnlyEvent(ctx context.Context, arg CreateDataOnlyEventParams) (Event, error)

func (*Queries) CreateFeedEvent

func (q *Queries) CreateFeedEvent(ctx context.Context, arg CreateFeedEventParams) (FeedEvent, error)

func (*Queries) CreateFeedEventAdmire

func (q *Queries) CreateFeedEventAdmire(ctx context.Context, arg CreateFeedEventAdmireParams) (persist.DBID, error)

func (*Queries) CreateGalleryEvent

func (q *Queries) CreateGalleryEvent(ctx context.Context, arg CreateGalleryEventParams) (Event, error)

func (*Queries) CreateMentionUserNotification

func (q *Queries) CreateMentionUserNotification(ctx context.Context, arg CreateMentionUserNotificationParams) (Notification, error)

func (*Queries) CreatePostAdmire

func (q *Queries) CreatePostAdmire(ctx context.Context, arg CreatePostAdmireParams) (persist.DBID, error)

func (*Queries) CreatePostEvent

func (q *Queries) CreatePostEvent(ctx context.Context, arg CreatePostEventParams) (Event, error)

func (*Queries) CreatePostNotification

func (q *Queries) CreatePostNotification(ctx context.Context, arg CreatePostNotificationParams) (Notification, error)

func (*Queries) CreatePushTickets

func (q *Queries) CreatePushTickets(ctx context.Context, arg CreatePushTicketsParams) error

func (*Queries) CreatePushTokenForUser

func (q *Queries) CreatePushTokenForUser(ctx context.Context, arg CreatePushTokenForUserParams) (PushNotificationToken, error)

func (*Queries) CreateSimpleNotification

func (q *Queries) CreateSimpleNotification(ctx context.Context, arg CreateSimpleNotificationParams) (Notification, error)

func (*Queries) CreateTokenAdmire

func (q *Queries) CreateTokenAdmire(ctx context.Context, arg CreateTokenAdmireParams) (persist.DBID, error)

func (*Queries) CreateTokenEvent

func (q *Queries) CreateTokenEvent(ctx context.Context, arg CreateTokenEventParams) (Event, error)

func (*Queries) CreateTokenNotification

func (q *Queries) CreateTokenNotification(ctx context.Context, arg CreateTokenNotificationParams) (Notification, error)

func (*Queries) CreateUserEvent

func (q *Queries) CreateUserEvent(ctx context.Context, arg CreateUserEventParams) (Event, error)

func (*Queries) CreateUserPostedYourWorkNotification

func (q *Queries) CreateUserPostedYourWorkNotification(ctx context.Context, arg CreateUserPostedYourWorkNotificationParams) (Notification, error)

func (*Queries) CreateViewGalleryNotification

func (q *Queries) CreateViewGalleryNotification(ctx context.Context, arg CreateViewGalleryNotificationParams) (Notification, error)

func (*Queries) DeleteAdmireByID

func (q *Queries) DeleteAdmireByID(ctx context.Context, id persist.DBID) error

func (*Queries) DeleteCollections

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

func (*Queries) DeletePostByID

func (q *Queries) DeletePostByID(ctx context.Context, id persist.DBID) error

func (*Queries) DeletePushTokensByIDs

func (q *Queries) DeletePushTokensByIDs(ctx context.Context, ids []persist.DBID) error

func (*Queries) DeleteTokensBeforeTimestamp

func (q *Queries) DeleteTokensBeforeTimestamp(ctx context.Context, arg DeleteTokensBeforeTimestampParams) (int64, error)

func (*Queries) DeleteUserByID

func (q *Queries) DeleteUserByID(ctx context.Context, id persist.DBID) error

func (*Queries) DeleteUserRoles

func (q *Queries) DeleteUserRoles(ctx context.Context, arg DeleteUserRolesParams) error

func (*Queries) DeleteWalletByID

func (q *Queries) DeleteWalletByID(ctx context.Context, id persist.DBID) error

func (*Queries) GalleryRepoAddCollections

func (q *Queries) GalleryRepoAddCollections(ctx context.Context, arg GalleryRepoAddCollectionsParams) (int64, error)

func (*Queries) GalleryRepoCheckOwnCollections

func (q *Queries) GalleryRepoCheckOwnCollections(ctx context.Context, arg GalleryRepoCheckOwnCollectionsParams) (int64, error)

func (*Queries) GalleryRepoCountAllCollections

func (q *Queries) GalleryRepoCountAllCollections(ctx context.Context, ownerUserID persist.DBID) (int64, error)

func (*Queries) GalleryRepoCountColls

func (q *Queries) GalleryRepoCountColls(ctx context.Context, id persist.DBID) (int64, error)

func (*Queries) GalleryRepoCreate

func (q *Queries) GalleryRepoCreate(ctx context.Context, arg GalleryRepoCreateParams) (Gallery, error)

func (*Queries) GalleryRepoDelete

func (q *Queries) GalleryRepoDelete(ctx context.Context, arg GalleryRepoDeleteParams) error

func (*Queries) GalleryRepoGetByUserIDRaw

func (q *Queries) GalleryRepoGetByUserIDRaw(ctx context.Context, ownerUserID persist.DBID) ([]Gallery, error)

func (*Queries) GalleryRepoGetGalleryCollections

func (q *Queries) GalleryRepoGetGalleryCollections(ctx context.Context, id persist.DBID) ([]persist.DBID, error)

func (*Queries) GalleryRepoGetPreviewsForUserID

func (q *Queries) GalleryRepoGetPreviewsForUserID(ctx context.Context, arg GalleryRepoGetPreviewsForUserIDParams) ([]string, error)

func (*Queries) GalleryRepoUpdate

func (q *Queries) GalleryRepoUpdate(ctx context.Context, arg GalleryRepoUpdateParams) (int64, error)

func (*Queries) GetActiveWallets

func (q *Queries) GetActiveWallets(ctx context.Context) ([]Wallet, error)

func (*Queries) GetActorForGroup

func (q *Queries) GetActorForGroup(ctx context.Context, groupID sql.NullString) (sql.NullString, error)

func (*Queries) GetAdmireByAdmireID

func (q *Queries) GetAdmireByAdmireID(ctx context.Context, id persist.DBID) (Admire, error)

func (*Queries) GetAdmireByAdmireIDBatch

func (q *Queries) GetAdmireByAdmireIDBatch(ctx context.Context, id []persist.DBID) *GetAdmireByAdmireIDBatchBatchResults

func (*Queries) GetAdmiresByActorID

func (q *Queries) GetAdmiresByActorID(ctx context.Context, actorID persist.DBID) ([]Admire, error)

func (*Queries) GetAdmiresByActorIDBatch

func (q *Queries) GetAdmiresByActorIDBatch(ctx context.Context, actorID []persist.DBID) *GetAdmiresByActorIDBatchBatchResults

func (*Queries) GetAdmiresByAdmireIDs

func (q *Queries) GetAdmiresByAdmireIDs(ctx context.Context, admireIds []persist.DBID) ([]Admire, error)

func (*Queries) GetAllTimeTrendingUserIDs

func (q *Queries) GetAllTimeTrendingUserIDs(ctx context.Context, limit int32) ([]persist.DBID, error)

func (*Queries) GetCheckablePushTickets

func (q *Queries) GetCheckablePushTickets(ctx context.Context, limit int32) ([]PushNotificationTicket, error)

func (*Queries) GetCollectionById

func (q *Queries) GetCollectionById(ctx context.Context, id persist.DBID) (Collection, error)

func (*Queries) GetCollectionByIdBatch

func (q *Queries) GetCollectionByIdBatch(ctx context.Context, id []persist.DBID) *GetCollectionByIdBatchBatchResults

func (*Queries) GetCollectionTokensByCollectionID

func (q *Queries) GetCollectionTokensByCollectionID(ctx context.Context, id persist.DBID) (persist.DBIDList, error)

func (*Queries) GetCollectionsByGalleryId

func (q *Queries) GetCollectionsByGalleryId(ctx context.Context, id persist.DBID) ([]Collection, error)

func (*Queries) GetCollectionsByGalleryIdBatch

func (q *Queries) GetCollectionsByGalleryIdBatch(ctx context.Context, id []persist.DBID) *GetCollectionsByGalleryIdBatchBatchResults

func (*Queries) GetCommentByCommentID

func (q *Queries) GetCommentByCommentID(ctx context.Context, id persist.DBID) (Comment, error)

func (*Queries) GetCommentByCommentIDBatch

func (q *Queries) GetCommentByCommentIDBatch(ctx context.Context, id []persist.DBID) *GetCommentByCommentIDBatchBatchResults

func (*Queries) GetCommentsByCommentIDs

func (q *Queries) GetCommentsByCommentIDs(ctx context.Context, commentIds []persist.DBID) ([]Comment, error)

func (*Queries) GetCommunitiesByKeys

func (q *Queries) GetCommunitiesByKeys(ctx context.Context, arg GetCommunitiesByKeysParams) ([]GetCommunitiesByKeysRow, error)

dataloader-config: skip=true Get communities by keys

func (*Queries) GetCommunitiesByTokenDefinitionID

func (q *Queries) GetCommunitiesByTokenDefinitionID(ctx context.Context, tokenDefinitionID []persist.DBID) *GetCommunitiesByTokenDefinitionIDBatchResults

func (*Queries) GetCommunityByID

func (q *Queries) GetCommunityByID(ctx context.Context, id persist.DBID) (Community, error)

func (*Queries) GetCommunityByIDBatch

func (q *Queries) GetCommunityByIDBatch(ctx context.Context, id []persist.DBID) *GetCommunityByIDBatchBatchResults

func (*Queries) GetCommunityByKey

func (*Queries) GetCommunityContractProviders

func (q *Queries) GetCommunityContractProviders(ctx context.Context, contractIds []persist.DBID) ([]CommunityContractProvider, error)

func (*Queries) GetContractByChainAddress

func (q *Queries) GetContractByChainAddress(ctx context.Context, arg GetContractByChainAddressParams) (Contract, error)

func (*Queries) GetContractByID

func (q *Queries) GetContractByID(ctx context.Context, id persist.DBID) (Contract, error)

func (*Queries) GetContractCreatorsByIds

func (q *Queries) GetContractCreatorsByIds(ctx context.Context, contractIds []string) ([]GetContractCreatorsByIdsRow, error)

func (*Queries) GetContractLabels

func (q *Queries) GetContractLabels(ctx context.Context, excludedContracts []string) ([]GetContractLabelsRow, error)

func (*Queries) GetContractsByIDs

func (q *Queries) GetContractsByIDs(ctx context.Context, contractIds []string) ([]GetContractsByIDsRow, error)

func (*Queries) GetContractsByTokenIDs

func (q *Queries) GetContractsByTokenIDs(ctx context.Context, tokenIds []persist.DBID) ([]Contract, error)

func (*Queries) GetContractsDisplayedByUserIDBatch

func (q *Queries) GetContractsDisplayedByUserIDBatch(ctx context.Context, userID []persist.DBID) *GetContractsDisplayedByUserIDBatchBatchResults

func (*Queries) GetCreatorsByCommunityID

func (q *Queries) GetCreatorsByCommunityID(ctx context.Context, communityID []persist.DBID) *GetCreatorsByCommunityIDBatchResults

func (*Queries) GetCurrentTime

func (q *Queries) GetCurrentTime(ctx context.Context) (time.Time, error)

func (*Queries) GetEthereumWalletsForEnsProfileImagesByUserID

func (q *Queries) GetEthereumWalletsForEnsProfileImagesByUserID(ctx context.Context, id persist.DBID) ([]Wallet, error)

func (*Queries) GetEvent

func (q *Queries) GetEvent(ctx context.Context, id persist.DBID) (Event, error)

func (*Queries) GetEventByIdBatch

func (q *Queries) GetEventByIdBatch(ctx context.Context, id []persist.DBID) *GetEventByIdBatchBatchResults

func (*Queries) GetEventsInGroup

func (q *Queries) GetEventsInGroup(ctx context.Context, groupID sql.NullString) ([]Event, error)

func (*Queries) GetEventsInWindow

func (q *Queries) GetEventsInWindow(ctx context.Context, arg GetEventsInWindowParams) ([]Event, error)

func (*Queries) GetExternalFollowGraphSource

func (q *Queries) GetExternalFollowGraphSource(ctx context.Context) ([]GetExternalFollowGraphSourceRow, error)

func (*Queries) GetFarcasterConnections

func (q *Queries) GetFarcasterConnections(ctx context.Context, arg GetFarcasterConnectionsParams) ([]GetFarcasterConnectionsRow, error)

func (*Queries) GetFeedEntityScores

func (q *Queries) GetFeedEntityScores(ctx context.Context, arg GetFeedEntityScoresParams) ([]GetFeedEntityScoresRow, error)

func (*Queries) GetFeedEventByID

func (q *Queries) GetFeedEventByID(ctx context.Context, id persist.DBID) (FeedEvent, error)

func (*Queries) GetFeedEventsByIds

func (q *Queries) GetFeedEventsByIds(ctx context.Context, ids []string) ([]FeedEvent, error)

func (*Queries) GetFollowEdgesByUserID

func (q *Queries) GetFollowEdgesByUserID(ctx context.Context, follower persist.DBID) ([]Follow, error)

func (*Queries) GetFollowGraphSource

func (q *Queries) GetFollowGraphSource(ctx context.Context) ([]GetFollowGraphSourceRow, error)

func (*Queries) GetFollowersByUserIdBatch

func (q *Queries) GetFollowersByUserIdBatch(ctx context.Context, followee []persist.DBID) *GetFollowersByUserIdBatchBatchResults

func (*Queries) GetFollowingByUserIdBatch

func (q *Queries) GetFollowingByUserIdBatch(ctx context.Context, follower []persist.DBID) *GetFollowingByUserIdBatchBatchResults

func (*Queries) GetFrameTokensByCommunityID

This is a temporary query that gets tokens from a community without pagination or any specific ordering. It returns them very quickly, and is currently used to populate community frames. At present, a community is either entirely token-based or contract-based, so only one of these two union clauses will return any tokens (which means it's okay for each clause to have its own ordering). This query was originally written with a union of results from contract_memberships and token_memberships and a single outer select + join on the results of that union, but that prevented the query planner from using indexes correctly (since the referenced tables might be indexed, but the union of results is not). The current method is verbose and brittle, but it's fast!

func (*Queries) GetGalleriesByUserId

func (q *Queries) GetGalleriesByUserId(ctx context.Context, ownerUserID persist.DBID) ([]Gallery, error)

func (*Queries) GetGalleriesByUserIdBatch

func (q *Queries) GetGalleriesByUserIdBatch(ctx context.Context, ownerUserID []persist.DBID) *GetGalleriesByUserIdBatchBatchResults

func (*Queries) GetGalleryByCollectionId

func (q *Queries) GetGalleryByCollectionId(ctx context.Context, id persist.DBID) (Gallery, error)

func (*Queries) GetGalleryByCollectionIdBatch

func (q *Queries) GetGalleryByCollectionIdBatch(ctx context.Context, id []persist.DBID) *GetGalleryByCollectionIdBatchBatchResults

func (*Queries) GetGalleryById

func (q *Queries) GetGalleryById(ctx context.Context, id persist.DBID) (Gallery, error)

func (*Queries) GetGalleryByIdBatch

func (q *Queries) GetGalleryByIdBatch(ctx context.Context, id []persist.DBID) *GetGalleryByIdBatchBatchResults

func (*Queries) GetGalleryEventsInWindow

func (q *Queries) GetGalleryEventsInWindow(ctx context.Context, arg GetGalleryEventsInWindowParams) ([]Event, error)

func (*Queries) GetGalleryIDByCollectionID

func (q *Queries) GetGalleryIDByCollectionID(ctx context.Context, id persist.DBID) (persist.DBID, error)

func (*Queries) GetGalleryTokenMediasByGalleryIDBatch

func (q *Queries) GetGalleryTokenMediasByGalleryIDBatch(ctx context.Context, id []persist.DBID) *GetGalleryTokenMediasByGalleryIDBatchBatchResults

func (*Queries) GetHighlightMintClaimByID

func (q *Queries) GetHighlightMintClaimByID(ctx context.Context, id persist.DBID) (HighlightMintClaim, error)

func (*Queries) GetLastFeedEventForCollection

func (q *Queries) GetLastFeedEventForCollection(ctx context.Context, arg GetLastFeedEventForCollectionParams) (FeedEvent, error)

func (*Queries) GetLastFeedEventForToken

func (q *Queries) GetLastFeedEventForToken(ctx context.Context, arg GetLastFeedEventForTokenParams) (FeedEvent, error)

func (*Queries) GetLastFeedEventForUser

func (q *Queries) GetLastFeedEventForUser(ctx context.Context, arg GetLastFeedEventForUserParams) (FeedEvent, error)

func (*Queries) GetMediaByMediaIdIgnoringStatusBatch

func (q *Queries) GetMediaByMediaIdIgnoringStatusBatch(ctx context.Context, id []persist.DBID) *GetMediaByMediaIdIgnoringStatusBatchBatchResults

func (*Queries) GetMediaByTokenIdentifiersIgnoringStatus

func (q *Queries) GetMediaByTokenIdentifiersIgnoringStatus(ctx context.Context, arg GetMediaByTokenIdentifiersIgnoringStatusParams) (TokenMedia, error)

func (*Queries) GetMembershipByMembershipId

func (q *Queries) GetMembershipByMembershipId(ctx context.Context, id persist.DBID) (Membership, error)

func (*Queries) GetMembershipByMembershipIdBatch

func (q *Queries) GetMembershipByMembershipIdBatch(ctx context.Context, id []persist.DBID) *GetMembershipByMembershipIdBatchBatchResults

func (*Queries) GetMentionByID

func (q *Queries) GetMentionByID(ctx context.Context, id persist.DBID) (Mention, error)

func (*Queries) GetMentionsByCommentID

func (q *Queries) GetMentionsByCommentID(ctx context.Context, commentID []persist.DBID) *GetMentionsByCommentIDBatchResults

func (*Queries) GetMentionsByPostID

func (q *Queries) GetMentionsByPostID(ctx context.Context, postID []persist.DBID) *GetMentionsByPostIDBatchResults

func (*Queries) GetMerchDiscountCodeByTokenID

func (q *Queries) GetMerchDiscountCodeByTokenID(ctx context.Context, tokenHex persist.HexTokenID) (sql.NullString, error)

func (*Queries) GetMostActiveUsers

func (q *Queries) GetMostActiveUsers(ctx context.Context, arg GetMostActiveUsersParams) ([]GetMostActiveUsersRow, error)

func (*Queries) GetMostRecentNotificationByOwnerIDForAction

func (q *Queries) GetMostRecentNotificationByOwnerIDForAction(ctx context.Context, arg GetMostRecentNotificationByOwnerIDForActionParams) (Notification, error)

func (*Queries) GetMostRecentNotificationByOwnerIDTokenIDForAction

func (q *Queries) GetMostRecentNotificationByOwnerIDTokenIDForAction(ctx context.Context, arg GetMostRecentNotificationByOwnerIDTokenIDForActionParams) (Notification, error)

func (*Queries) GetNewTokensByFeedEventIdBatch

func (q *Queries) GetNewTokensByFeedEventIdBatch(ctx context.Context, id []persist.DBID) *GetNewTokensByFeedEventIdBatchBatchResults

func (*Queries) GetNotificationByID

func (q *Queries) GetNotificationByID(ctx context.Context, id persist.DBID) (Notification, error)

func (*Queries) GetNotificationByIDBatch

func (q *Queries) GetNotificationByIDBatch(ctx context.Context, id []persist.DBID) *GetNotificationByIDBatchBatchResults

func (*Queries) GetNotificationsByOwnerIDForActionAfter

func (q *Queries) GetNotificationsByOwnerIDForActionAfter(ctx context.Context, arg GetNotificationsByOwnerIDForActionAfterParams) ([]Notification, error)

func (*Queries) GetOnboardingUserRecommendations

func (q *Queries) GetOnboardingUserRecommendations(ctx context.Context, limit int32) ([]User, error)

func (*Queries) GetOwnersByContractIdBatchPaginate

Note: sqlc has trouble recognizing that the output of the "select distinct" subquery below will

return complete rows from the users table. As a workaround, aliasing the subquery to
"users" seems to fix the issue (along with aliasing the users table inside the subquery
to "u" to avoid confusion -- otherwise, sqlc creates a custom row type that includes
all users.* fields twice).

func (*Queries) GetPostByID

func (q *Queries) GetPostByID(ctx context.Context, id persist.DBID) (Post, error)

func (*Queries) GetPostByIdBatch

func (q *Queries) GetPostByIdBatch(ctx context.Context, id []persist.DBID) *GetPostByIdBatchBatchResults

func (*Queries) GetPreviewURLsByContractIdAndUserId

func (q *Queries) GetPreviewURLsByContractIdAndUserId(ctx context.Context, arg GetPreviewURLsByContractIdAndUserIdParams) ([]string, error)

func (*Queries) GetPushTokenByPushToken

func (q *Queries) GetPushTokenByPushToken(ctx context.Context, pushToken string) (PushNotificationToken, error)

func (*Queries) GetPushTokensByIDs

func (q *Queries) GetPushTokensByIDs(ctx context.Context, ids []string) ([]PushNotificationToken, error)

func (*Queries) GetPushTokensByUserID

func (q *Queries) GetPushTokensByUserID(ctx context.Context, userID persist.DBID) ([]PushNotificationToken, error)

func (*Queries) GetRecentUnseenNotifications

func (q *Queries) GetRecentUnseenNotifications(ctx context.Context, arg GetRecentUnseenNotificationsParams) ([]Notification, error)

func (*Queries) GetReprocessJobRangeByID

func (q *Queries) GetReprocessJobRangeByID(ctx context.Context, id int) (ReprocessJob, error)

func (*Queries) GetSocialAuthByUserID

func (q *Queries) GetSocialAuthByUserID(ctx context.Context, arg GetSocialAuthByUserIDParams) (PiiSocialsAuth, error)

func (*Queries) GetSocialConnections

func (q *Queries) GetSocialConnections(ctx context.Context, arg GetSocialConnectionsParams) ([]GetSocialConnectionsRow, error)

func (*Queries) GetSocialConnectionsPaginate

func (q *Queries) GetSocialConnectionsPaginate(ctx context.Context, arg GetSocialConnectionsPaginateParams) ([]GetSocialConnectionsPaginateRow, error)

this query will take in enoug info to create a sort of fake table of social accounts matching them up to users in gallery with twitter connected. it will also go and search for whether the specified user follows any of the users returned

func (*Queries) GetSocialsByUserID

func (q *Queries) GetSocialsByUserID(ctx context.Context, id persist.DBID) (persist.Socials, error)

func (*Queries) GetTokenById

func (q *Queries) GetTokenById(ctx context.Context, id persist.DBID) (GetTokenByIdRow, error)

func (*Queries) GetTokenByIdBatch

func (q *Queries) GetTokenByIdBatch(ctx context.Context, id []persist.DBID) *GetTokenByIdBatchBatchResults

func (*Queries) GetTokenByIdIgnoreDisplayableBatch

func (q *Queries) GetTokenByIdIgnoreDisplayableBatch(ctx context.Context, id []persist.DBID) *GetTokenByIdIgnoreDisplayableBatchBatchResults

func (*Queries) GetTokenByUserTokenIdentifiersBatch

Fetch the definition and contract to cache since downstream queries will likely use them

func (*Queries) GetTokenDefinitionById

func (q *Queries) GetTokenDefinitionById(ctx context.Context, id persist.DBID) (TokenDefinition, error)

func (*Queries) GetTokenDefinitionByIdBatch

func (q *Queries) GetTokenDefinitionByIdBatch(ctx context.Context, id []persist.DBID) *GetTokenDefinitionByIdBatchBatchResults

func (*Queries) GetTokenDefinitionByTokenDbid

func (q *Queries) GetTokenDefinitionByTokenDbid(ctx context.Context, id persist.DBID) (TokenDefinition, error)

func (*Queries) GetTokenDefinitionByTokenDbidBatch

func (q *Queries) GetTokenDefinitionByTokenDbidBatch(ctx context.Context, id []persist.DBID) *GetTokenDefinitionByTokenDbidBatchBatchResults

func (*Queries) GetTokenDefinitionByTokenIdentifiers

func (q *Queries) GetTokenDefinitionByTokenIdentifiers(ctx context.Context, arg GetTokenDefinitionByTokenIdentifiersParams) (TokenDefinition, error)

func (*Queries) GetTokensByWalletIdsBatch

func (q *Queries) GetTokensByWalletIdsBatch(ctx context.Context, ownedByWallets []persist.DBIDList) *GetTokensByWalletIdsBatchBatchResults

func (*Queries) GetTopCollectionsForCommunity

func (q *Queries) GetTopCollectionsForCommunity(ctx context.Context, arg GetTopCollectionsForCommunityParams) ([]persist.DBID, error)

func (*Queries) GetTopCommunitiesByPosts

func (q *Queries) GetTopCommunitiesByPosts(ctx context.Context, windowEnd time.Time) ([]persist.DBID, error)

func (*Queries) GetTopGalleriesByViews

func (q *Queries) GetTopGalleriesByViews(ctx context.Context, windowEnd time.Time) ([]persist.DBID, error)

func (*Queries) GetTopRecommendedUserIDs

func (q *Queries) GetTopRecommendedUserIDs(ctx context.Context) ([]persist.DBID, error)

func (*Queries) GetTrendingUsersByIDs

func (q *Queries) GetTrendingUsersByIDs(ctx context.Context, userIds []string) ([]User, error)

func (*Queries) GetUniqueTokenIdentifiersByTokenID

func (q *Queries) GetUniqueTokenIdentifiersByTokenID(ctx context.Context, id persist.DBID) (GetUniqueTokenIdentifiersByTokenIDRow, error)

func (*Queries) GetUserByAddressAndL1

func (q *Queries) GetUserByAddressAndL1(ctx context.Context, arg GetUserByAddressAndL1Params) (User, error)

func (*Queries) GetUserById

func (q *Queries) GetUserById(ctx context.Context, id persist.DBID) (User, error)

func (*Queries) GetUserByIdBatch

func (q *Queries) GetUserByIdBatch(ctx context.Context, id []persist.DBID) *GetUserByIdBatchBatchResults

func (*Queries) GetUserByPrivyDID

func (q *Queries) GetUserByPrivyDID(ctx context.Context, privyDid string) (User, error)

func (*Queries) GetUserByUsername

func (q *Queries) GetUserByUsername(ctx context.Context, username string) (User, error)

func (*Queries) GetUserByUsernameBatch

func (q *Queries) GetUserByUsernameBatch(ctx context.Context, lower []string) *GetUserByUsernameBatchBatchResults

func (*Queries) GetUserByVerifiedEmailAddress

func (q *Queries) GetUserByVerifiedEmailAddress(ctx context.Context, lower string) (User, error)

func (*Queries) GetUserByWalletID

func (q *Queries) GetUserByWalletID(ctx context.Context, wallet string) (User, error)

func (*Queries) GetUserExperiencesByUserID

func (q *Queries) GetUserExperiencesByUserID(ctx context.Context, id persist.DBID) (pgtype.JSONB, error)

func (*Queries) GetUserIsBlockedFromFeed

func (q *Queries) GetUserIsBlockedFromFeed(ctx context.Context, userID persist.DBID) (bool, error)

func (*Queries) GetUserLabels

func (q *Queries) GetUserLabels(ctx context.Context) ([]persist.DBID, error)

func (*Queries) GetUserNotifications

func (q *Queries) GetUserNotifications(ctx context.Context, arg GetUserNotificationsParams) ([]Notification, error)

func (*Queries) GetUserRolesByUserId

func (q *Queries) GetUserRolesByUserId(ctx context.Context, arg GetUserRolesByUserIdParams) ([]persist.Role, error)

func (*Queries) GetUserUnseenNotifications

func (q *Queries) GetUserUnseenNotifications(ctx context.Context, arg GetUserUnseenNotificationsParams) ([]Notification, error)

func (*Queries) GetUserWithPIIByID

func (q *Queries) GetUserWithPIIByID(ctx context.Context, userID persist.DBID) (PiiUserView, error)

func (*Queries) GetUsersByChainAddresses

func (q *Queries) GetUsersByChainAddresses(ctx context.Context, arg GetUsersByChainAddressesParams) ([]GetUsersByChainAddressesRow, error)

func (*Queries) GetUsersByFarcasterIDs

func (q *Queries) GetUsersByFarcasterIDs(ctx context.Context, fids []string) ([]User, error)

func (*Queries) GetUsersByIDs

func (q *Queries) GetUsersByIDs(ctx context.Context, arg GetUsersByIDsParams) ([]User, error)

func (*Queries) GetUsersBySocialIDs

func (q *Queries) GetUsersBySocialIDs(ctx context.Context, arg GetUsersBySocialIDsParams) ([]PiiUserView, error)

func (*Queries) GetUsersWithEmailNotificationsOnForEmailType

func (q *Queries) GetUsersWithEmailNotificationsOnForEmailType(ctx context.Context, arg GetUsersWithEmailNotificationsOnForEmailTypeParams) ([]PiiUserView, error)

for some reason this query will not allow me to use @tags for $1

func (*Queries) GetUsersWithRolePaginate

func (q *Queries) GetUsersWithRolePaginate(ctx context.Context, arg GetUsersWithRolePaginateParams) ([]User, error)

func (*Queries) GetUsersWithTrait

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

func (*Queries) GetUsersWithTraitBatch

func (q *Queries) GetUsersWithTraitBatch(ctx context.Context, dollar_1 []string) *GetUsersWithTraitBatchBatchResults

func (*Queries) GetUsersWithoutSocials

func (q *Queries) GetUsersWithoutSocials(ctx context.Context) ([]GetUsersWithoutSocialsRow, error)

func (*Queries) GetWalletByAddressAndL1Chain

func (q *Queries) GetWalletByAddressAndL1Chain(ctx context.Context, arg GetWalletByAddressAndL1ChainParams) (Wallet, error)

func (*Queries) GetWalletByID

func (q *Queries) GetWalletByID(ctx context.Context, id persist.DBID) (Wallet, error)

func (*Queries) GetWalletByIDBatch

func (q *Queries) GetWalletByIDBatch(ctx context.Context, id []persist.DBID) *GetWalletByIDBatchBatchResults

func (*Queries) GetWalletsByUserID

func (q *Queries) GetWalletsByUserID(ctx context.Context, id persist.DBID) ([]Wallet, error)

func (*Queries) GetWalletsByUserIDBatch

func (q *Queries) GetWalletsByUserIDBatch(ctx context.Context, id []persist.DBID) *GetWalletsByUserIDBatchBatchResults

func (*Queries) GetWindowedTrendingUserIDs

func (q *Queries) GetWindowedTrendingUserIDs(ctx context.Context, arg GetWindowedTrendingUserIDsParams) ([]persist.DBID, error)

func (*Queries) HasLaterGroupedEvent

func (q *Queries) HasLaterGroupedEvent(ctx context.Context, arg HasLaterGroupedEventParams) (bool, error)

func (*Queries) HasMintedClaimsByUserID

func (q *Queries) HasMintedClaimsByUserID(ctx context.Context, arg HasMintedClaimsByUserIDParams) (HasMintedClaimsByUserIDRow, error)

func (*Queries) InsertComment

func (q *Queries) InsertComment(ctx context.Context, arg InsertCommentParams) (persist.DBID, error)

func (*Queries) InsertCommentMention

func (q *Queries) InsertCommentMention(ctx context.Context, arg InsertCommentMentionParams) (Mention, error)

func (*Queries) InsertMention

func (q *Queries) InsertMention(ctx context.Context, arg InsertMentionParams) (persist.DBID, error)

func (*Queries) InsertNonce

func (q *Queries) InsertNonce(ctx context.Context, arg InsertNonceParams) (Nonce, error)

func (*Queries) InsertPost

func (q *Queries) InsertPost(ctx context.Context, arg InsertPostParams) (persist.DBID, error)

func (*Queries) InsertPostMention

func (q *Queries) InsertPostMention(ctx context.Context, arg InsertPostMentionParams) (Mention, error)

func (*Queries) InsertSpamContracts

func (q *Queries) InsertSpamContracts(ctx context.Context, arg InsertSpamContractsParams) error

func (*Queries) InsertTokenPipelineResults

Always return the new media that was inserted, even if its inactive so the pipeline can report metrics accurately

func (*Queries) InsertUser

func (q *Queries) InsertUser(ctx context.Context, arg InsertUserParams) (persist.DBID, error)

func (*Queries) InsertWallet

func (q *Queries) InsertWallet(ctx context.Context, arg InsertWalletParams) error

func (*Queries) InvalidateSession

func (q *Queries) InvalidateSession(ctx context.Context, id persist.DBID) error

func (*Queries) IsActorActionActive

func (q *Queries) IsActorActionActive(ctx context.Context, arg IsActorActionActiveParams) (bool, error)

func (*Queries) IsActorGalleryActive

func (q *Queries) IsActorGalleryActive(ctx context.Context, arg IsActorGalleryActiveParams) (bool, error)

func (*Queries) IsActorSubjectActionActive

func (q *Queries) IsActorSubjectActionActive(ctx context.Context, arg IsActorSubjectActionActiveParams) (bool, error)

func (*Queries) IsActorSubjectActive

func (q *Queries) IsActorSubjectActive(ctx context.Context, arg IsActorSubjectActiveParams) (bool, error)

func (*Queries) IsFeedEventExistsForGroup

func (q *Queries) IsFeedEventExistsForGroup(ctx context.Context, groupID sql.NullString) (bool, error)

func (*Queries) IsMemberOfCommunity

func (q *Queries) IsMemberOfCommunity(ctx context.Context, arg IsMemberOfCommunityParams) (bool, error)

func (*Queries) PaginateGlobalFeed

func (q *Queries) PaginateGlobalFeed(ctx context.Context, arg PaginateGlobalFeedParams) ([]FeedEntity, error)

func (*Queries) PaginateHoldersByCommunityID

Note: sqlc has trouble recognizing that the output of the "select distinct" subquery below will

return complete rows from the users table. As a workaround, aliasing the subquery to
"users" seems to fix the issue (along with aliasing the users table inside the subquery
to "u" to avoid confusion -- otherwise, sqlc creates a custom row type that includes
all users.* fields twice).

func (*Queries) PaginatePersonalFeedByUserID

func (q *Queries) PaginatePersonalFeedByUserID(ctx context.Context, arg PaginatePersonalFeedByUserIDParams) ([]FeedEntity, error)

func (*Queries) PaginatePostsByContractIDAndProjectID

func (q *Queries) PaginatePostsByContractIDAndProjectID(ctx context.Context, arg PaginatePostsByContractIDAndProjectIDParams) ([]Post, error)

func (*Queries) PaginatePostsByUserID

func (q *Queries) PaginatePostsByUserID(ctx context.Context, arg PaginatePostsByUserIDParams) ([]Post, error)

func (*Queries) PaginateTokensByCommunityID

At present, a community is either entirely token-based or contract-based, so only one of these two union clauses will return any tokens (which means it's okay for each clause to have its own ordering). This query was originally written with a union of results from contract_memberships and token_memberships and a single outer select + join on the results of that union, but that prevented the query planner from using indexes correctly (since the referenced tables might be indexed, but the union of results is not). The current method is verbose and brittle, but it's fast!

func (*Queries) RedeemMerch

func (q *Queries) RedeemMerch(ctx context.Context, arg RedeemMerchParams) (sql.NullString, error)

func (*Queries) RemoveCollectionFromGallery

func (q *Queries) RemoveCollectionFromGallery(ctx context.Context, arg RemoveCollectionFromGalleryParams) error

func (*Queries) RemoveComment

func (q *Queries) RemoveComment(ctx context.Context, id persist.DBID) error

func (*Queries) RemoveContractOverrideCreator

func (q *Queries) RemoveContractOverrideCreator(ctx context.Context, contractID persist.DBID) error

func (*Queries) RemoveProfileImage

func (q *Queries) RemoveProfileImage(ctx context.Context, id persist.DBID) error

func (*Queries) RemoveSocialFromUser

func (q *Queries) RemoveSocialFromUser(ctx context.Context, arg RemoveSocialFromUserParams) error

func (*Queries) RemoveStaleCreatorStatusFromTokens

func (q *Queries) RemoveStaleCreatorStatusFromTokens(ctx context.Context, userID persist.DBID) error

func (*Queries) RemoveWalletFromTokens

func (q *Queries) RemoveWalletFromTokens(ctx context.Context, arg RemoveWalletFromTokensParams) error

func (*Queries) ReportPost

func (q *Queries) ReportPost(ctx context.Context, arg ReportPostParams) (persist.DBID, error)

func (*Queries) SaveHighlightMintClaim

func (q *Queries) SaveHighlightMintClaim(ctx context.Context, arg SaveHighlightMintClaimParams) (persist.DBID, error)

func (*Queries) SearchCommunities

func (q *Queries) SearchCommunities(ctx context.Context, arg SearchCommunitiesParams) ([]Community, error)

func (*Queries) SearchGalleries

func (q *Queries) SearchGalleries(ctx context.Context, arg SearchGalleriesParams) ([]Gallery, error)

func (*Queries) SearchUsers

func (q *Queries) SearchUsers(ctx context.Context, arg SearchUsersParams) ([]User, error)

func (*Queries) SetContractOverrideCreator

func (q *Queries) SetContractOverrideCreator(ctx context.Context, arg SetContractOverrideCreatorParams) error

func (*Queries) SetPersonaByUserID

func (q *Queries) SetPersonaByUserID(ctx context.Context, arg SetPersonaByUserIDParams) error

func (*Queries) SetPrivyDIDForUser

func (q *Queries) SetPrivyDIDForUser(ctx context.Context, arg SetPrivyDIDForUserParams) error

func (*Queries) SetProfileImageToENS

func (q *Queries) SetProfileImageToENS(ctx context.Context, arg SetProfileImageToENSParams) (SetProfileImageToENSRow, error)

func (*Queries) SetProfileImageToToken

func (q *Queries) SetProfileImageToToken(ctx context.Context, arg SetProfileImageToTokenParams) error

func (*Queries) UnblockUser

func (q *Queries) UnblockUser(ctx context.Context, arg UnblockUserParams) error

func (*Queries) UnblockUserFromFeed

func (q *Queries) UnblockUserFromFeed(ctx context.Context, userID persist.DBID) error

func (*Queries) UpdateCollectionGallery

func (q *Queries) UpdateCollectionGallery(ctx context.Context, arg UpdateCollectionGalleryParams) error

func (*Queries) UpdateCollectionTokens

func (q *Queries) UpdateCollectionTokens(ctx context.Context, arg UpdateCollectionTokensParams) error

func (*Queries) UpdateCollectionsInfo

func (q *Queries) UpdateCollectionsInfo(ctx context.Context, arg UpdateCollectionsInfoParams) error

func (*Queries) UpdateEventCaptionByGroup

func (q *Queries) UpdateEventCaptionByGroup(ctx context.Context, arg UpdateEventCaptionByGroupParams) error

func (*Queries) UpdateFeedEventCaptionByGroup

func (q *Queries) UpdateFeedEventCaptionByGroup(ctx context.Context, groupID sql.NullString) (FeedEvent, error)

func (*Queries) UpdateGalleryCollections

func (q *Queries) UpdateGalleryCollections(ctx context.Context, arg UpdateGalleryCollectionsParams) error

func (*Queries) UpdateGalleryHidden

func (q *Queries) UpdateGalleryHidden(ctx context.Context, arg UpdateGalleryHiddenParams) (Gallery, error)

func (*Queries) UpdateGalleryInfo

func (q *Queries) UpdateGalleryInfo(ctx context.Context, arg UpdateGalleryInfoParams) error

func (*Queries) UpdateGalleryPositions

func (q *Queries) UpdateGalleryPositions(ctx context.Context, arg UpdateGalleryPositionsParams) error

func (*Queries) UpdateHighlightMintClaimStatus

func (q *Queries) UpdateHighlightMintClaimStatus(ctx context.Context, arg UpdateHighlightMintClaimStatusParams) (HighlightMintClaim, error)

func (*Queries) UpdateHighlightMintClaimStatusTxSucceeded

func (q *Queries) UpdateHighlightMintClaimStatusTxSucceeded(ctx context.Context, arg UpdateHighlightMintClaimStatusTxSucceededParams) (HighlightMintClaim, error)

func (*Queries) UpdateNotification

func (q *Queries) UpdateNotification(ctx context.Context, arg UpdateNotificationParams) error

func (*Queries) UpdateNotificationSettingsByID

func (q *Queries) UpdateNotificationSettingsByID(ctx context.Context, arg UpdateNotificationSettingsByIDParams) error

func (*Queries) UpdatePushTickets

func (q *Queries) UpdatePushTickets(ctx context.Context, arg UpdatePushTicketsParams) error

func (*Queries) UpdateTokenCollectorsNoteByTokenDbidUserId

func (q *Queries) UpdateTokenCollectorsNoteByTokenDbidUserId(ctx context.Context, arg UpdateTokenCollectorsNoteByTokenDbidUserIdParams) error

func (*Queries) UpdateTokenMetadataFieldsByTokenIdentifiers

func (q *Queries) UpdateTokenMetadataFieldsByTokenIdentifiers(ctx context.Context, arg UpdateTokenMetadataFieldsByTokenIdentifiersParams) (TokenDefinition, error)

func (*Queries) UpdateTokensAsUserMarkedSpam

func (q *Queries) UpdateTokensAsUserMarkedSpam(ctx context.Context, arg UpdateTokensAsUserMarkedSpamParams) error

func (*Queries) UpdateTopActiveUsers

func (q *Queries) UpdateTopActiveUsers(ctx context.Context, topUserIds []persist.DBID) error

func (*Queries) UpdateUserEmailUnsubscriptions

func (q *Queries) UpdateUserEmailUnsubscriptions(ctx context.Context, arg UpdateUserEmailUnsubscriptionsParams) error

func (*Queries) UpdateUserExperience

func (q *Queries) UpdateUserExperience(ctx context.Context, arg UpdateUserExperienceParams) error

func (*Queries) UpdateUserFeaturedGallery

func (q *Queries) UpdateUserFeaturedGallery(ctx context.Context, arg UpdateUserFeaturedGalleryParams) error

func (*Queries) UpdateUserPrimaryWallet

func (q *Queries) UpdateUserPrimaryWallet(ctx context.Context, arg UpdateUserPrimaryWalletParams) error

func (*Queries) UpdateUserSocials

func (q *Queries) UpdateUserSocials(ctx context.Context, arg UpdateUserSocialsParams) error

func (*Queries) UpdateUserUnverifiedEmail

func (q *Queries) UpdateUserUnverifiedEmail(ctx context.Context, arg UpdateUserUnverifiedEmailParams) error

func (*Queries) UpdateUserVerifiedEmail

func (q *Queries) UpdateUserVerifiedEmail(ctx context.Context, arg UpdateUserVerifiedEmailParams) error

func (*Queries) UpdatedRecommendationResults

func (q *Queries) UpdatedRecommendationResults(ctx context.Context, arg UpdatedRecommendationResultsParams) error

func (*Queries) UpsertCommunities

func (q *Queries) UpsertCommunities(ctx context.Context, arg UpsertCommunitiesParams) ([]Community, error)

func (*Queries) UpsertCommunityContractProviders

func (q *Queries) UpsertCommunityContractProviders(ctx context.Context, arg UpsertCommunityContractProvidersParams) error

func (*Queries) UpsertCommunityCreators

func (q *Queries) UpsertCommunityCreators(ctx context.Context, arg UpsertCommunityCreatorsParams) ([]CommunityCreator, error)

func (*Queries) UpsertParentContracts

func (q *Queries) UpsertParentContracts(ctx context.Context, arg UpsertParentContractsParams) ([]Contract, error)

func (*Queries) UpsertSession

func (q *Queries) UpsertSession(ctx context.Context, arg UpsertSessionParams) (Session, error)

func (*Queries) UpsertSocialOAuth

func (q *Queries) UpsertSocialOAuth(ctx context.Context, arg UpsertSocialOAuthParams) error

func (*Queries) UpsertTokenCommunityMemberships

func (q *Queries) UpsertTokenCommunityMemberships(ctx context.Context, arg UpsertTokenCommunityMembershipsParams) ([]TokenCommunityMembership, error)

func (*Queries) UpsertTokenDefinitions

func (q *Queries) UpsertTokenDefinitions(ctx context.Context, arg UpsertTokenDefinitionsParams) ([]UpsertTokenDefinitionsRow, error)

token_definitions is the snapshot of the table prior to inserting. We can determine if a token is new by checking against this snapshot.

func (*Queries) UpsertTokens

func (q *Queries) UpsertTokens(ctx context.Context, arg UpsertTokensParams) ([]UpsertTokensRow, error)

tokens is the snapshot of the table prior to inserting. We can determine if a token is new by checking against this snapshot.

func (*Queries) UserHasDuplicateGalleryPositions

func (q *Queries) UserHasDuplicateGalleryPositions(ctx context.Context, ownerUserID persist.DBID) (bool, error)

func (*Queries) UserOwnsCollection

func (q *Queries) UserOwnsCollection(ctx context.Context, arg UserOwnsCollectionParams) (bool, error)

func (*Queries) UserOwnsGallery

func (q *Queries) UserOwnsGallery(ctx context.Context, arg UserOwnsGalleryParams) (bool, error)

func (*Queries) UsersFollowUser

func (q *Queries) UsersFollowUser(ctx context.Context, arg UsersFollowUserParams) ([]bool, error)

func (*Queries) WithTx

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

type RecommendationResult

type RecommendationResult struct {
	ID                persist.DBID  `db:"id" json:"id"`
	Version           sql.NullInt32 `db:"version" json:"version"`
	UserID            persist.DBID  `db:"user_id" json:"user_id"`
	RecommendedUserID persist.DBID  `db:"recommended_user_id" json:"recommended_user_id"`
	RecommendedCount  sql.NullInt32 `db:"recommended_count" json:"recommended_count"`
	CreatedAt         time.Time     `db:"created_at" json:"created_at"`
	LastUpdated       time.Time     `db:"last_updated" json:"last_updated"`
	Deleted           bool          `db:"deleted" json:"deleted"`
}

type RedeemMerchParams

type RedeemMerchParams struct {
	TokenHex   persist.HexTokenID `db:"token_hex" json:"token_hex"`
	ObjectType int32              `db:"object_type" json:"object_type"`
}

type RemoveCollectionFromGalleryParams

type RemoveCollectionFromGalleryParams struct {
	CollectionID interface{}  `db:"collection_id" json:"collection_id"`
	GalleryID    persist.DBID `db:"gallery_id" json:"gallery_id"`
}

type RemoveSocialFromUserParams

type RemoveSocialFromUserParams struct {
	Social string       `db:"social" json:"social"`
	UserID persist.DBID `db:"user_id" json:"user_id"`
}

type RemoveWalletFromTokensParams

type RemoveWalletFromTokensParams struct {
	WalletID string       `db:"wallet_id" json:"wallet_id"`
	UserID   persist.DBID `db:"user_id" json:"user_id"`
}

type ReportPostParams

type ReportPostParams struct {
	ID       persist.DBID         `db:"id" json:"id"`
	Reporter sql.NullString       `db:"reporter" json:"reporter"`
	Reason   persist.ReportReason `db:"reason" json:"reason"`
	PostID   persist.DBID         `db:"post_id" json:"post_id"`
}

type ReportedPost

type ReportedPost struct {
	ID          persist.DBID         `db:"id" json:"id"`
	CreatedAt   time.Time            `db:"created_at" json:"created_at"`
	LastUpdated time.Time            `db:"last_updated" json:"last_updated"`
	Deleted     bool                 `db:"deleted" json:"deleted"`
	ReporterID  persist.DBID         `db:"reporter_id" json:"reporter_id"`
	PostID      persist.DBID         `db:"post_id" json:"post_id"`
	Reason      persist.ReportReason `db:"reason" json:"reason"`
}

type ReprocessJob

type ReprocessJob struct {
	ID           int          `db:"id" json:"id"`
	TokenStartID persist.DBID `db:"token_start_id" json:"token_start_id"`
	TokenEndID   persist.DBID `db:"token_end_id" json:"token_end_id"`
}

type SaveHighlightMintClaimParams

type SaveHighlightMintClaimParams struct {
	ID                    persist.DBID          `db:"id" json:"id"`
	RecipientUserID       persist.DBID          `db:"recipient_user_id" json:"recipient_user_id"`
	RecipientL1Chain      persist.L1Chain       `db:"recipient_l1_chain" json:"recipient_l1_chain"`
	RecipientAddress      persist.Address       `db:"recipient_address" json:"recipient_address"`
	RecipientWalletID     persist.DBID          `db:"recipient_wallet_id" json:"recipient_wallet_id"`
	HighlightCollectionID string                `db:"highlight_collection_id" json:"highlight_collection_id"`
	HighlightClaimID      string                `db:"highlight_claim_id" json:"highlight_claim_id"`
	CollectionAddress     persist.Address       `db:"collection_address" json:"collection_address"`
	CollectionChain       persist.Chain         `db:"collection_chain" json:"collection_chain"`
	Status                highlight.ClaimStatus `db:"status" json:"status"`
	ErrorMessage          sql.NullString        `db:"error_message" json:"error_message"`
}

type ScrubbedPiiAccountCreationInfo

type ScrubbedPiiAccountCreationInfo struct {
	UserID    persist.DBID    `db:"user_id" json:"user_id"`
	IpAddress persist.Address `db:"ip_address" json:"ip_address"`
	CreatedAt time.Time       `db:"created_at" json:"created_at"`
}

type ScrubbedPiiForUser

type ScrubbedPiiForUser struct {
	UserID                    persist.DBID    `db:"user_id" json:"user_id"`
	PiiUnverifiedEmailAddress persist.Email   `db:"pii_unverified_email_address" json:"pii_unverified_email_address"`
	Deleted                   bool            `db:"deleted" json:"deleted"`
	PiiSocials                persist.Socials `db:"pii_socials" json:"pii_socials"`
	PiiVerifiedEmailAddress   persist.Email   `db:"pii_verified_email_address" json:"pii_verified_email_address"`
}

type SearchCommunitiesParams

type SearchCommunitiesParams struct {
	Query              string  `db:"query" json:"query"`
	NameWeight         float32 `db:"name_weight" json:"name_weight"`
	DescriptionWeight  float32 `db:"description_weight" json:"description_weight"`
	Limit              int32   `db:"limit" json:"limit"`
	PoapAddressWeight  float32 `db:"poap_address_weight" json:"poap_address_weight"`
	ProviderNameWeight float32 `db:"provider_name_weight" json:"provider_name_weight"`
}

type SearchGalleriesParams

type SearchGalleriesParams struct {
	Query             string  `db:"query" json:"query"`
	NameWeight        float32 `db:"name_weight" json:"name_weight"`
	DescriptionWeight float32 `db:"description_weight" json:"description_weight"`
	Limit             int32   `db:"limit" json:"limit"`
}

type SearchUsersParams

type SearchUsersParams struct {
	Query          string  `db:"query" json:"query"`
	UsernameWeight float32 `db:"username_weight" json:"username_weight"`
	BioWeight      float32 `db:"bio_weight" json:"bio_weight"`
	Limit          int32   `db:"limit" json:"limit"`
}

type Session

type Session struct {
	ID                   persist.DBID `db:"id" json:"id"`
	UserID               persist.DBID `db:"user_id" json:"user_id"`
	CreatedAt            time.Time    `db:"created_at" json:"created_at"`
	CreatedWithUserAgent string       `db:"created_with_user_agent" json:"created_with_user_agent"`
	CreatedWithPlatform  string       `db:"created_with_platform" json:"created_with_platform"`
	CreatedWithOs        string       `db:"created_with_os" json:"created_with_os"`
	LastRefreshed        time.Time    `db:"last_refreshed" json:"last_refreshed"`
	LastUserAgent        string       `db:"last_user_agent" json:"last_user_agent"`
	LastPlatform         string       `db:"last_platform" json:"last_platform"`
	LastOs               string       `db:"last_os" json:"last_os"`
	CurrentRefreshID     string       `db:"current_refresh_id" json:"current_refresh_id"`
	ActiveUntil          time.Time    `db:"active_until" json:"active_until"`
	Invalidated          bool         `db:"invalidated" json:"invalidated"`
	LastUpdated          time.Time    `db:"last_updated" json:"last_updated"`
	Deleted              bool         `db:"deleted" json:"deleted"`
}

type SetContractOverrideCreatorParams

type SetContractOverrideCreatorParams struct {
	CreatorUserID persist.DBID `db:"creator_user_id" json:"creator_user_id"`
	ContractID    persist.DBID `db:"contract_id" json:"contract_id"`
}

type SetPersonaByUserIDParams

type SetPersonaByUserIDParams struct {
	Persona persist.Persona `db:"persona" json:"persona"`
	UserID  persist.DBID    `db:"user_id" json:"user_id"`
}

type SetPrivyDIDForUserParams

type SetPrivyDIDForUserParams struct {
	ID       persist.DBID `db:"id" json:"id"`
	UserID   persist.DBID `db:"user_id" json:"user_id"`
	PrivyDid string       `db:"privy_did" json:"privy_did"`
}

type SetProfileImageToENSParams

type SetProfileImageToENSParams struct {
	UserID        persist.DBID               `db:"user_id" json:"user_id"`
	ProfileID     persist.DBID               `db:"profile_id" json:"profile_id"`
	EnsSourceType persist.ProfileImageSource `db:"ens_source_type" json:"ens_source_type"`
	WalletID      persist.DBID               `db:"wallet_id" json:"wallet_id"`
	EnsDomain     sql.NullString             `db:"ens_domain" json:"ens_domain"`
	EnsAvatarUri  sql.NullString             `db:"ens_avatar_uri" json:"ens_avatar_uri"`
}

type SetProfileImageToENSRow

type SetProfileImageToENSRow struct {
	ProfileImage ProfileImage `db:"profile_image" json:"profile_image"`
}

type SetProfileImageToTokenParams

type SetProfileImageToTokenParams struct {
	UserID          persist.DBID               `db:"user_id" json:"user_id"`
	ProfileID       persist.DBID               `db:"profile_id" json:"profile_id"`
	TokenSourceType persist.ProfileImageSource `db:"token_source_type" json:"token_source_type"`
	TokenID         persist.DBID               `db:"token_id" json:"token_id"`
}

type SpamUserScore

type SpamUserScore struct {
	UserID        persist.DBID `db:"user_id" json:"user_id"`
	Score         int32        `db:"score" json:"score"`
	DecidedIsSpam sql.NullBool `db:"decided_is_spam" json:"decided_is_spam"`
	DecidedAt     sql.NullTime `db:"decided_at" json:"decided_at"`
	Deleted       bool         `db:"deleted" json:"deleted"`
	CreatedAt     time.Time    `db:"created_at" json:"created_at"`
}

type Token

type Token struct {
	ID                persist.DBID      `db:"id" json:"id"`
	Deleted           bool              `db:"deleted" json:"deleted"`
	Version           sql.NullInt32     `db:"version" json:"version"`
	CreatedAt         time.Time         `db:"created_at" json:"created_at"`
	LastUpdated       time.Time         `db:"last_updated" json:"last_updated"`
	CollectorsNote    sql.NullString    `db:"collectors_note" json:"collectors_note"`
	Quantity          persist.HexString `db:"quantity" json:"quantity"`
	BlockNumber       sql.NullInt64     `db:"block_number" json:"block_number"`
	OwnerUserID       persist.DBID      `db:"owner_user_id" json:"owner_user_id"`
	OwnedByWallets    persist.DBIDList  `db:"owned_by_wallets" json:"owned_by_wallets"`
	ContractID        persist.DBID      `db:"contract_id" json:"contract_id"`
	IsUserMarkedSpam  sql.NullBool      `db:"is_user_marked_spam" json:"is_user_marked_spam"`
	LastSynced        time.Time         `db:"last_synced" json:"last_synced"`
	IsCreatorToken    bool              `db:"is_creator_token" json:"is_creator_token"`
	TokenDefinitionID persist.DBID      `db:"token_definition_id" json:"token_definition_id"`
	IsHolderToken     bool              `db:"is_holder_token" json:"is_holder_token"`
	Displayable       bool              `db:"displayable" json:"displayable"`
}

type TokenCommunityMembership

type TokenCommunityMembership struct {
	ID                persist.DBID           `db:"id" json:"id"`
	Version           int32                  `db:"version" json:"version"`
	TokenDefinitionID persist.DBID           `db:"token_definition_id" json:"token_definition_id"`
	CommunityID       persist.DBID           `db:"community_id" json:"community_id"`
	CreatedAt         time.Time              `db:"created_at" json:"created_at"`
	LastUpdated       time.Time              `db:"last_updated" json:"last_updated"`
	Deleted           bool                   `db:"deleted" json:"deleted"`
	TokenID           persist.DecimalTokenID `db:"token_id" json:"token_id"`
}

type TokenDefinition

type TokenDefinition struct {
	ID              persist.DBID          `db:"id" json:"id"`
	CreatedAt       time.Time             `db:"created_at" json:"created_at"`
	LastUpdated     time.Time             `db:"last_updated" json:"last_updated"`
	Deleted         bool                  `db:"deleted" json:"deleted"`
	Name            sql.NullString        `db:"name" json:"name"`
	Description     sql.NullString        `db:"description" json:"description"`
	TokenType       persist.TokenType     `db:"token_type" json:"token_type"`
	TokenID         persist.HexTokenID    `db:"token_id" json:"token_id"`
	ExternalUrl     sql.NullString        `db:"external_url" json:"external_url"`
	Chain           persist.Chain         `db:"chain" json:"chain"`
	Metadata        persist.TokenMetadata `db:"metadata" json:"metadata"`
	FallbackMedia   persist.FallbackMedia `db:"fallback_media" json:"fallback_media"`
	ContractAddress persist.Address       `db:"contract_address" json:"contract_address"`
	ContractID      persist.DBID          `db:"contract_id" json:"contract_id"`
	TokenMediaID    persist.DBID          `db:"token_media_id" json:"token_media_id"`
	IsFxhash        bool                  `db:"is_fxhash" json:"is_fxhash"`
}

type TokenMedia

type TokenMedia struct {
	ID              persist.DBID           `db:"id" json:"id"`
	CreatedAt       time.Time              `db:"created_at" json:"created_at"`
	LastUpdated     time.Time              `db:"last_updated" json:"last_updated"`
	Version         int32                  `db:"version" json:"version"`
	Active          bool                   `db:"active" json:"active"`
	Media           persist.Media          `db:"media" json:"media"`
	ProcessingJobID persist.DBID           `db:"processing_job_id" json:"processing_job_id"`
	Deleted         bool                   `db:"deleted" json:"deleted"`
	Chain           persist.Chain          `db:"chain" json:"chain"`
	ContractAddress persist.Address        `db:"contract_address" json:"contract_address"`
	TokenID         persist.DecimalTokenID `db:"token_id" json:"token_id"`
}

type TokenMediasActive

type TokenMediasActive struct {
	ID               persist.DBID `db:"id" json:"id"`
	LastUpdated      time.Time    `db:"last_updated" json:"last_updated"`
	MediaType        interface{}  `db:"media_type" json:"media_type"`
	JobID            persist.DBID `db:"job_id" json:"job_id"`
	TokenProperties  pgtype.JSONB `db:"token_properties" json:"token_properties"`
	PipelineMetadata pgtype.JSONB `db:"pipeline_metadata" json:"pipeline_metadata"`
}

type TokenMediasMissingProperty

type TokenMediasMissingProperty struct {
	ID          persist.DBID `db:"id" json:"id"`
	MediaType   interface{}  `db:"media_type" json:"media_type"`
	LastUpdated time.Time    `db:"last_updated" json:"last_updated"`
	IsValid     bool         `db:"is_valid" json:"is_valid"`
	Reason      []byte       `db:"reason" json:"reason"`
}

type TokenMediasNoValidationRule

type TokenMediasNoValidationRule struct {
	ID          persist.DBID `db:"id" json:"id"`
	MediaType   interface{}  `db:"media_type" json:"media_type"`
	LastUpdated time.Time    `db:"last_updated" json:"last_updated"`
	IsValid     bool         `db:"is_valid" json:"is_valid"`
	Reason      string       `db:"reason" json:"reason"`
}

type TokenProcessingJob

type TokenProcessingJob struct {
	ID               persist.DBID             `db:"id" json:"id"`
	CreatedAt        time.Time                `db:"created_at" json:"created_at"`
	TokenProperties  persist.TokenProperties  `db:"token_properties" json:"token_properties"`
	PipelineMetadata persist.PipelineMetadata `db:"pipeline_metadata" json:"pipeline_metadata"`
	ProcessingCause  persist.ProcessingCause  `db:"processing_cause" json:"processing_cause"`
	ProcessorVersion string                   `db:"processor_version" json:"processor_version"`
	Deleted          bool                     `db:"deleted" json:"deleted"`
}

type TopRecommendedUser

type TopRecommendedUser struct {
	RecommendedUserID persist.DBID `db:"recommended_user_id" json:"recommended_user_id"`
	Frequency         int64        `db:"frequency" json:"frequency"`
	LastUpdated       interface{}  `db:"last_updated" json:"last_updated"`
}

type UnblockUserParams

type UnblockUserParams struct {
	UserID        persist.DBID `db:"user_id" json:"user_id"`
	BlockedUserID persist.DBID `db:"blocked_user_id" json:"blocked_user_id"`
}

type UpdateCollectionGalleryParams

type UpdateCollectionGalleryParams struct {
	GalleryID persist.DBID `db:"gallery_id" json:"gallery_id"`
	ID        persist.DBID `db:"id" json:"id"`
}

type UpdateCollectionTokensParams

type UpdateCollectionTokensParams struct {
	Nfts persist.DBIDList `db:"nfts" json:"nfts"`
	ID   persist.DBID     `db:"id" json:"id"`
}

type UpdateCollectionsInfoParams

type UpdateCollectionsInfoParams struct {
	Ids             []string       `db:"ids" json:"ids"`
	Names           []string       `db:"names" json:"names"`
	CollectorsNotes []string       `db:"collectors_notes" json:"collectors_notes"`
	Layouts         []pgtype.JSONB `db:"layouts" json:"layouts"`
	TokenSettings   []pgtype.JSONB `db:"token_settings" json:"token_settings"`
	Hidden          []bool         `db:"hidden" json:"hidden"`
}

type UpdateEventCaptionByGroupParams

type UpdateEventCaptionByGroupParams struct {
	Caption sql.NullString `db:"caption" json:"caption"`
	GroupID sql.NullString `db:"group_id" json:"group_id"`
}

type UpdateGalleryCollectionsParams

type UpdateGalleryCollectionsParams struct {
	Collections persist.DBIDList `db:"collections" json:"collections"`
	GalleryID   persist.DBID     `db:"gallery_id" json:"gallery_id"`
}

type UpdateGalleryHiddenParams

type UpdateGalleryHiddenParams struct {
	Hidden bool         `db:"hidden" json:"hidden"`
	ID     persist.DBID `db:"id" json:"id"`
}

type UpdateGalleryInfoParams

type UpdateGalleryInfoParams struct {
	NameSet        bool         `db:"name_set" json:"name_set"`
	Name           string       `db:"name" json:"name"`
	DescriptionSet bool         `db:"description_set" json:"description_set"`
	Description    string       `db:"description" json:"description"`
	ID             persist.DBID `db:"id" json:"id"`
}

type UpdateGalleryPositionsParams

type UpdateGalleryPositionsParams struct {
	OwnerUserID persist.DBID `db:"owner_user_id" json:"owner_user_id"`
	GalleryIds  []string     `db:"gallery_ids" json:"gallery_ids"`
	Positions   []string     `db:"positions" json:"positions"`
}

type UpdateHighlightMintClaimStatusMediaProcessingParams

type UpdateHighlightMintClaimStatusMediaProcessingParams struct {
	Status          highlight.ClaimStatus `db:"status" json:"status"`
	InternalTokenID persist.DBID          `db:"internal_token_id" json:"internal_token_id"`
	ID              persist.DBID          `db:"id" json:"id"`
}

type UpdateHighlightMintClaimStatusParams

type UpdateHighlightMintClaimStatusParams struct {
	Status       highlight.ClaimStatus `db:"status" json:"status"`
	ErrorMessage sql.NullString        `db:"error_message" json:"error_message"`
	ID           persist.DBID          `db:"id" json:"id"`
}

type UpdateHighlightMintClaimStatusTxSucceededParams

type UpdateHighlightMintClaimStatusTxSucceededParams struct {
	Status              highlight.ClaimStatus `db:"status" json:"status"`
	MintedTokenID       persist.HexTokenID    `db:"minted_token_id" json:"minted_token_id"`
	MintedTokenMetadata persist.TokenMetadata `db:"minted_token_metadata" json:"minted_token_metadata"`
	ID                  persist.DBID          `db:"id" json:"id"`
}

type UpdateNotificationParams

type UpdateNotificationParams struct {
	ID       persist.DBID             `db:"id" json:"id"`
	Data     persist.NotificationData `db:"data" json:"data"`
	EventIds persist.DBIDList         `db:"event_ids" json:"event_ids"`
	Amount   int32                    `db:"amount" json:"amount"`
}

type UpdateNotificationSettingsByIDParams

type UpdateNotificationSettingsByIDParams struct {
	ID                   persist.DBID                     `db:"id" json:"id"`
	NotificationSettings persist.UserNotificationSettings `db:"notification_settings" json:"notification_settings"`
}

type UpdatePushTicketsParams

type UpdatePushTicketsParams struct {
	Ids              []string    `db:"ids" json:"ids"`
	CheckAfter       []time.Time `db:"check_after" json:"check_after"`
	NumCheckAttempts []int32     `db:"num_check_attempts" json:"num_check_attempts"`
	Status           []string    `db:"status" json:"status"`
	Deleted          []bool      `db:"deleted" json:"deleted"`
}

type UpdateTokenCollectorsNoteByTokenDbidUserIdParams

type UpdateTokenCollectorsNoteByTokenDbidUserIdParams struct {
	CollectorsNote sql.NullString `db:"collectors_note" json:"collectors_note"`
	ID             persist.DBID   `db:"id" json:"id"`
	OwnerUserID    persist.DBID   `db:"owner_user_id" json:"owner_user_id"`
}

type UpdateTokenMetadataFieldsByTokenIdentifiersParams

type UpdateTokenMetadataFieldsByTokenIdentifiersParams struct {
	Name        sql.NullString     `db:"name" json:"name"`
	Description sql.NullString     `db:"description" json:"description"`
	TokenID     persist.HexTokenID `db:"token_id" json:"token_id"`
	ContractID  persist.DBID       `db:"contract_id" json:"contract_id"`
	Chain       persist.Chain      `db:"chain" json:"chain"`
}

type UpdateTokensAsUserMarkedSpamParams

type UpdateTokensAsUserMarkedSpamParams struct {
	IsUserMarkedSpam sql.NullBool   `db:"is_user_marked_spam" json:"is_user_marked_spam"`
	OwnerUserID      persist.DBID   `db:"owner_user_id" json:"owner_user_id"`
	TokenIds         []persist.DBID `db:"token_ids" json:"token_ids"`
}

type UpdateUserEmailUnsubscriptionsParams

type UpdateUserEmailUnsubscriptionsParams struct {
	ID                   persist.DBID                 `db:"id" json:"id"`
	EmailUnsubscriptions persist.EmailUnsubscriptions `db:"email_unsubscriptions" json:"email_unsubscriptions"`
}

type UpdateUserExperienceParams

type UpdateUserExperienceParams struct {
	Experience pgtype.JSONB `db:"experience" json:"experience"`
	UserID     persist.DBID `db:"user_id" json:"user_id"`
}

type UpdateUserFeaturedGalleryParams

type UpdateUserFeaturedGalleryParams struct {
	GalleryID persist.DBID `db:"gallery_id" json:"gallery_id"`
	UserID    persist.DBID `db:"user_id" json:"user_id"`
}

type UpdateUserPrimaryWalletParams

type UpdateUserPrimaryWalletParams struct {
	WalletID persist.DBID `db:"wallet_id" json:"wallet_id"`
	UserID   persist.DBID `db:"user_id" json:"user_id"`
}

type UpdateUserSocialsParams

type UpdateUserSocialsParams struct {
	Socials persist.Socials `db:"socials" json:"socials"`
	UserID  persist.DBID    `db:"user_id" json:"user_id"`
}

type UpdateUserUnverifiedEmailParams

type UpdateUserUnverifiedEmailParams struct {
	UserID       persist.DBID  `db:"user_id" json:"user_id"`
	EmailAddress persist.Email `db:"email_address" json:"email_address"`
}

type UpdateUserVerifiedEmailParams

type UpdateUserVerifiedEmailParams struct {
	UserID       persist.DBID  `db:"user_id" json:"user_id"`
	EmailAddress persist.Email `db:"email_address" json:"email_address"`
}

type UpdatedRecommendationResultsParams

type UpdatedRecommendationResultsParams struct {
	ID                []string `db:"id" json:"id"`
	UserID            []string `db:"user_id" json:"user_id"`
	RecommendedUserID []string `db:"recommended_user_id" json:"recommended_user_id"`
	RecommendedCount  []int32  `db:"recommended_count" json:"recommended_count"`
}

type UpsertCommunitiesParams

type UpsertCommunitiesParams struct {
	Ids             []string `db:"ids" json:"ids"`
	Version         []int32  `db:"version" json:"version"`
	Name            []string `db:"name" json:"name"`
	Description     []string `db:"description" json:"description"`
	CommunityType   []int32  `db:"community_type" json:"community_type"`
	Key1            []string `db:"key1" json:"key1"`
	Key2            []string `db:"key2" json:"key2"`
	Key3            []string `db:"key3" json:"key3"`
	Key4            []string `db:"key4" json:"key4"`
	ProfileImageUrl []string `db:"profile_image_url" json:"profile_image_url"`
	BadgeUrl        []string `db:"badge_url" json:"badge_url"`
	WebsiteUrl      []string `db:"website_url" json:"website_url"`
	ContractID      []string `db:"contract_id" json:"contract_id"`
}

type UpsertCommunityContractProvidersParams

type UpsertCommunityContractProvidersParams struct {
	Ids             []string `db:"ids" json:"ids"`
	ContractID      []string `db:"contract_id" json:"contract_id"`
	CommunityType   []int32  `db:"community_type" json:"community_type"`
	IsValidProvider []bool   `db:"is_valid_provider" json:"is_valid_provider"`
}

type UpsertCommunityCreatorsParams

type UpsertCommunityCreatorsParams struct {
	Ids                   []string `db:"ids" json:"ids"`
	CommunityID           []string `db:"community_id" json:"community_id"`
	CreatorType           []int32  `db:"creator_type" json:"creator_type"`
	CreatorUserID         []string `db:"creator_user_id" json:"creator_user_id"`
	CreatorAddress        []string `db:"creator_address" json:"creator_address"`
	CreatorAddressChain   []int32  `db:"creator_address_chain" json:"creator_address_chain"`
	CreatorAddressL1Chain []int32  `db:"creator_address_l1_chain" json:"creator_address_l1_chain"`
}

type UpsertContractCommunityMembershipsParams

type UpsertContractCommunityMembershipsParams struct {
	Ids         []string `db:"ids" json:"ids"`
	ContractID  []string `db:"contract_id" json:"contract_id"`
	CommunityID []string `db:"community_id" json:"community_id"`
}

type UpsertParentContractsParams

type UpsertParentContractsParams struct {
	Ids                      []string `db:"ids" json:"ids"`
	Version                  []int32  `db:"version" json:"version"`
	Address                  []string `db:"address" json:"address"`
	Symbol                   []string `db:"symbol" json:"symbol"`
	Name                     []string `db:"name" json:"name"`
	OwnerAddress             []string `db:"owner_address" json:"owner_address"`
	Chain                    []int32  `db:"chain" json:"chain"`
	L1Chain                  []int32  `db:"l1_chain" json:"l1_chain"`
	Description              []string `db:"description" json:"description"`
	ProfileImageUrl          []string `db:"profile_image_url" json:"profile_image_url"`
	ProviderMarkedSpam       []bool   `db:"provider_marked_spam" json:"provider_marked_spam"`
	CanOverwriteOwnerAddress bool     `db:"can_overwrite_owner_address" json:"can_overwrite_owner_address"`
}

type UpsertSessionParams

type UpsertSessionParams struct {
	ID               persist.DBID `db:"id" json:"id"`
	UserID           persist.DBID `db:"user_id" json:"user_id"`
	UserAgent        string       `db:"user_agent" json:"user_agent"`
	Platform         string       `db:"platform" json:"platform"`
	Os               string       `db:"os" json:"os"`
	CurrentRefreshID string       `db:"current_refresh_id" json:"current_refresh_id"`
	ActiveUntil      time.Time    `db:"active_until" json:"active_until"`
}

type UpsertSocialOAuthParams

type UpsertSocialOAuthParams struct {
	ID           persist.DBID           `db:"id" json:"id"`
	UserID       persist.DBID           `db:"user_id" json:"user_id"`
	Provider     persist.SocialProvider `db:"provider" json:"provider"`
	AccessToken  sql.NullString         `db:"access_token" json:"access_token"`
	RefreshToken sql.NullString         `db:"refresh_token" json:"refresh_token"`
}

type UpsertTokenCommunityMembershipsParams

type UpsertTokenCommunityMembershipsParams struct {
	Ids               []string         `db:"ids" json:"ids"`
	TokenDefinitionID []string         `db:"token_definition_id" json:"token_definition_id"`
	CommunityID       []string         `db:"community_id" json:"community_id"`
	TokenID           []pgtype.Numeric `db:"token_id" json:"token_id"`
}

type UpsertTokenDefinitionCommunityMembershipsParams

type UpsertTokenDefinitionCommunityMembershipsParams struct {
	CommunityMembershipDbid    []string         `db:"community_membership_dbid" json:"community_membership_dbid"`
	CommunityTokenDefinitionID []string         `db:"community_token_definition_id" json:"community_token_definition_id"`
	CommunityMembershipTokenID []pgtype.Numeric `db:"community_membership_token_id" json:"community_membership_token_id"`
	CommunityContractID        []string         `db:"community_contract_id" json:"community_contract_id"`
}

type UpsertTokenDefinitionsParams

type UpsertTokenDefinitionsParams struct {
	DefinitionDbid            []string       `db:"definition_dbid" json:"definition_dbid"`
	DefinitionName            []string       `db:"definition_name" json:"definition_name"`
	DefinitionDescription     []string       `db:"definition_description" json:"definition_description"`
	DefinitionTokenType       []string       `db:"definition_token_type" json:"definition_token_type"`
	DefinitionTokenID         []string       `db:"definition_token_id" json:"definition_token_id"`
	DefinitionExternalUrl     []string       `db:"definition_external_url" json:"definition_external_url"`
	DefinitionChain           []int32        `db:"definition_chain" json:"definition_chain"`
	DefinitionFallbackMedia   []pgtype.JSONB `db:"definition_fallback_media" json:"definition_fallback_media"`
	DefinitionContractAddress []string       `db:"definition_contract_address" json:"definition_contract_address"`
	DefinitionContractID      []string       `db:"definition_contract_id" json:"definition_contract_id"`
	DefinitionMetadata        []pgtype.JSONB `db:"definition_metadata" json:"definition_metadata"`
	DefinitionIsFxhash        []bool         `db:"definition_is_fxhash" json:"definition_is_fxhash"`
}

type UpsertTokenDefinitionsRow

type UpsertTokenDefinitionsRow struct {
	TokenDefinition TokenDefinition `db:"token_definition" json:"token_definition"`
	IsNewDefinition bool            `db:"is_new_definition" json:"is_new_definition"`
}

type UpsertTokensParams

type UpsertTokensParams struct {
	SetHolderFields             bool     `db:"set_holder_fields" json:"set_holder_fields"`
	SetCreatorFields            bool     `db:"set_creator_fields" json:"set_creator_fields"`
	TokenDbid                   []string `db:"token_dbid" json:"token_dbid"`
	TokenVersion                []int32  `db:"token_version" json:"token_version"`
	TokenCollectorsNote         []string `db:"token_collectors_note" json:"token_collectors_note"`
	TokenQuantity               []string `db:"token_quantity" json:"token_quantity"`
	TokenBlockNumber            []int64  `db:"token_block_number" json:"token_block_number"`
	TokenOwnerUserID            []string `db:"token_owner_user_id" json:"token_owner_user_id"`
	TokenOwnedByWallets         []string `db:"token_owned_by_wallets" json:"token_owned_by_wallets"`
	TokenOwnedByWalletsStartIdx []int32  `db:"token_owned_by_wallets_start_idx" json:"token_owned_by_wallets_start_idx"`
	TokenOwnedByWalletsEndIdx   []int32  `db:"token_owned_by_wallets_end_idx" json:"token_owned_by_wallets_end_idx"`
	TokenIsCreatorToken         []bool   `db:"token_is_creator_token" json:"token_is_creator_token"`
	TokenTokenID                []string `db:"token_token_id" json:"token_token_id"`
	TokenContractAddress        []string `db:"token_contract_address" json:"token_contract_address"`
	TokenChain                  []int32  `db:"token_chain" json:"token_chain"`
	TokenDefinitionID           []string `db:"token_definition_id" json:"token_definition_id"`
	TokenContractID             []string `db:"token_contract_id" json:"token_contract_id"`
}

type UpsertTokensRow

type UpsertTokensRow struct {
	Token           Token           `db:"token" json:"token"`
	TokenDefinition TokenDefinition `db:"token_definition" json:"token_definition"`
	Contract        Contract        `db:"contract" json:"contract"`
}

type User

type User struct {
	ID                   persist.DBID                     `db:"id" json:"id"`
	Deleted              bool                             `db:"deleted" json:"deleted"`
	Version              sql.NullInt32                    `db:"version" json:"version"`
	LastUpdated          time.Time                        `db:"last_updated" json:"last_updated"`
	CreatedAt            time.Time                        `db:"created_at" json:"created_at"`
	Username             sql.NullString                   `db:"username" json:"username"`
	UsernameIdempotent   sql.NullString                   `db:"username_idempotent" json:"username_idempotent"`
	Wallets              persist.WalletList               `db:"wallets" json:"wallets"`
	Bio                  sql.NullString                   `db:"bio" json:"bio"`
	Traits               pgtype.JSONB                     `db:"traits" json:"traits"`
	Universal            bool                             `db:"universal" json:"universal"`
	NotificationSettings persist.UserNotificationSettings `db:"notification_settings" json:"notification_settings"`
	EmailUnsubscriptions persist.EmailUnsubscriptions     `db:"email_unsubscriptions" json:"email_unsubscriptions"`
	FeaturedGallery      *persist.DBID                    `db:"featured_gallery" json:"featured_gallery"`
	PrimaryWalletID      persist.DBID                     `db:"primary_wallet_id" json:"primary_wallet_id"`
	UserExperiences      pgtype.JSONB                     `db:"user_experiences" json:"user_experiences"`
	ProfileImageID       persist.DBID                     `db:"profile_image_id" json:"profile_image_id"`
	Persona              persist.Persona                  `db:"persona" json:"persona"`
}

type UserBlocklist

type UserBlocklist struct {
	ID            persist.DBID `db:"id" json:"id"`
	CreatedAt     time.Time    `db:"created_at" json:"created_at"`
	LastUpdated   time.Time    `db:"last_updated" json:"last_updated"`
	Deleted       bool         `db:"deleted" json:"deleted"`
	UserID        persist.DBID `db:"user_id" json:"user_id"`
	BlockedUserID persist.DBID `db:"blocked_user_id" json:"blocked_user_id"`
	Active        sql.NullBool `db:"active" json:"active"`
}

type UserInternalRecommendation

type UserInternalRecommendation struct {
	ID          persist.DBID `db:"id" json:"id"`
	UserID      persist.DBID `db:"user_id" json:"user_id"`
	CreatedAt   time.Time    `db:"created_at" json:"created_at"`
	LastUpdated time.Time    `db:"last_updated" json:"last_updated"`
	Deleted     bool         `db:"deleted" json:"deleted"`
}

type UserOwnsCollectionParams

type UserOwnsCollectionParams struct {
	ID          persist.DBID `db:"id" json:"id"`
	OwnerUserID persist.DBID `db:"owner_user_id" json:"owner_user_id"`
}

type UserOwnsGalleryParams

type UserOwnsGalleryParams struct {
	ID          persist.DBID `db:"id" json:"id"`
	OwnerUserID persist.DBID `db:"owner_user_id" json:"owner_user_id"`
}

type UserRelevance

type UserRelevance struct {
	ID    persist.DBID `db:"id" json:"id"`
	Score int32        `db:"score" json:"score"`
}

type UserRole

type UserRole struct {
	ID          persist.DBID `db:"id" json:"id"`
	UserID      persist.DBID `db:"user_id" json:"user_id"`
	Role        persist.Role `db:"role" json:"role"`
	Version     int32        `db:"version" json:"version"`
	Deleted     bool         `db:"deleted" json:"deleted"`
	CreatedAt   time.Time    `db:"created_at" json:"created_at"`
	LastUpdated time.Time    `db:"last_updated" json:"last_updated"`
}

type UsersFollowUserParams

type UsersFollowUserParams struct {
	Followee    persist.DBID `db:"followee" json:"followee"`
	FollowedIds []string     `db:"followed_ids" json:"followed_ids"`
}

type Wallet

type Wallet struct {
	ID          persist.DBID       `db:"id" json:"id"`
	CreatedAt   time.Time          `db:"created_at" json:"created_at"`
	LastUpdated time.Time          `db:"last_updated" json:"last_updated"`
	Deleted     bool               `db:"deleted" json:"deleted"`
	Version     sql.NullInt32      `db:"version" json:"version"`
	Address     persist.Address    `db:"address" json:"address"`
	WalletType  persist.WalletType `db:"wallet_type" json:"wallet_type"`
	Chain       persist.Chain      `db:"chain" json:"chain"`
	L1Chain     persist.L1Chain    `db:"l1_chain" json:"l1_chain"`
}

Jump to

Keyboard shortcuts

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