Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions dirs/rbac/schema.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- Add new schema named "public"
-- Add new schema named "public"
CREATE SCHEMA IF NOT EXISTS "public";
-- Set comment to schema: "public"
COMMENT ON SCHEMA "public" IS 'standard public schema';
Expand Down Expand Up @@ -81,7 +81,8 @@ CREATE TABLE "public"."employees" (
CONSTRAINT "employees_department_id_fkey" FOREIGN KEY ("department_id") REFERENCES "public"."departments" ("id") ON UPDATE NO ACTION ON DELETE RESTRICT,
CONSTRAINT "employees_salary_positive_chk" CHECK ("salary" >= 15.00),
CONSTRAINT "employees_salary_reasonable_max_chk" CHECK ("salary" <= 99999999.99),
CONSTRAINT "employees_start_date_not_future_chk" CHECK ("start_date" <= CURRENT_DATE)
CONSTRAINT "employees_start_date_not_future_chk" CHECK ("start_date" <= CURRENT_DATE),
CONSTRAINT "employees_user_id_unique" UNIQUE ("user_id")
);

-- Create "projects" table
Expand Down
Loading