diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md
index 32a920c..4e37f90 100644
--- a/.github/ISSUE_TEMPLATE/bug_report.md
+++ b/.github/ISSUE_TEMPLATE/bug_report.md
@@ -1,15 +1,18 @@
-## π **λ²κ·Έ μ€λͺ
**
-
+---
+name: λ²κ·Έ μ΄μ ν
νλ¦Ώ
+about: Bug λ°κ²¬ μ μ΄λ₯Ό ν΄κ²°νκΈ° μν ISSUEλ₯Ό μμ±ν΄μ£ΌμΈμ.
+title: ''
+labels: BUG
+assignees: jintak0401, pyo-sh, seoko97
+---
+## π **λ²κ·Έ μ€λͺ
**
## π¦ **μ μ νΉμ μμ²νλ ν΄κ²° λ°©λ²**
-
-
## π **μ€ν¬λ¦°μ·**
-
\ No newline at end of file
+--->
diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md
index c2cfc99..04fafb1 100644
--- a/.github/ISSUE_TEMPLATE/feature_request.md
+++ b/.github/ISSUE_TEMPLATE/feature_request.md
@@ -1,15 +1,13 @@
---
-name: feature issue template
-about: Create about new feature
+name: κΈ°λ₯ μΆκ° ν
νλ¦Ώ
+about: νλ‘μ νΈμ μλ‘μ΄ κΈ°λ₯μ μΆκ°ν μ μλλ‘ ISSUEλ₯Ό μμ±ν΄μ£ΌμΈμ
title: ''
-labels: feature
-assignees:
+labels: ''
+assignees: ''
---
## :briefcase: **ꡬν κ°μ**
-
-
## :white_check_mark: **μ§ν κ³ν λ° νν©**
-- [ ]
+- [ ]
diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md
index 087df4d..e8bb1ce 100644
--- a/.github/pull_request_template.md
+++ b/.github/pull_request_template.md
@@ -1,4 +1,4 @@
-* Closes #μ΄μλ²νΈ
+- Closes #μ΄μλ²νΈ
## β¨ **ꡬν κΈ°λ₯ λͺ
μΈ**
@@ -6,4 +6,4 @@
## π **μ΄λ €μ λ μ **
-## π **μ€ν¬λ¦°μ·**
\ No newline at end of file
+## π **μ€ν¬λ¦°μ·**
diff --git a/README.md b/README.md
index 526d2d2..39b588e 100644
--- a/README.md
+++ b/README.md
@@ -1,30 +1,127 @@
-# Nest JS Boilerplate
+
+
+
+
+ Plandar
+
+
-## μμ² URL
+μ¬μ©μ λ³ κ°μΈ μΌμ κ΄λ¦¬ κΈ°λ₯μ΄ μλ λ¬λ ₯ μΉ μλΉμ€
-prefixλ‘ `/api`λ₯Ό λΆμ
λλ€.
+
+
+
+
+ Notion docs Β»
+
+
+
+
-## Http Exception Filter
+
+ Contributors β’
+ Key Features β’
+ How To Use β’
+ Credits β’
+ Related
+
-μμ² μ€ν¨μ μλ νμμΌλ‘ μλ΅ν©λλ€.
+
+
+
-```
-{
- success: false,
- timestamp: "2023-02-22T06:25:08.663Z",
- statusCode: 404,
- message: "Cannot GET /",
- error: "Not Found"
-}
-```
+## Contributors ππΌββοΈ
-## Success Interceptor
+
-μμ² μ±κ³΅μ μλ νμμΌλ‘ μλ΅ν©λλ€.
+## Key Features βοΈ
+- μνλ λ μ§μ λ¬λ ₯μ λ³Ό μ μμ΅λλ€.
+ - μΌκ°, μ£Όκ°, μκ° λ¬λ ₯ μ 곡ν©λλ€.
+ - μ¬μ΄λλ°μ ν€λλ₯Ό ν΅ν΄ λ¬λ ₯μ μ μ΄ν μ μμ΅λλ€.
+- μΌμ μ μΆκ°νμ¬ κ΄λ¦¬ν μ μμ΅λλ€.
+ - μΌμ μ λ¬λ ₯μμ λ³Ό μ μμ΅λλ€.
+ - μΌμ μ λν λ©λͺ¨λ₯Ό λ¨κΈΈ μ μμ΅λλ€.
+- λλκ·Έλ₯Ό ν΅ν΄ μΌμ μ μμ± λ° μμ ν μ μμ΅λλ€.
+- μΉ΄ν
κ³ λ¦¬ κΈ°λ₯μ μ΄μ©ν΄ λΉμ·ν μΌμ μ νλ²μ κ΄λ¦¬ν μ μμ΅λλ€.
+- νκ·Έ κΈ°λ₯μ μ΄μ©ν΄ μΌμ νν°λ§μ μ¬μ©ν μ μμ΅λλ€.
+
+## How To Use βοΈ
+
+μ΄ν리μΌμ΄μ
μ μ€ννκΈ° μν΄μ [Git](https://git-scm.com)κ³Ό [Node.js](https://nodejs.org/en/download/) ([npm](http://npmjs.com)) μ μ€μΉν΄μΌ ν©λλ€.
+
+μ΄ν μλμ λͺ
λ Ήμ΄λ₯Ό ν΅ν΄ μ€νν μ μμ΅λλ€.
+
+```bash
+# Clone this repository
+$ git clone https://github.com/JiPyoTak/plandar-server
+
+# Go into the repository
+$ cd plandar-server
+
+# Install dependencies
+$ npm install
+
+# Run the app
+$ npm start
```
-{
- success: true,
- data: "Hello World!"
-}
-```
+
+> **Note**
+>
+> 1. μ΄ μ΄ν리μΌμ΄μ
μ μ μμ μΌλ‘ μ€ννλ €λ©΄ .env νμΌμ μμ±νκ³ λ΄μ©μ κΈ°μ
ν΄μΌ ν©λλ€.
+> 2. ꡬκΈ, μΉ΄μΉ΄μ€ OAuth μ€μ μ΄ νμν©λλ€.
+
+## Credits π
+
+μλμ κ°μ μ€νμμ€ ν¨ν€μ§λ₯Ό μ¬μ©νκ³ μμ΅λλ€.
+
+- [Node.js](https://nodejs.org/)
+- [NestJS](https://nestjs.com/)
+- [mysql2](https://www.npmjs.com/package/mysql2)
+- [typeORM](https://typeorm.io/?ref=arctype.com)
+- [passport](https://www.passportjs.org/)
+
+## Related π
+
+[plandar-client](https://github.com/JiPyoTak/plandar-client) - Plandar μΉ λ·°λ₯Ό μ 곡νλ μ΄ν리μΌμ΄μ
diff --git a/src/entities/category.entity.ts b/src/entities/category.entity.ts
index 2591c8a..de75971 100644
--- a/src/entities/category.entity.ts
+++ b/src/entities/category.entity.ts
@@ -27,7 +27,7 @@ export class CategoryEntity extends DefaultEntity {
color!: string;
@ApiProperty()
- @ManyToOne(() => UserEntity, { onDelete: 'CASCADE', cascade: true })
+ @ManyToOne(() => UserEntity, { onDelete: 'CASCADE' })
@JoinColumn({ name: 'user_id' })
user!: UserEntity;
diff --git a/src/entities/plan.entity.ts b/src/entities/plan.entity.ts
index d25550c..43aac30 100644
--- a/src/entities/plan.entity.ts
+++ b/src/entities/plan.entity.ts
@@ -105,7 +105,7 @@ export class PlanEntity extends DefaultEntity {
@IsNumber()
userId!: number;
- @ManyToOne(() => UserEntity, { onDelete: 'CASCADE', cascade: true })
+ @ManyToOne(() => UserEntity, { onDelete: 'CASCADE' })
@JoinColumn({ name: 'user_id' })
user!: UserEntity;
@@ -116,7 +116,9 @@ export class PlanEntity extends DefaultEntity {
@IsNumber()
categoryId?: number;
- @ManyToOne(() => CategoryEntity, (category) => category.plans)
+ @ManyToOne(() => CategoryEntity, (category) => category.plans, {
+ onDelete: 'SET NULL',
+ })
@JoinColumn({ name: 'category_id' })
category?: CategoryEntity;