q

package
v0.0.0-...-bdfed93 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	ID              uuid.UUID
	UserID          uuid.UUID
	JobID           int64
	State           string
	Version         int64
	CreatedAt       time.Time
	UpdatedAt       time.Time
	HandoffUntil    *time.Time
	HandoffWarned   bool
	ApprovalAskedAt *time.Time
	ApprovalReasons []string
	ApprovedAt      *time.Time
	CvDocumentID    *uuid.UUID
	QueuePos        *int64
	QueuePaused     bool
}

type ApplicationEvent

type ApplicationEvent struct {
	ID            int64
	ApplicationID uuid.UUID
	UserID        uuid.UUID
	Event         string
	FromState     string
	ToState       string
	Actor         string
	Detail        []byte
	At            time.Time
}

type ApplicationNote

type ApplicationNote struct {
	ID              uuid.UUID
	UserID          uuid.UUID
	ApplicationID   uuid.UUID
	Notes           string
	SalaryDiscussed string
	InterviewAt     *time.Time
	FollowUpAt      *time.Time
	CreatedAt       time.Time
	UpdatedAt       time.Time
}

type AssistPairing

type AssistPairing struct {
	ID        uuid.UUID
	UserID    uuid.UUID
	CodeHash  []byte
	CreatedAt time.Time
	ExpiresAt time.Time
}

type AssistToken

type AssistToken struct {
	ID         uuid.UUID
	UserID     uuid.UUID
	TokenHash  []byte
	ClientName string
	CreatedAt  time.Time
	ExpiresAt  time.Time
	LastUsedAt *time.Time
}

type AuditEvent

type AuditEvent struct {
	ID        int64
	UserID    *uuid.UUID
	Actor     string
	Code      string
	Params    []byte
	CreatedAt time.Time
}

type AutonomySetting

type AutonomySetting struct {
	UserID                   uuid.UUID
	Level                    string
	MinScore                 int16
	DailyLimit               int16
	UpdatedAt                time.Time
	RunnerChoice             string
	HomeRunnerTokenHash      []byte
	EasyApplyEnabled         bool
	EasyApplyTermsAcceptedAt *time.Time
}

type Backup

type Backup struct {
	ID         int64
	FinishedAt time.Time
	Bytes      int64
}

type Board

type Board struct {
	ID            int64
	Ats           string
	Slug          string
	Company       string
	Config        []byte
	Origin        string
	Enabled       bool
	Etag          *string
	LastModified  *string
	LastCrawledAt *time.Time
	LastError     *string
	CreatedAt     time.Time
}

type BoardCheck

type BoardCheck struct {
	CompanyKey string
	CheckedAt  time.Time
	RecheckAt  time.Time
	Result     string
	BoardID    *int64
}

type CrawlRun

type CrawlRun struct {
	ID         int64
	StartedAt  time.Time
	FinishedAt *time.Time
	Sources    []string
	Stats      []byte
	Errors     []byte
}

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
}

type DeleteSubscriptionParams

type DeleteSubscriptionParams struct {
	UserID   uuid.UUID
	Endpoint string
}

type Document

type Document struct {
	ID         uuid.UUID
	UserID     uuid.UUID
	Kind       string
	SealedName []byte
	Mime       string
	Size       int32
	Label      string
	Language   string
	Focus      []string
	CreatedAt  time.Time
}

type Education

type Education struct {
	ID           uuid.UUID
	UserID       uuid.UUID
	Institution  string
	Degree       string
	FieldOfStudy string
	StartDate    string
	EndDate      string
	IsCurrent    bool
	Grade        string
	SortOrder    int32
	CreatedAt    time.Time
	UpdatedAt    time.Time
}

type Invitation

type Invitation struct {
	ID           uuid.UUID
	Email        string
	Role         string
	TokenHash    []byte
	CreatedBy    *uuid.UUID
	CreatedAt    time.Time
	ExpiresAt    time.Time
	AcceptedAt   *time.Time
	AcceptedUser *uuid.UUID
}

type Job

type Job struct {
	ID             int64
	Fingerprint    string
	MatchKey       string
	Source         string
	ExternalID     string
	Company        string
	Title          string
	Location       string
	Workplace      string
	Url            string
	ApplyUrl       string
	AltUrls        []string
	Description    string
	Posted         pgtype.Date
	ContentHash    string
	Status         string
	FirstSeen      time.Time
	LastSeen       time.Time
	ClosedAt       *time.Time
	Search         interface{}
	SalaryMin      *int32
	SalaryMax      *int32
	SalaryCurrency string
}

type JobSnapshot

type JobSnapshot struct {
	ID          int64
	JobID       int64
	CrawlRun    *int64
	Change      string
	Title       string
	Location    string
	ContentHash string
	Diff        []byte
	CreatedAt   time.Time
}
type MagicLink struct {
	TokenHash []byte
	UserID    uuid.UUID
	CreatedAt time.Time
	ExpiresAt time.Time
	UsedAt    *time.Time
}

type Maintenance

type Maintenance struct {
	ID      bool
	Message string
	Since   time.Time
}

type Match

type Match struct {
	UserID     uuid.UUID
	JobID      int64
	Score      int16
	Decision   string
	Reasons    []byte
	Rules      int32
	ComputedAt time.Time
}

type NotifyPreference

type NotifyPreference struct {
	UserID              uuid.UUID
	EmailEnabled        bool
	EmailAddress        string
	WebpushEnabled      bool
	NtfyEnabled         bool
	NtfyUrl             string
	NtfyTopic           string
	NtfyToken           string
	DailySummaryEnabled bool
	DailySummaryTime    string
	LastSummaryAt       *time.Time
	QuietHoursEnabled   bool
	QuietHoursStart     string
	QuietHoursEnd       string
	CreatedAt           time.Time
	UpdatedAt           time.Time
}

