snapshot of https://github.com/ent/ent.git (master, 2026-09-15; blobs > 131072B omitted)
This commit is contained in:
4
examples/domaintypes/migrations/20240712090543.sql
Normal file
4
examples/domaintypes/migrations/20240712090543.sql
Normal file
@@ -0,0 +1,4 @@
|
||||
-- Create domain type "us_postal_code"
|
||||
CREATE DOMAIN "us_postal_code" AS text CONSTRAINT "us_postal_code_check" CHECK ((VALUE ~ '^\d{5}$'::text) OR (VALUE ~ '^\d{5}-\d{4}$'::text));
|
||||
-- Create "users" table
|
||||
CREATE TABLE "users" ("id" bigint NOT NULL GENERATED BY DEFAULT AS IDENTITY, "postal_code" "us_postal_code" NOT NULL, PRIMARY KEY ("id"));
|
||||
2
examples/domaintypes/migrations/atlas.sum
Normal file
2
examples/domaintypes/migrations/atlas.sum
Normal file
@@ -0,0 +1,2 @@
|
||||
h1:At7DiHQPy1PLZckicleQ2sACkf4OB6U/unD9XAWelqA=
|
||||
20240712090543.sql h1:UeQp2tdDEr4KfgP8YKNAfg3iBoNHjOm4fyAK2NOVNek=
|
||||
Reference in New Issue
Block a user