ent: support schema view (#4157)

This commit is contained in:
Ariel Mashraki
2024-07-28 19:00:47 +03:00
committed by GitHub
parent 5cd2ede22d
commit 15bebe8d89
95 changed files with 14608 additions and 32 deletions

View File

@@ -0,0 +1,13 @@
-- Create "clean_users" view
CREATE VIEW "clean_users" ("id", "name", "public_info") AS SELECT id,
name,
public_info
FROM users;
-- Create "pet_user_names" view
CREATE VIEW "pet_user_names" ("name") AS SELECT DISTINCT name
FROM ( SELECT users.name
FROM users
UNION
SELECT pets.name
FROM pets) all_names;