Last active
November 8, 2023 21:36
-
-
Save syntaqx/a80c435e64a2a844bb21922798864001 to your computer and use it in GitHub Desktop.
Revisions
-
syntaqx revised this gist
Nov 8, 2023 . 2 changed files with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes.File renamed without changes. -
syntaqx revised this gist
Nov 8, 2023 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,2 @@ INSERT INTO customers (name, email, created_by) VALUES ('John Doe', '[email protected]', ROW('namespace1', '12345')); -
syntaqx created this gist
Nov 8, 2023 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ CREATE TYPE urn AS ( namespace TEXT, identifier TEXT ); CREATE TABLE customers ( customer_id SERIAL PRIMARY KEY, name TEXT NOT NULL, email TEXT UNIQUE NOT NULL, created_by urn, -- Using the custom "urn" type created_at TIMESTAMP DEFAULT NOW() );