mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
doc: explain how to use composite types properly (#4136)
This commit is contained in:
4
examples/compositetypes/migrations/20240712104409.sql
Normal file
4
examples/compositetypes/migrations/20240712104409.sql
Normal 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"));
|
||||
2
examples/compositetypes/migrations/atlas.sum
Normal file
2
examples/compositetypes/migrations/atlas.sum
Normal file
@@ -0,0 +1,2 @@
|
||||
h1:UUbilEPJRXYtmqXCFE0ZKtZT4TRpqstAzYclz1kL7Oc=
|
||||
20240712104409.sql h1:IOOz8mkjBnp8MLVcxkU5E/sW9Q/an2tE3cpRuJt5PoM=
|
||||
Reference in New Issue
Block a user