Skip to content

Follow

reference
1 min readUpdated

Kind: Database Model

Source: atloria-monorepo/apps/parser-orchestrator/test/fixtures/sample-projects/fullstack-nextjs-nestjs/backend/prisma/schema.prisma

Follow relationship between users

Fields

FieldTypeRequiredKey
idStringPK
followerIdString
followingIdString
createdAtDateTime

Diagram

mermaid
erDiagram
    Follow {
        id String [PK]
        followerId String
        followingId String
        createdAt DateTime
    }
    Follow ||--|| User : "followerId"
    Follow ||--|| User : "followingId"

Relationships

  • BELONGS_TO → User
  • BELONGS_TO → User

Referenced By

  • User (HAS_MANY)
  • User (HAS_MANY)

Was this page helpful?

Download as PDF