feat: persist candidate questionnaires and enforce company quotas

This commit is contained in:
TakuyaYagam1 committed 2026-10-07 15:47:10 +03:00
1 parent 73c7caa225
commit 3a61a8e8bb
51 files changed
+6280 -38

No files matched your search

@@ -16,6 +16,16 @@ type AccountDeletionRequest struct {
CompletedAt pgtype.Timestamptz
}
type AssessmentCategoryCatalogBinding struct {
OpeningID pgtype.UUID
Specialization string
Grade string
TaskLanguages []string
PublishedManifestSha256 []byte
ReviewedBy string
ReviewedAt pgtype.Timestamptz
}
type AssessmentCategoryOpening struct {
ID pgtype.UUID
Category string
@@ -124,6 +134,25 @@ type CandidatePublication struct {
UpdatedAt pgtype.Timestamptz
}
type CandidateQuestionnaire struct {
UserID pgtype.UUID
Version int64
WorkFormats []string
CreatedAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
}
type CandidateQuestionnaireSpecialization struct {
UserID pgtype.UUID
Ordinal int16
Specialization string
SelfAssessedGrade string
TaskLanguages []string
Stack []string
CommercialMonths pgtype.Int4
AcademicMonths pgtype.Int4
}
type CandidateSearchStatus struct {
UserID pgtype.UUID
Status string
@@ -135,6 +164,28 @@ type CandidateSearchStatus struct {
UpdatedAt pgtype.Timestamptz
}
type CompanyCardViewQuotaUsage struct {
OrganizationID pgtype.UUID
CandidateID pgtype.UUID
LastSeenAt pgtype.Timestamptz
PolicyVersionID pgtype.UUID
VerificationLevel string
VerificationBasis string
VerificationChangedAt pgtype.Timestamptz
QuotaTier string
}
type CompanyInvitationQuotaUsage struct {
OrganizationID pgtype.UUID
InvitationID pgtype.UUID
ReservedAt pgtype.Timestamptz
PolicyVersionID pgtype.UUID
VerificationLevel string
VerificationBasis string
VerificationChangedAt pgtype.Timestamptz
QuotaTier string
}
type ConsentRecord struct {
ID pgtype.UUID
SubjectID pgtype.UUID