doc: explain how to use composite types properly (#4136)

This commit is contained in:
Ariel Mashraki
2024-07-12 14:38:08 +03:00
committed by GitHub
parent 727aa0acd7
commit e57ff4adce
31 changed files with 3596 additions and 33 deletions

View File

@@ -0,0 +1,4 @@
-- Create composite type "address"
CREATE TYPE "address" AS ("street" text, "city" text);
-- Create "users" table
CREATE TABLE "users" ("id" bigint NOT NULL GENERATED BY DEFAULT AS IDENTITY, "address" "address" NOT NULL, PRIMARY KEY ("id"));

View File

@@ -0,0 +1,2 @@
h1:UUbilEPJRXYtmqXCFE0ZKtZT4TRpqstAzYclz1kL7Oc=
20240712104409.sql h1:IOOz8mkjBnp8MLVcxkU5E/sW9Q/an2tE3cpRuJt5PoM=