feat(asset): add photos, monitor links and deletion
Apply asset_db_002_photos_monitors.sql before rebuilding web. Restrict soft deletion to the super admin; retain reports and audit.
This commit is contained in:
+3
-1
@@ -18,7 +18,9 @@
|
||||
## 명명 규칙
|
||||
|
||||
자산관리 전용 `asset_db` / 앱 계정 `asset_app` / 소유자 `postgres`.
|
||||
테이블 `assets`, `asset_reports`, `asset_events`; 원본 XML도 DB에 보존한다.
|
||||
테이블 `assets`, `asset_reports`, `asset_events`, `asset_photos`, `asset_monitor_links`.
|
||||
원본 XML과 검증된 사진을 DB에 보존한다. 수퍼 관리자 삭제는 `assets.deleted_at/deleted_by` 표시로 처리한다.
|
||||
기존 설치 추가 마이그레이션은 `scripts/sql/asset_db_002_photos_monitors.sql`.
|
||||
`ASSET_DB_URL`, 초기화 `scripts/sql/asset_db_init.sql`(사용자가 서버에서 직접 실행).
|
||||
백업 권장: 매일 `/var/backups/postgres/asset_db_YYYY-MM-DD.dump`.
|
||||
상세 설치·권한·업무 규칙은 [ASSET_MODULE.md](ASSET_MODULE.md).
|
||||
|
||||
Reference in New Issue
Block a user