feat: add dms, hieracthical arguments, permission and rank system
This commit is contained in:
parent
544bbf73cb
commit
257bc55b75
25 changed files with 503 additions and 209 deletions
4
migrations/20250914092514_rank.down.sql
Normal file
4
migrations/20250914092514_rank.down.sql
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
-- Add down migration script here
|
||||
ALTER TABLE users
|
||||
DROP COLUMN rank,
|
||||
DROP COLUMN "extra_permissions";
|
||||
3
migrations/20250914092514_rank.up.sql
Normal file
3
migrations/20250914092514_rank.up.sql
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
ALTER TABLE users
|
||||
ADD COLUMN rank TEXT NOT NULL DEFAULT 'user',
|
||||
ADD COLUMN "extra_permissions" JSON NOT NULL DEFAULT '[]';
|
||||
Loading…
Add table
Add a link
Reference in a new issue