# Module: Nexus App Center

**Placering:** `source/nexus-app-center/`  
**Fase:** 7  
**Type:** Cloud service + Shell UI

---

## Funktioner

- App-katalog med metadata, ikoner, screenshots
- Kategorisering og søgning
- Godkendelsesflow (bruger-anmodning → admin approve)
- Auto-godkendelse per gruppe/rolle
- Shell-integration (browse, install, mine apps)
- Licensing tracking
- App usage analytics

---

## Ansvar

| Ansvar | Ejer |
|--------|------|
| App-katalog og metadata | App Center |
| Godkendelsesflow | App Center |
| Install-request til Update Service | App Center |
| App UI i Shell | Shell (visning) + App Center (data) |

---

## Datamodel

```
App
├── id: UUID (PK)
├── name: string
├── description: text
├── version: string
├── publisher: string
├── category: string
├── icon_url: string
├── package_id: UUID (FK → Update Service)
├── requirements: JSON
├── status: published|draft|deprecated

AppApproval
├── id: UUID (PK)
├── app_id: UUID (FK)
├── user_id: UUID (FK)
├── status: pending|approved|denied
├── reason: text
├── reviewed_by: UUID (FK, nullable)
├── reviewed_at: timestamp

AppInstallation
├── device_id: UUID (FK)
├── app_id: UUID (FK)
├── installed_version: string
├── status: installed|updating|failed
├── installed_at: timestamp

AppLicense
├── app_id: UUID (FK)
├── total_licenses: integer
├── used_licenses: integer
```

---

## Afhængigheder

| Afhænger af | Hvorfor |
|-------------|---------|
| Update Service | Pakker og installation |
| Identity | Bruger-auth, godkendelse |
| Device Management | Enheds-targeting |

| Afhænges af af | Hvorfor |
|----------------|---------|
| Nexus Shell | App Center UI, launcher data |

---

*Se: [ui-ux/APP_CENTER_DESIGN.md](../ui-ux/APP_CENTER_DESIGN.md)*
