-- Seed resources for physical database tables
INSERT INTO resources (resource_type_id, tenant_id, branch_id, name, description)
SELECT (SELECT id FROM resource_types WHERE name='table'), NULL, NULL, table_name, NULL
FROM information_schema.tables
WHERE table_schema='public'
ON CONFLICT DO NOTHING;
