- Added docker-compose.yml for PostgreSQL and Redis services with health checks. - Created frontend directory with initial Vue.js setup including package.json, vite.config.ts, and TypeScript configuration. - Implemented main application structure with App.vue and HomePage.vue components. - Added message fetching and posting functionality in HomePage.vue. - Included necessary styles and scripts for Ionic framework integration. - Developed a dev-stack script to manage Docker containers and run backend/frontend servers.
25 lines
546 B
Plaintext
25 lines
546 B
Plaintext
// This is your Prisma schema file
|
|
// Learn more: https://pris.ly/d/prisma-schema
|
|
|
|
generator client {
|
|
provider = "prisma-client-js"
|
|
}
|
|
|
|
datasource db {
|
|
provider = "postgresql"
|
|
url = env("DATABASE_URL")
|
|
}
|
|
|
|
model Message {
|
|
id String @id @default(uuid())
|
|
content String @db.VarChar(267)
|
|
authorIp String
|
|
createdAt DateTime @default(now())
|
|
parentId String?
|
|
|
|
parent Message? @relation("ThreadReplies", fields: [parentId], references: [id])
|
|
replies Message[] @relation("ThreadReplies")
|
|
|
|
@@map("messages")
|
|
}
|