Skip to content
Projects

About

:blue_book: A diary application optimized for user experience.

Productivity & Automation

How these counts are measured

Measured star growth

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

docs/README.en.md

Original

ADR and Diagram Writing Guide

๐Ÿ“ข Purpose

Record architectural decisions and their rationale to make future review and tracking easier.

๐Ÿ“š Documents

Document Contents
ADR-0001 โ€” Adopt Realm for device local storage The Realm decision (superseded)
ADR-0002 โ€” Move local storage to Room with a Repository layer Current storage structure, layers, tag model, JSON backup
Model ERD Room entities, columns and relations (from app/schemas/.../9.json)
Data layer AppDatabase ยท DAO ยท DataSource ยท Repository flow (Korean)
Fingerprint lock screen FingerprintLockActivity entry points and authentication flow (Korean)
Architecture and Storage (Wiki) Reader-facing summary of ADR-0002 and the model ERD

These documents are the source: the wiki page Architecture and Storage summarizes ADR-0002 and the ERD for people who are reading the wiki first, so when the schema changes, update the ADR and the ERD here and let the wiki follow.

ADR Guide

  • Title / filename: e.g. docs/adr/0001-short-title.ko.md
  • Status (Accepted, Proposed, Deprecated, etc.)
  • Context: describe the problem and background
  • Decision: summarize the chosen solution
  • Rationale: compare alternatives and explain reasons
  • Consequences (or Tradeoffs): impacts, pros and cons
  • Date / Authors / Related ADR / References
  • An ADR that reverses an earlier decision marks that ADR Superseded and links the two. (0001 โ†’ 0002 is the example)

ADR Template

# [ADR-0001] Short Title

## Status

Accepted

## Context

(Describe the problem and background.)

## Decision

(Describe the chosen decision concisely.)

## Rationale

(Why this decision? Compare alternatives.)

## Consequences

(Benefits, drawbacks, migration notes.)

## Date

YYYY-MM-DD

## Authors

- Name <email>

## References

- Link or note

๐Ÿ“‹ Diagram Guide

  • Title / filename: e.g. docs/diagrams/models/erd.md
  • Clearly indicate persistent fields and relationships of models.
  • Room notation: entities are <<Entity>>, primary keys <<PK>>, foreign keys and unique indices <<FK>> / <<UNIQUE>>, and value objects flattened with @Embedded are <<Embedded>>.
  • Take table and column names from the schema JSON under app/schemas/ and from the entity code.
  • Prefer readability for relations: DiaryEntity "1" --> "0..*" PhotoUriEntity : photoUris

Mermaid example

classDiagram
class DiaryEntity {
    <<Entity>>
    +Long diaryId <<PK>>
    +Long currentTimeMillis
    +String? title
    +LocationEntity? location <<Embedded>>
}
class PhotoUriEntity {
    <<Entity>>
    +Int id <<PK>>
    +Long diaryId <<FK>>
    +String? photoUri
}
class LocationEntity {
    <<Embedded>>
    +String? address
    +Double latitude
    +Double longitude
}
DiaryEntity "1" *-- "0..1" LocationEntity : loc_
DiaryEntity "1" --> "0..*" PhotoUriEntity : photoUris

Explore related projects

Loadingโ€ฆ