lbc/docs/database_schema.md

44 lines
696 B
Markdown
Raw Normal View History

# Логическая модель данных
![[ER.svg]]
<details>
@startuml
entity Promise {
* ID: uuid
--
* text: string
due: datetime
BeneficiaryID: uuid
ParentPromiseID: uuid
}
entity Beneficiary {
* ID: uuid
--
* name: string
}
entity Commitment {
* ID: uuid
--
PromiseID: uuid
CommiterID: uuid
due: datetime
}
entity Commiter {
* ID: uuid
--
* name: string
}
Commitment }|--|| Promise : belongs to
Commitment }|--|| Commiter : made by
Promise }o--|| Beneficiary : has
Promise }--o Promise : parent of
@enduml
</details>