Created
July 18, 2023 12:22
-
-
Save MattMS/3a707d5b1a0f7f7d4bd7ebd7ad707000 to your computer and use it in GitHub Desktop.
PostgreSQL table with JSONB referenced by UUID
This file contains 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 characters
CREATE TABLE doc (k UUID PRIMARY KEY DEFAULT gen_random_uuid(), v JSONB NOT NULL); | |
INSERT INTO doc (v) VALUES ('{"ok": true}'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment