Skip to content

Commit

Permalink
Add index for person f nr
Browse files Browse the repository at this point in the history
  • Loading branch information
SandGrainOne committed Oct 18, 2024
1 parent c0176ab commit f5a59a1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
-- Create schema if it doesn't exist
CREATE SCHEMA IF NOT EXISTS contact_and_reservation;
CREATE SCHEMA IF NOT EXISTS contact_and_reservation;
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
-- Grant access to the schema
GRANT ALL ON SCHEMA contact_and_reservation TO platform_profile_admin;
GRANT USAGE ON SCHEMA contact_and_reservation TO platform_profile;
GRANT USAGE ON SCHEMA contact_and_reservation TO platform_profile;
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,6 @@ CREATE TABLE IF NOT EXISTS contact_and_reservation.person (
CONSTRAINT fk_mailbox_supplier FOREIGN KEY (mailbox_supplier_id_fk) REFERENCES contact_and_reservation.mailbox_supplier (mailbox_supplier_id),
CONSTRAINT chk_language_code CHECK (language_code ~* '^[a-z]{2}$')
);

-- Indexes for performance
CREATE INDEX idx_fnumber_ak ON contact_and_reservation.person (fnumber_ak);

0 comments on commit f5a59a1

Please sign in to comment.