Skip to content

DB schema diagram #262

@vikiival

Description

@vikiival
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions