lbc/docs/database_schema.md
Gregory Bednov dae1cd484e Add ER diagram and schema docs, enhance tx validation
Added ER.svg and database_schema.md to document the logical data model. Refactored and extended transaction validation in blockchain/abci.go to enforce ID prefix rules, entity existence, and uniqueness for promises, commitments, commiters, and beneficiaries. Updated lbc_sdk dependency version in go.mod and go.sum.
2025-08-10 22:39:28 +03:00

568 B

Логическая модель данных

!

@startuml

entity Promise {

  • ID: uuid
  • text: text
  • due: datetime BeneficiaryID: uuid ParentPromiseID: uuid }

entity Beneficiary {

  • ID: uuid
  • name: string }

entity Commitment {

  • ID: uuid
    PromiseID: int
    CommiterID: int
    due: datetime
    }

entity Commiter {

  • ID: int
  • name: string }

Commitment }|--|| Promise : belongs to Commitment }|--|| Commiter : made by Promise }o--|| Beneficiary : has Promise }--o Promise : parent of

@enduml