feat(store): add status pages and their components
Composite foreign keys keep pages from listing monitors of other organizations, independent of row-level security. Refs #21 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
This commit is contained in:
1 parent
b831478143
commit
d820547e8c
9 files changed
+570
No files matched your search
@@ -206,6 +206,30 @@ type SsoProvider struct {
|
||||
DefaultRoleID *uuid.UUID
|
||||
}
|
||||
|
||||
type StatusPage struct {
|
||||
ID uuid.UUID
|
||||
OrgID uuid.UUID
|
||||
Slug string
|
||||
Title string
|
||||
Description string
|
||||
Published bool
|
||||
CustomDomain *string
|
||||
DomainToken string
|
||||
DomainVerifiedAt *time.Time
|
||||
Theme []byte
|
||||
CreatedAt time.Time
|
||||
UpdatedAt time.Time
|
||||
}
|
||||
|
||||
type StatusPageMonitor struct {
|
||||
PageID uuid.UUID
|
||||
MonitorID uuid.UUID
|
||||
OrgID uuid.UUID
|
||||
Section string
|
||||
Label string
|
||||
Position int32
|
||||
}
|
||||
|
||||
type User struct {
|
||||
ID uuid.UUID
|
||||
Email string
|
||||
|
||||
Reference in new issue
Block a user