feat(store): schedules, notification_channels, domain last_check_status + методы
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
-- name: CreateChannel :one
|
||||
INSERT INTO notification_channels (id, project_id, type, config, secret_enc)
|
||||
VALUES ($1, $2, $3, $4, $5) RETURNING *;
|
||||
|
||||
-- name: ListChannels :many
|
||||
SELECT * FROM notification_channels WHERE project_id = $1 ORDER BY created_at;
|
||||
|
||||
-- name: ListEnabledChannels :many
|
||||
SELECT * FROM notification_channels WHERE project_id = $1 AND enabled ORDER BY created_at;
|
||||
|
||||
-- name: GetChannel :one
|
||||
SELECT * FROM notification_channels WHERE id = $1 AND project_id = $2;
|
||||
|
||||
-- name: DeleteChannel :exec
|
||||
DELETE FROM notification_channels WHERE id = $1 AND project_id = $2;
|
||||
Reference in New Issue
Block a user