Scope
Provide more documentation and ease the review of #90
Design specs
The main links are these from which you can get to the different user stories for each functionality (Sale, Revenue share etc..)
ER schema
List all entities and relationship, see https://mermaid.js.org/syntax/entityRelationshipDiagram.html
%%{ init : { "er" : { "relationshipLine" : "linear" }}}%%
erDiagram
Token }o--|| Amm: issues
Token }o--|| Benefit: guarantees
Token }o--|| Sale: issues
Token }o--|| RevenueShare: starts
Token }o--|| TokenAccount: contains
Token ||--o{ Channel: is_issued_by
Token |o--o| Video: video_trailer
TokenAccount }o--|| AmmTransaction: transact
Amm }o--|| AmmTransaction: transact
TokenAccount }o--|| SaleTransaction: transact
Sale }o--|| SaleTransaction: transact
TokenAccount }o--|| RevenueShareParticipation: participates
RevenueShare }o--|| RevenueShareParticipation: is_participated
Membership }o--|| TokenAccount: becomes_holder
VestingSchedule }o--o{ TokenAccount: vested
VestingSchedule }o--o| Sale: vested_sale
Loading
Consideration
I have assumed that if tokens are de-issued they won't be deleted from the database
Edit : there might be vesting schedules that are not used, this however simplifies removing vesting schedules from accounts
queries section moved down under
Scope
Provide more documentation and ease the review of #90
Design specs
The main links are these from which you can get to the different user stories for each functionality (Sale, Revenue share etc..)
ER schema
List all entities and relationship, see https://mermaid.js.org/syntax/entityRelationshipDiagram.html
%%{ init : { "er" : { "relationshipLine" : "linear" }}}%% erDiagram Token }o--|| Amm: issues Token }o--|| Benefit: guarantees Token }o--|| Sale: issues Token }o--|| RevenueShare: starts Token }o--|| TokenAccount: contains Token ||--o{ Channel: is_issued_by Token |o--o| Video: video_trailer TokenAccount }o--|| AmmTransaction: transact Amm }o--|| AmmTransaction: transact TokenAccount }o--|| SaleTransaction: transact Sale }o--|| SaleTransaction: transact TokenAccount }o--|| RevenueShareParticipation: participates RevenueShare }o--|| RevenueShareParticipation: is_participated Membership }o--|| TokenAccount: becomes_holder VestingSchedule }o--o{ TokenAccount: vested VestingSchedule }o--o| Sale: vested_saleConsideration
queries section moved down under