mirror of
https://github.com/abhinavxd/libredesk.git
synced 2026-09-22 02:23:32 +00:00
50188352a5
feat: store user roles in user roles table, drops the roles table on users table. feat: standardize column names in schema, renames disabled bool to enables. - vue router fixes to allow components / pages to rerender after creating an object in db. - minor fixes and refactors.
29 lines
317 B
SQL
29 lines
317 B
SQL
-- name: get-all-tags
|
|
select
|
|
id,
|
|
created_at,
|
|
updated_at,
|
|
name
|
|
from
|
|
tags;
|
|
|
|
-- name: insert-tag
|
|
INSERT into
|
|
tags (name)
|
|
values
|
|
($1);
|
|
|
|
-- name: delete-tag
|
|
DELETE from
|
|
tags
|
|
where
|
|
id = $1;
|
|
|
|
-- name: update-tag
|
|
UPDATE
|
|
tags
|
|
set
|
|
name = $2,
|
|
updated_at = now()
|
|
where
|
|
id = $1; |