feat(store): schedules, notification_channels, domain last_check_status + методы

This commit is contained in:
2026-07-04 13:10:42 +07:00
parent 1cdb32b747
commit 6fd847a909
10 changed files with 814 additions and 5 deletions
+20
View File
@@ -25,6 +25,17 @@ type Domain struct {
ZoneID string `json:"zone_id"`
TemplateID *uuid.UUID `json:"template_id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
LastCheckStatus string `json:"last_check_status"`
}
type NotificationChannel struct {
ID uuid.UUID `json:"id"`
ProjectID uuid.UUID `json:"project_id"`
Type string `json:"type"`
Config []byte `json:"config"`
SecretEnc string `json:"secret_enc"`
Enabled bool `json:"enabled"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
}
type Project struct {
@@ -43,6 +54,15 @@ type ProviderAccount struct {
CreatedAt pgtype.Timestamptz `json:"created_at"`
}
type Schedule struct {
ID uuid.UUID `json:"id"`
ProjectID uuid.UUID `json:"project_id"`
IntervalSeconds int32 `json:"interval_seconds"`
Enabled bool `json:"enabled"`
LastRunAt pgtype.Timestamptz `json:"last_run_at"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
}
type Session struct {
ID uuid.UUID `json:"id"`
UserID uuid.UUID `json:"user_id"`