type NotifyRead

type NotifyRead struct {
	UserID uuid.UUID
	SeenAt time.Time
}

type Passkey

type Passkey struct {
	ID         []byte
	UserID     uuid.UUID
	Name       string
	Credential []byte
	CreatedAt  time.Time
	LastUsedAt *time.Time
}

type PortalSession

type PortalSession struct {
	UserID           uuid.UUID
	Portal           string
	Status           string
	EncryptedCookies []byte
	DailyLimit       int32
	LastUsedAt       *time.Time
	CreatedAt        time.Time
	UpdatedAt        time.Time
}

type Profile

type Profile struct {
	UserID      uuid.UUID
	Sealed      []byte
	Preferences []byte
	Version     int64
	UpdatedAt   time.Time
}

type ProfileItem

type ProfileItem struct {
	ID        uuid.UUID
	UserID    uuid.UUID
	Kind      string
	Sealed    []byte
	UpdatedAt time.Time
}

type PushSubscription

type PushSubscription struct {
	ID        uuid.UUID
	UserID    uuid.UUID
	Endpoint  string
	P256dh    string
	Auth      string
	CreatedAt time.Time
}

type Queries

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

func New

func New(db DBTX) *Queries

func (*Queries) DeleteSubscription

func (q *Queries) DeleteSubscription(ctx context.Context, arg DeleteSubscriptionParams) error

func (*Queries) DeleteSubscriptionByEndpoint

func (q *Queries) DeleteSubscriptionByEndpoint(ctx context.Context, endpoint string) error

func (*Queries) ListSubscriptionsByUser

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

func (*Queries) UpsertSubscription

func (q *Queries) UpsertSubscription(ctx context.Context, arg UpsertSubscriptionParams) (PushSubscription, error)

func (*Queries) WithTx

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

type Recovery

type Recovery struct {
	UserID      uuid.UUID
	RequestedAt time.Time
	ReadyAt     time.Time
	ExpiresAt   time.Time
}

type Run

type Run struct {
	ID            uuid.UUID
	ApplicationID uuid.UUID
	UserID        uuid.UUID
	RunnerID      string
	Host          string
	TokenHash     []byte
	LeasedAt      time.Time
	ExpiresAt     time.Time
	FinishedAt    *time.Time
	Outcome       *string
	Adapter       string
	Portal        string
}

type RunCheckpoint

type RunCheckpoint struct {
	ID         int64
	RunID      uuid.UUID
	UserID     uuid.UUID
	Step       string
	Page       int32
	Url        string
	Data       []byte
	Screenshot string
	At         time.Time
}

type SavedSearch

type SavedSearch struct {
	ID        int64
	UserID    uuid.UUID
	Name      string
	Query     string
	Alert     bool
	CheckedAt time.Time
	CreatedAt time.Time
}

type Session

type Session struct {
	TokenHash  []byte
	UserID     uuid.UUID
	Method     string
	CreatedAt  time.Time
	LastSeenAt time.Time
	ExpiresAt  time.Time
	Family     uuid.UUID
	RotatedAt  *time.Time
	ReplacedAt *time.Time
}

type SubmitAttempt

type SubmitAttempt struct {
	ApplicationID uuid.UUID
	UserID        uuid.UUID
	StartedAt     time.Time
	FinishedAt    *time.Time
	Outcome       *string
}

type TrackingMailbox

type TrackingMailbox struct {
	UserID            uuid.UUID
	Host              string
	Port              int32
	Tls               bool
	Username          string
	EncryptedPassword []byte
	Enabled           bool
	LastUid           int64
	UidValidity       int64
	LastCheckedAt     *time.Time
	LastError         *string
	CreatedAt         time.Time
	UpdatedAt         time.Time
}

type TrackingSuggestion

type TrackingSuggestion struct {
	ID             uuid.UUID
	UserID         uuid.UUID
	ApplicationID  uuid.UUID
	MessageUid     int64
	MessageID      *string
	MessageFrom    string
	MessageSubject string
	MessageDate    time.Time
	Category       string
	SuggestedState string
	Reasons        []byte
	Status         string
	CreatedAt      time.Time
	UpdatedAt      time.Time
}

type UpsertSubscriptionParams

type UpsertSubscriptionParams struct {
	UserID   uuid.UUID
	Endpoint string
	P256dh   string
	Auth     string
}

type User

type User struct {
	ID          uuid.UUID
	Email       string
	DisplayName string
	Role        string
	Locale      string
	CreatedAt   time.Time
	DisabledAt  *time.Time
	DockLayout  string
	LastSeenAt  *time.Time
}

type UserBlocklist

type UserBlocklist struct {
	ID        int64
	UserID    uuid.UUID
	Kind      string
	Pattern   string
	CreatedAt time.Time
}

type UserKey

type UserKey struct {
	UserID      uuid.UUID
	MasterKeyID string
	Wrapped     []byte
	CreatedAt   time.Time
	RotatedAt   *time.Time
}

type WebauthnChallenge

type WebauthnChallenge struct {
	ID        uuid.UUID
	UserID    *uuid.UUID
	Kind      string
	Data      []byte
	ExpiresAt time.Time
}

type WorkExperience

type WorkExperience struct {
	ID            uuid.UUID
	UserID        uuid.UUID
	Company       string
	Title         string
	Location      string
	WorkplaceType string
	StartDate     string
	EndDate       string
	IsCurrent     bool
	SealedBullets []byte
	SortOrder     int32
	CreatedAt     time.Time
	UpdatedAt     time.Time
}

Jump to

Keyboard shortcuts

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