feat(store): schedules, notification_channels, domain last_check_status + методы
This commit is contained in:
@@ -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"`
|
||||
|
||||
Reference in New Issue
Block a user