mirror of
https://github.com/coder/coder.git
synced 2026-06-03 04:58:23 +00:00
c9bce19d88
* GET license endpoint Signed-off-by: Spike Curtis <spike@coder.com> * SDK GetLicenses -> Licenses Signed-off-by: Spike Curtis <spike@coder.com> Signed-off-by: Spike Curtis <spike@coder.com>
16 lines
180 B
SQL
16 lines
180 B
SQL
-- name: InsertLicense :one
|
|
INSERT INTO
|
|
licenses (
|
|
uploaded_at,
|
|
jwt,
|
|
exp
|
|
)
|
|
VALUES
|
|
($1, $2, $3) RETURNING *;
|
|
|
|
|
|
-- name: GetLicenses :many
|
|
SELECT *
|
|
FROM licenses
|
|
ORDER BY (id);
|