mirror of
https://github.com/Kyren223/eko.git
synced 2026-03-15 12:07:17 +00:00
17 lines
499 B
SQL
17 lines
499 B
SQL
-- name: GetUserTrusteds :many
|
|
SELECT trusted_user_id, trusted_public_key FROM trusted_users
|
|
WHERE trusting_user_id = ?;
|
|
|
|
-- name: GetTrustedPublicKey :one
|
|
SELECT trusted_public_key FROM trusted_users
|
|
WHERE trusting_user_id = ? AND trusted_user_id = ?;
|
|
|
|
-- name: TrustUser :exec
|
|
INSERT OR IGNORE INTO trusted_users (
|
|
trusting_user_id, trusted_user_id, trusted_public_key
|
|
) VALUES (?, ?, ?);
|
|
|
|
-- name: UntrustUser :exec
|
|
DELETE FROM trusted_users
|
|
WHERE trusting_user_id = ? AND trusted_user_id = ?;
|