stealian-ERD
Tables (6)
apps
- id — BIGINT — Primary key — NOT NULL
- package_name — VARCHAR(255) — NOT NULL
- app_name — VARCHAR(100) — NOT NULL
- os_type — ENUM('AOS', 'IOS') — NOT NULL
events
- id — BIGINT — Primary key — NOT NULL
- event_id — VARCHAR(100) — NOT NULL
- app_id — BIGINT — Foreign key → apps.id — NOT NULL
- app_version — VARCHAR(50) — NOT NULL
- device — VARCHAR(100) — NOT NULL
- detect_code — VARCHAR(20) — NOT NULL
- occurred_at — TIMESTAMP(6) WITH TIME ZONE — NOT NULL
group_licenses
- group_id — BIGINT — Foreign key → groups.id — NOT NULL
- app_id — BIGINT — Foreign key → apps.id — NOT NULL
groups
- id — BIGINT — Primary key — NOT NULL
- name — VARCHAR(100) — NOT NULL
- created_at — TIMESTAMP(6) — NOT NULL
user_licenses
- user_id — BIGINT — Foreign key → users.id — NOT NULL
- app_id — BIGINT — Foreign key → apps.id — NOT NULL
users
- id — BIGINT — Primary key — NOT NULL
- username — VARCHAR(100) — NOT NULL
- password — VARCHAR(255) — NOT NULL
- role — ENUM('ADMIN', 'GROUP_ADMIN', 'USER') — NOT NULL
- group_id — BIGINT — Foreign key → groups.id
- enabled — BOOLEAN — NOT NULL