Skip to content

Latest commit

 

History

History
47 lines (46 loc) · 884 Bytes

SCHEMA.md

File metadata and controls

47 lines (46 loc) · 884 Bytes
erDiagram
  User {
    String id
    String username
    String imageUrl
    String externalUserId
    String bio
    DateTime createdAt
    DateTime updatedAt
  }
  Stream {
    String id
    String name
    String thumbnailUrl
    String ingressId
    String serverUrl
    String streamKey
    Boolean isLive
    Boolean isChatEnabled
    Boolean isChatDelayed
    Boolean isChatFollowersOnly
    String userId
    DateTime createdAt
    DateTime updatedAt
  }
  Follow {
    String id
    String followerId
    String followingId
    DateTime createdAt
    DateTime updatedAt
  }
  Block {
    String id
    String blockerId
    String blockedId
    DateTime createdAt
    DateTime updatedAt
  }
  User ||--o{ Stream : "stream"
  User ||--o{ Follow : "following"
  User ||--o{ Follow : "followedBy"
  User ||--o{ Block : "blocking"
  User ||--o{ Block : "blockedBy"

Loading