Revert "CRUD: пример переведён на схему pg/ + apps/ (как в документации)"

This reverts commit eb65f8b0d3.
This commit is contained in:
Repinoid
2026-10-02 09:10:26 +03:00
parent eb65f8b0d3
commit 7d7fdb46ff
21 changed files with 413 additions and 858 deletions
+16
View File
@@ -0,0 +1,16 @@
# =============================================================================
# PostgreSQL — пользователи и базы данных
# =============================================================================
resource "nubes_postgres_user" "crud_user_0" {
postgres_id = nubes_postgres.main_pg.id
username = local.pg_username
role = local.pg_role
adopt_existing_on_create = true
}
resource "nubes_postgres_database" "pg_db" {
postgres_id = nubes_postgres.main_pg.id
db_name = local.pg_db_name
db_owner = nubes_postgres_user.crud_user_0.username
adopt_existing_on_create = true
}