Appearance
Database overview — minap_core
Version: 1.2
Date: 2026-11-27
Status: Working baseline
Owner repo: platform-core/
Package: @minap/core
Schema: PostgreSQL minap_core (DECIDED — D-022; đổi từ platform_core Owner 2026-11-26)
Mục đích
SoT identity/tenancy nền tảng: Account, Workspace, Membership, Invitation, Audit — sau khi Keycloak xác thực. Mở rộng PROPOSED: Application Markets (registry app_…, versions, secrets, catalog pin, rejection + FS soft-refs — chi tiết 05); entitlement hooks; config; ApplicationWorkspace / AppRoleAssignment.
Engine
| Hạng mục | Status |
|---|---|
| Engine | PostgreSQL (D-022) |
| Schema name | minap_core |
| Local legacy | Compose có thể còn DB tên platform_core (legacy) + schema public — NEED ALIGN về schema SoT minap_core |
Bảng foundation
| Bảng | Prefix |
|---|---|
accounts | acc_… |
workspaces | ws_… |
workspace_memberships | wsm_… |
workspace_invitations | wsi_… |
audit_events | aud_… |
account_preferences | 1:1 Account — PROPOSED |
| Vùng PROPOSED (Markets) | Prefix / ghi chú |
|---|---|
applications | app_… (publish) |
application_versions | id nội bộ; UI = version_string |
application_secrets | id nội bộ; plaintext URL-Safe Base64 32-byte |
verification_rejections | id nội bộ |
markets_attachment_refs | id nội bộ; soft-ref file_… |