Commit b6d0b67
authored
feat: roles array, getDirettivo, setRole into addRole, changes... (#16)
* feat: support multiple roles in tg.permission table
* feat: add getDirettivo route
* build: generate db migration
* fix(getRole): if no role, returns `["user"]` instead of `user`
* fix(getDirettivo): better output shape
* fix: varchar is bullshit, switching to text
TODO: maybe merge the two DB migrations into one
* fix: add back logic commented out
* feat: not role is now null instead of 'user'
* refactor: query optimization, removing DUPLICATE_ROLE error
* feat: removeRole procedure
* release: v0.11.01 parent d3ba574 commit b6d0b67
File tree
9 files changed
+1836
-35
lines changed- backend
- drizzle
- meta
- src
- db/schema/tg
- routers/tg
- package
9 files changed
+1836
-35
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
0 commit comments