Files
XIP/backend/prisma/migrations/20260529094703_init/migration.sql
arussac 12afb71a67 feat: initialize project with Docker, PostgreSQL, Redis, and Vue.js frontend
- 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.
2026-05-29 11:47:52 +02:00

14 lines
444 B
SQL

-- CreateTable
CREATE TABLE "messages" (
"id" TEXT NOT NULL,
"content" VARCHAR(267) NOT NULL,
"authorIp" TEXT NOT NULL,
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
"parentId" TEXT,
CONSTRAINT "messages_pkey" PRIMARY KEY ("id")
);
-- AddForeignKey
ALTER TABLE "messages" ADD CONSTRAINT "messages_parentId_fkey" FOREIGN KEY ("parentId") REFERENCES "messages"("id") ON DELETE SET NULL ON UPDATE CASCADE;