Owner: Engineering Team | Last Updated: 2026-01-30 | Status: Draft
Database models inferred from frontend TypeScript types and API responses. For the full backend overview, see Backend Overview.
⚠️ Draft: Full ERD and model details will be documented when backend codebase is provided.
| Field |
Type |
Notes |
| id |
UUID |
Primary key |
| email |
string |
Unique, indexed |
| first_name |
string |
|
| last_name |
string |
|
| avatar |
URL |
Profile picture |
| accepted_terms |
boolean |
ToS acceptance |
| trial_started |
boolean |
|
| trial_ended_without_purchase |
boolean |
|
| Field |
Type |
Notes |
| id |
UUID |
Primary key |
| title |
string |
User-editable |
| user |
FK → User |
Owner |
| version_count |
integer |
Computed |
| created_at |
datetime |
Auto-set |
| updated_at |
datetime |
Auto-updated |
| Field |
Type |
Notes |
| id |
UUID |
Primary key |
| input_text |
text |
Original text |
| output_text |
text |
Humanized text |
| like |
boolean/null |
User rating |
| action |
string |
Action type |
| word_count |
integer |
Output words |
| history |
FK → Document |
Parent document |
| user_id |
FK → User |
Owner |
| Field |
Type |
Notes |
| user |
FK → User |
One-to-one |
| readability |
string |
Selected level |
| purpose |
string |
Selected purpose |
| anti_detection |
integer |
0-4, default 2 |
| Date |
Author |
Change |
| 2026-01-30 |
Admin |
Initial creation |
Prev: Backend - Local Setup | Next: Backend - API Design Conventions | Up: WalterWrites