tangled
alpha
login
or
join now
malpercio.dev
/
atbb
5
fork
atom
WIP! A BB-style forum, on the ATmosphere! We're still working... we'll be back soon when we have something to show off!
node
typescript
hono
htmx
atproto
5
fork
atom
overview
issues
pulls
pipelines
feat(db): migration 0011 — add role_permissions table
malpercio.dev
2 weeks ago
54bf4a5f
d871c4c6
+7
1 changed file
expand all
collapse all
unified
split
apps
appview
drizzle
0011_first_apocalypse.sql
+7
apps/appview/drizzle/0011_first_apocalypse.sql
···
1
1
+
CREATE TABLE "role_permissions" (
2
2
+
"role_id" bigint NOT NULL,
3
3
+
"permission" text NOT NULL,
4
4
+
CONSTRAINT "role_permissions_role_id_permission_pk" PRIMARY KEY("role_id","permission")
5
5
+
);
6
6
+
--> statement-breakpoint
7
7
+
ALTER TABLE "role_permissions" ADD CONSTRAINT "role_permissions_role_id_roles_id_fk" FOREIGN KEY ("role_id") REFERENCES "public"."roles"("id") ON DELETE cascade ON UPDATE no action;