snapshot of https://github.com/ent/ent.git (master, 2026-09-15; blobs > 131072B omitted)
This commit is contained in:
5
examples/domaintypes/schema.sql
Normal file
5
examples/domaintypes/schema.sql
Normal file
@@ -0,0 +1,5 @@
|
||||
CREATE DOMAIN us_postal_code AS TEXT
|
||||
CHECK(
|
||||
VALUE ~ '^\d{5}$'
|
||||
OR VALUE ~ '^\d{5}-\d{4}$'
|
||||
);
|
||||
Reference in New Issue
Block a user