bluebell/database/queries/sites.sql

21 lines
315 B
MySQL
Raw Normal View History

2024-08-16 16:48:50 +01:00
-- name: GetSiteBySlug :one
SELECT *
FROM sites
WHERE slug = ?
LIMIT 1;
2024-08-10 13:28:30 +01:00
-- name: GetSiteByDomain :one
SELECT *
FROM sites
WHERE domain = ?
LIMIT 1;
2024-08-16 16:48:50 +01:00
-- name: EnableDomain :exec
INSERT INTO sites (slug, domain, token)
VALUES (?, ?, ?);
-- name: DeleteDomain :exec
UPDATE sites
SET enable = false
WHERE domain = ?;