initial commit
This commit is contained in:
13
database/migrations/20260226000000_specialist_roles.sql
Normal file
13
database/migrations/20260226000000_specialist_roles.sql
Normal file
@@ -0,0 +1,13 @@
|
||||
-- Create "profile_roles" table (profiles.role_id references this)
|
||||
CREATE TABLE "public"."profile_roles" (
|
||||
"id" uuid NOT NULL DEFAULT gen_random_uuid(),
|
||||
"title" text NOT NULL,
|
||||
"status" text NOT NULL DEFAULT 'active',
|
||||
"created_at" timestamptz NOT NULL DEFAULT now(),
|
||||
"updated_at" timestamptz NOT NULL DEFAULT now(),
|
||||
"deleted_at" timestamptz NULL,
|
||||
PRIMARY KEY ("id")
|
||||
);
|
||||
|
||||
CREATE INDEX "profile_roles_status_idx" ON "public"."profile_roles" ("status");
|
||||
CREATE INDEX "profile_roles_deleted_at_idx" ON "public"."profile_roles" ("deleted_at");
|
||||
Reference in New Issue
Block a user