Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DB schema diagram #262

Open
vikiival opened this issue Apr 2, 2024 · 0 comments
Open

DB schema diagram #262

vikiival opened this issue Apr 2, 2024 · 0 comments

Comments

@vikiival
Copy link
Member

vikiival commented Apr 2, 2024

erDiagram
    CollectionEntity ||--o{ Attribute : "attributes"
    CollectionEntity ||--o{ CollectionEvent : "events"
    CollectionEntity ||--o{ NFTEntity : "nfts"
    CollectionEntity ||--|| MetadataEntity : "meta"
    CollectionEntity ||--o{ CollectionSettings : settings

    TokenEntity ||--o{ NFTEntity : "nfts"
    TokenEntity ||--|| MetadataEntity : "meta"

    NFTEntity ||--o{ Attribute : "attributes"
    NFTEntity ||--o{ Event : "events"
    NFTEntity ||--|| MetadataEntity : "meta"
    NFTEntity ||--|| TokenEntity : "token"
    NFTEntity ||--|| CollectionEntity : "collection"

    CollectionEntity {
        BigInt blockNumber
        Boolean burned
        DateTime createdAt
        String currentOwner
        Int distribution
        BigInt floor
        String hash
        BigInt highestSale
        ID id
        String image
        String issuer
        Int max
        String media
        String metadata
        String name
        Int nftCount
        Int ownerCount
        String recipient
        Float royalty
        Int supply
        DateTime updatedAt
        Int version
        BigInt volume
        CollectionType type
    }

    TokenEntity {
        ID id
        BigInt blockNumber
        String hash
        String image
        String media
        String metadata
        String name
        DateTime updatedAt
        DateTime createdAt
        Int supply
        Int count
        Boolean deleted
    }

    NFTEntity {
        BigInt blockNumber
        Boolean burned
        DateTime createdAt
        String currentOwner
        String hash
        ID id
        String image
        String issuer
        Boolean lewd
        String media
        String metadata
        String name
        BigInt price
        String recipient
        Float royalty
        BigInt sn
        DateTime updatedAt
        Int version
    }
Loading
erDiagram
    CollectionEntity ||--o{ NFTEntity : "nfts"
    CollectionEntity ||--|| MetadataEntity : "meta"
    CollectionEntity ||--o{ SwapEntity : "swaps"
    CollectionEntity ||--o{ OfferEntity : "offers"

    TokenEntity ||--o{ NFTEntity : "nfts"
    TokenEntity ||--|| MetadataEntity : "meta"

    NFTEntity ||--o{ Event : "events"
    NFTEntity ||--|| MetadataEntity : "meta"
    NFTEntity ||--|| TokenEntity : "token"
    NFTEntity ||--|| CollectionEntity : "collection"
    NFTEntity ||--o{ SwapEntity : "swaps"
    NFTEntity ||--o{ OfferEntity : "offers"
Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant