Skip to the content.

0002. ID 生成戦略を ULID に統一する

Context

resource-planner の domain entity (Resource / Project / Assignment) は DynamoDB Single Table Design で管理する。各 entity に一意の id が必要だが、選択肢はいくつかある:

検討事項:

Decision

全 entity の id 生成に ULID (ulid npm package) を使う。 web/src/lib/id.tsnewId() を export し、repository 層から呼び出す。

Consequences

Positive

Negative

Neutral

Alternatives considered

References