mirror of
https://github.com/coder/coder.git
synced 2025-07-12 00:14:10 +00:00
23 lines
324 B
SQL
23 lines
324 B
SQL
-- name: GetOrganizationMemberByUserID :one
|
|
SELECT
|
|
*
|
|
FROM
|
|
organization_members
|
|
WHERE
|
|
organization_id = $1
|
|
AND user_id = $2
|
|
LIMIT
|
|
1;
|
|
|
|
-- name: InsertOrganizationMember :one
|
|
INSERT INTO
|
|
organization_members (
|
|
organization_id,
|
|
user_id,
|
|
created_at,
|
|
updated_at,
|
|
roles
|
|
)
|
|
VALUES
|
|
($1, $2, $3, $4, $5) RETURNING *;
|