diff --git a/prisma/migrations/20240412104045_/migration.sql b/prisma/migrations/20240412104045_/migration.sql deleted file mode 100644 index e73b95a..0000000 --- a/prisma/migrations/20240412104045_/migration.sql +++ /dev/null @@ -1,9 +0,0 @@ --- CreateTable -CREATE TABLE `User` ( - `id` INTEGER NOT NULL AUTO_INCREMENT, - `email` VARCHAR(191) NOT NULL, - `nickname` VARCHAR(191) NOT NULL, - `state` VARCHAR(191) NOT NULL, - - PRIMARY KEY (`id`) -) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; diff --git a/prisma/migrations/20240415035637_/migration.sql b/prisma/migrations/20240415035637_/migration.sql deleted file mode 100644 index 81eb2fd..0000000 --- a/prisma/migrations/20240415035637_/migration.sql +++ /dev/null @@ -1,8 +0,0 @@ -/* - Warnings: - - - A unique constraint covering the columns `[email]` on the table `User` will be added. If there are existing duplicate values, this will fail. - -*/ --- CreateIndex -CREATE UNIQUE INDEX `User_email_key` ON `User`(`email`); diff --git a/prisma/migrations/20240422091513_/migration.sql b/prisma/migrations/20240425112717_/migration.sql similarity index 78% rename from prisma/migrations/20240422091513_/migration.sql rename to prisma/migrations/20240425112717_/migration.sql index 966af29..34688aa 100644 --- a/prisma/migrations/20240422091513_/migration.sql +++ b/prisma/migrations/20240425112717_/migration.sql @@ -1,11 +1,12 @@ -/* - Warnings: - - - You are about to drop the column `state` on the `user` table. All the data in the column will be lost. +-- CreateTable +CREATE TABLE `User` ( + `id` INTEGER NOT NULL AUTO_INCREMENT, + `email` VARCHAR(191) NOT NULL, + `nickname` VARCHAR(191) NOT NULL, -*/ --- AlterTable -ALTER TABLE `user` DROP COLUMN `state`; + UNIQUE INDEX `User_email_key`(`email`), + PRIMARY KEY (`id`) +) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; -- CreateTable CREATE TABLE `FriendList` ( diff --git a/src/app.controller.ts b/src/app.controller.ts index cce879e..cb823a5 100644 --- a/src/app.controller.ts +++ b/src/app.controller.ts @@ -1,7 +1,7 @@ import { Controller, Get } from '@nestjs/common'; import { AppService } from './app.service'; -@Controller() +@Controller('/user') export class AppController { constructor(private readonly appService: AppService) {}