feat(invitations): add organization invitation drafts with salary range rules
This commit is contained in:
1 parent
28337d84cb
commit
bd23c839fd
36 files changed
+7018
-83
No files matched your search
@@ -570,6 +570,58 @@ type IdempotencyRecord struct {
|
||||
ExpiresAt pgtype.Timestamptz
|
||||
}
|
||||
|
||||
type Invitation struct {
|
||||
ID pgtype.UUID
|
||||
OrganizationID pgtype.UUID
|
||||
CandidateID pgtype.UUID
|
||||
NeedID pgtype.UUID
|
||||
NeedRequirementsVersion pgtype.Int8
|
||||
State string
|
||||
ExpiryReason pgtype.Text
|
||||
Version int64
|
||||
TermsVersion int64
|
||||
ResponsePeriodDays int16
|
||||
PolicyVersionID pgtype.UUID
|
||||
ResponseDeadlineAt pgtype.Timestamptz
|
||||
SalaryRaiseUsed bool
|
||||
CreatedBy pgtype.UUID
|
||||
CreatedAt pgtype.Timestamptz
|
||||
UpdatedAt pgtype.Timestamptz
|
||||
DeliveredAt pgtype.Timestamptz
|
||||
ViewedAt pgtype.Timestamptz
|
||||
RespondedAt pgtype.Timestamptz
|
||||
}
|
||||
|
||||
type InvitationCreationResult struct {
|
||||
ScopeHash []byte
|
||||
Snapshot []byte
|
||||
}
|
||||
|
||||
type InvitationEvent struct {
|
||||
ID pgtype.UUID
|
||||
InvitationID pgtype.UUID
|
||||
OrganizationID pgtype.UUID
|
||||
Version int64
|
||||
TermsVersion int64
|
||||
Kind string
|
||||
ActorID pgtype.UUID
|
||||
ChangedFields []string
|
||||
OccurredAt pgtype.Timestamptz
|
||||
}
|
||||
|
||||
type InvitationTermsVersion struct {
|
||||
InvitationID pgtype.UUID
|
||||
OrganizationID pgtype.UUID
|
||||
Version int64
|
||||
Terms []byte
|
||||
SalaryFrom int64
|
||||
SalaryTo int64
|
||||
SalaryCurrency string
|
||||
SalaryPeriod string
|
||||
SalaryTaxBasis string
|
||||
CreatedAt pgtype.Timestamptz
|
||||
}
|
||||
|
||||
type MailQuotaReservation struct {
|
||||
ID pgtype.UUID
|
||||
DeliveryID pgtype.UUID
|
||||
|
||||
Reference in new issue
Block a user