// This is your Prisma schema file,
// learn more about it in the docs: https://pris.ly/d/prisma-schema

generator client {
  provider = "prisma-client-js"
}

datasource db {
  provider = "sqlite"
  url      = env("DATABASE_URL")
}

model Message {
  id        Int       @id @default(autoincrement())
  author    String?
  gameId    String?
  title     String?
  content   String
  likeCount Int?      @default(0)
  sentAt    DateTime? @default(now())
  updatedAt DateTime? @updatedAt
}

model Like {
  id      Int       @id @default(autoincrement())
  postId  Int
  author  String?
  gameId  String?
  likedAt DateTime? @default(now())
}