digraph dbml { rankdir=LR; graph [fontname="helvetica", fontsize=32, fontcolor="#29235c", bgcolor="transparent"]; node [penwidth=0, margin=0, fontname="helvetica", fontsize=32, fontcolor="#29235c"]; edge [fontname="helvetica", fontsize=32, fontcolor="#29235c", color="#29235c"]; "ChainTransactionType" [id=ChainTransactionType;label=<
ChainTransactionType
DISCOVERY_MINT
DISCOVERY_UPDATE
DISCOVERY_VOTE
>]; "DiscoveryState" [id=DiscoveryState;label=<
DiscoveryState
NEW
PENDING_DAO_APPROVAL
DAO_APPROVED
PENDING_VALIDATION
VALIDATED
WITHDRAWN
>]; "Discovery" [id="Discovery";label=<
Discovery
id Int
createdAt DateTime (!)
updatedAt DateTime (!)
title String (!)
state DiscoveryState (!)
isFeatured Boolean (!)
isBreakthrough Boolean (!)
manifestUrl String (!)
replicationFactor Int (!)
transactions ChainTransaction (!)
owner User (!)
ownerId Int (!)
vault Vault (!)
vaultId Int (!)
authors DiscoveryAuthor (!)
votes DiscoveryVote (!)
reviews DiscoveryReview (!)
versions DiscoveryVersion (!)
authorInvites AuthorInvite (!)
>]; "DiscoveryVersion" [id="DiscoveryVersion";label=<
DiscoveryVersion
id Int
createdAt DateTime (!)
updatedAt DateTime (!)
manifestUrl String (!)
discovery Discovery
discoveryId Int
>]; "User" [id="User";label=<
User
id Int
createdAt DateTime (!)
updatedAt DateTime (!)
email String (!)
phoneNumber String (!)
name String
walletAddress String
isPatron Boolean (!)
isWarden Boolean (!)
isKeeper Boolean (!)
ownedDiscoveries Discovery (!)
authoredDiscoveries DiscoveryAuthor (!)
discoveryVotes DiscoveryVote (!)
reviews DiscoveryReview (!)
reviewVotes DiscoveryReviewVote (!)
invitesSent Invite (!)
invitesReceived Invite (!)
sentTransactions ChainTransaction (!)
receivedTransactions ChainTransaction (!)
authorInvitesSent AuthorInvite (!)
authorInvitesReceived AuthorInvite (!)
>]; "Invite" [id="Invite";label=<
Invite
id Int
createdAt DateTime (!)
updatedAt DateTime (!)
email String (!)
phoneNumber String (!)
sender User (!)
senderId Int (!)
receiver User (!)
receiverId Int (!)
>]; "AuthorInvite" [id="AuthorInvite";label=<
AuthorInvite
id Int
createdAt DateTime (!)
updatedAt DateTime (!)
email String (!)
phoneNumber String (!)
discovery Discovery (!)
discoveryId Int (!)
sender User (!)
senderId Int (!)
receiver User (!)
receiverId Int (!)
>]; "DiscoveryAuthor" [id="DiscoveryAuthor";label=<
DiscoveryAuthor
createdAt DateTime (!)
updatedAt DateTime (!)
shares Int (!)
user User (!)
userId Int (!)
discovery Discovery (!)
discoveryId Int (!)
>]; "DiscoveryVote" [id="DiscoveryVote";label=<
DiscoveryVote
id Int
createdAt DateTime (!)
updatedAt DateTime (!)
voteWeight Int (!)
transaction ChainTransaction
user User (!)
userId Int (!)
discovery Discovery (!)
discoveryId Int (!)
>]; "DiscoveryReview" [id="DiscoveryReview";label=<
DiscoveryReview
id Int
createdAt DateTime (!)
updatedAt DateTime (!)
owner User (!)
ownerId Int (!)
discovery Discovery
discoveryId Int
votes DiscoveryReviewVote (!)
>]; "DiscoveryReviewVote" [id="DiscoveryReviewVote";label=<
DiscoveryReviewVote
createdAt DateTime (!)
updatedAt DateTime (!)
voteWeight Int (!)
user User (!)
userId Int (!)
discoveryReview DiscoveryReview (!)
discoveryReviewId Int (!)
>]; "Vault" [id="Vault";label=<
Vault
id Int
createdAt DateTime (!)
updatedAt DateTime (!)
name String (!)
description String (!)
Discovery Discovery (!)
transactions ChainTransaction (!)
>]; "ChainTransaction" [id="ChainTransaction";label=<
ChainTransaction
id Int
createdAt DateTime (!)
updatedAt DateTime (!)
hash String (!)
type ChainTransactionType (!)
discovery Discovery
discoveryId Int
user User
userId Int
targetUser User
targetUserId Int
vault Vault
vaultId Int
discoveryVote DiscoveryVote
discoveryVoteId Int
>]; "Discovery":f0 -> "User":f0 [style=invis, weight=100, color=red] "Discovery":f12:e -> "User":f1:w [penwidth=3, color="#29235c", headlabel="1", taillabel="*", arrowhead="normal", arrowtail="none"] "Discovery":f0 -> "Vault":f0 [style=invis, weight=100, color=red] "Discovery":f14:e -> "Vault":f1:w [penwidth=3, color="#29235c", headlabel="1", taillabel="*", arrowhead="normal", arrowtail="none"] "DiscoveryVersion":f0 -> "Discovery":f0 [style=invis, weight=100, color=red] "DiscoveryVersion":f6:e -> "Discovery":f1:w [penwidth=3, color="#29235c", headlabel="1", taillabel="*", arrowhead="normal", arrowtail="none"] "Invite":f0 -> "User":f0 [style=invis, weight=100, color=red] "Invite":f7:e -> "User":f1:w [penwidth=3, color="#29235c", headlabel="1", taillabel="*", arrowhead="normal", arrowtail="none"] "Invite":f0 -> "User":f0 [style=invis, weight=100, color=red] "Invite":f9:e -> "User":f1:w [penwidth=3, color="#29235c", headlabel="1", taillabel="*", arrowhead="normal", arrowtail="none"] "AuthorInvite":f0 -> "Discovery":f0 [style=invis, weight=100, color=red] "AuthorInvite":f7:e -> "Discovery":f1:w [penwidth=3, color="#29235c", headlabel="1", taillabel="*", arrowhead="normal", arrowtail="none"] "AuthorInvite":f0 -> "User":f0 [style=invis, weight=100, color=red] "AuthorInvite":f9:e -> "User":f1:w [penwidth=3, color="#29235c", headlabel="1", taillabel="*", arrowhead="normal", arrowtail="none"] "AuthorInvite":f0 -> "User":f0 [style=invis, weight=100, color=red] "AuthorInvite":f11:e -> "User":f1:w [penwidth=3, color="#29235c", headlabel="1", taillabel="*", arrowhead="normal", arrowtail="none"] "DiscoveryAuthor":f0 -> "User":f0 [style=invis, weight=100, color=red] "DiscoveryAuthor":f5:e -> "User":f1:w [penwidth=3, color="#29235c", headlabel="1", taillabel="*", arrowhead="normal", arrowtail="none"] "DiscoveryAuthor":f0 -> "Discovery":f0 [style=invis, weight=100, color=red] "DiscoveryAuthor":f7:e -> "Discovery":f1:w [penwidth=3, color="#29235c", headlabel="1", taillabel="*", arrowhead="normal", arrowtail="none"] "DiscoveryVote":f0 -> "User":f0 [style=invis, weight=100, color=red] "DiscoveryVote":f7:e -> "User":f1:w [penwidth=3, color="#29235c", headlabel="1", taillabel="*", arrowhead="normal", arrowtail="none"] "DiscoveryVote":f0 -> "Discovery":f0 [style=invis, weight=100, color=red] "DiscoveryVote":f9:e -> "Discovery":f1:w [penwidth=3, color="#29235c", headlabel="1", taillabel="*", arrowhead="normal", arrowtail="none"] "DiscoveryReview":f0 -> "User":f0 [style=invis, weight=100, color=red] "DiscoveryReview":f5:e -> "User":f1:w [penwidth=3, color="#29235c", headlabel="1", taillabel="*", arrowhead="normal", arrowtail="none"] "DiscoveryReview":f0 -> "Discovery":f0 [style=invis, weight=100, color=red] "DiscoveryReview":f7:e -> "Discovery":f1:w [penwidth=3, color="#29235c", headlabel="1", taillabel="*", arrowhead="normal", arrowtail="none"] "DiscoveryReviewVote":f0 -> "User":f0 [style=invis, weight=100, color=red] "DiscoveryReviewVote":f5:e -> "User":f1:w [penwidth=3, color="#29235c", headlabel="1", taillabel="*", arrowhead="normal", arrowtail="none"] "DiscoveryReviewVote":f0 -> "DiscoveryReview":f0 [style=invis, weight=100, color=red] "DiscoveryReviewVote":f7:e -> "DiscoveryReview":f1:w [penwidth=3, color="#29235c", headlabel="1", taillabel="*", arrowhead="normal", arrowtail="none"] "ChainTransaction":f0 -> "Discovery":f0 [style=invis, weight=100, color=red] "ChainTransaction":f7:e -> "Discovery":f1:w [penwidth=3, color="#29235c", headlabel="1", taillabel="*", arrowhead="normal", arrowtail="none"] "ChainTransaction":f0 -> "User":f0 [style=invis, weight=100, color=red] "ChainTransaction":f9:e -> "User":f1:w [penwidth=3, color="#29235c", headlabel="1", taillabel="*", arrowhead="normal", arrowtail="none"] "ChainTransaction":f0 -> "User":f0 [style=invis, weight=100, color=red] "ChainTransaction":f11:e -> "User":f1:w [penwidth=3, color="#29235c", headlabel="1", taillabel="*", arrowhead="normal", arrowtail="none"] "ChainTransaction":f0 -> "Vault":f0 [style=invis, weight=100, color=red] "ChainTransaction":f13:e -> "Vault":f1:w [penwidth=3, color="#29235c", headlabel="1", taillabel="*", arrowhead="normal", arrowtail="none"] "ChainTransaction":f0 -> "DiscoveryVote":f0 [style=invis, weight=100, color=red] "ChainTransaction":f15:e -> "DiscoveryVote":f1:w [penwidth=3, color="#29235c", headlabel="1", taillabel="1", arrowhead="normal", arrowtail="none"] "Discovery":f5:e -> "DiscoveryState":f0:w [penwidth=3, color="#29235c", arrowhead="none", arrowtail="none"] "ChainTransaction":f5:e -> "ChainTransactionType":f0:w [penwidth=3, color="#29235c", arrowhead="none", arrowtail="none"] }