서비스명: LP(Listening Present)
소개: 당신의 기분, 나아가 당신까지 변화시킬 음악과 메세지를 선물해줍니다.
| API |
설명 |
담당 |
| [POST] /user |
유저생성 |
혜수 |
| [POST] /message |
메시지 생성 |
용택 |
| [GET] /message/:categoryId?isopened={0,1} |
자신의 메시지 조회 |
용택 |
| [GET] /message/:messageId |
메시지 상세조회 |
혜수 |
| [GET] /category |
카테고리별 메시지 개수 조회 |
혜수 |
Link
| 브랜치 이름 |
설명 |
develop |
기능 개발을 위한 브랜치들을 병합하기 위해 사용. |
yongtaek |
용택이의 기능개발 |
hyesu |
혜수의 기능 개발 |
├── README.md
├── node_module
├── nodemon.json
├── package.json
├── prisma
│ └── schema.prisma
├── src
│ ├── controller
│ ├── router
│ └── service
├── tsconfig.json
└── yarn.lock

generator client {
provider = "prisma-client-js"
}
datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}
model User {
id Int @id @default(autoincrement())
nickname String @db.VarChar(100)
Message Message[]
}
model Category {
id Int @id @default(autoincrement())
name String @db.VarChar(100)
Message Message[]
}
model Message {
id Int @id @default(autoincrement())
title String @db.VarChar(100)
contents String @db.VarChar(500)
category_id Int
receiver_id Int
created_at DateTime @db.Timestamp(6)
artist String @db.VarChar(100)
is_opened Boolean
Category Category @relation(fields: [category_id], references: [id], onDelete: NoAction, onUpdate: NoAction, map: "message_category_id_fk")
User User @relation(fields: [receiver_id], references: [id], onDelete: NoAction, onUpdate: NoAction, map: "message_user_id_fk")
}
{
"name": "Sopkathon-Server",
"version": "1.0.0",
"main": "index.js",
"repository": "https://github.com/SOPT-31ST-SOPKATHON-TEAM10/Sopkathon-Server.git",
"author": "hyesuuou <68391767+hyesuuou@users.noreply.github.com>",
"license": "MIT",
"scripts": {
"dev": "nodemon",
"build": "tsc && node dist",
"db:pull": "npx prisma db pull",
"db:push": "npx prisma db push",
"generate": "npx prisma generate"
},
"dependencies": {
"@prisma/client": "^4.6.1",
"express": "^4.18.2",
"prisma": "^4.6.1"
},
"devDependencies": {
"@types/express": "^4.17.14",
"@types/node": "^18.11.9",
"nodemon": "^2.0.20"
}
}
