-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from Today-s-ramen/youjung
[ADD#1] 인터페이스, 스키마 정의 추가
- Loading branch information
Showing
11 changed files
with
121 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
name: "[FEAT:#?] 0000 기능 구현" | ||
about: 기능 구현 및 코드 수정 시 이슈를 생성합니다. | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
## What is this issue? | ||
|
||
## Progress | ||
|
||
- [x] | ||
- [ ] | ||
- [ ] | ||
|
||
## Note |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
## 🌱관련 이슈 | ||
Related to: | ||
|
||
## ❓리뷰 포인트 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import mongoose from "mongoose"; | ||
|
||
export interface PostBaseResponseDto { | ||
_id: mongoose.Schema.Types.ObjectId; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export interface PeriodInfo { | ||
option: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export interface QuantityInfo { | ||
option: string; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
export interface ReviewInfo { | ||
userName: String; | ||
thumbnail?: String; | ||
description: Text; | ||
rates: Number; | ||
packageName: string; | ||
product: String; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { PeriodInfo } from "../period/PeriodInfo"; | ||
import { QuantityInfo } from "../quantity/QuantityInfo"; | ||
|
||
export interface SubscribeInfo { | ||
period: PeriodInfo; | ||
quantity: QuantityInfo; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import mongoose from "mongoose"; | ||
import { PeriodInfo } from "../interfaces/period/PeriodInfo"; | ||
|
||
const PeriodSchema = new mongoose.Schema ({ | ||
option: { | ||
type: String, | ||
required: true | ||
} | ||
}); | ||
|
||
export default mongoose.model<PeriodInfo & mongoose.Document>("Period", PeriodSchema) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import mongoose from "mongoose"; | ||
import { QuantityInfo } from "../interfaces/quantity/QuantityInfo"; | ||
|
||
const QuantitySchema = new mongoose.Schema ({ | ||
option: { | ||
type: String, | ||
required: true | ||
} | ||
}); | ||
|
||
export default mongoose.model<QuantityInfo & mongoose.Document>("Queantity", QuantitySchema) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import mongoose from "mongoose"; | ||
import { ReviewInfo } from "../interfaces/review/ReviewInfo"; | ||
|
||
const ReviewSchema = new mongoose.Schema ({ | ||
userName: { | ||
type: String, | ||
required: true | ||
}, | ||
thumbnanil: { | ||
type: String | ||
}, | ||
description: { | ||
type: String, | ||
required: true | ||
}, | ||
rates: { | ||
type: Number, | ||
required: true | ||
}, | ||
packageName: { | ||
type: String, | ||
required: true | ||
}, | ||
product: { | ||
type: String, | ||
required: true | ||
} | ||
}, | ||
{timestamps: true} | ||
); | ||
|
||
export default mongoose.model<ReviewInfo & mongoose.Document>("Review", ReviewSchema) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import mongoose from "mongoose"; | ||
import { SubscribeInfo } from "../interfaces/subscribe/SubscribeInfo"; | ||
|
||
const SubscribeSchema = new mongoose.Schema ({ | ||
period: { | ||
option: { | ||
type: String, | ||
required: true | ||
} | ||
}, | ||
quantity: { | ||
option: { | ||
type: String, | ||
required: true | ||
} | ||
} | ||
}); | ||
|
||
export default mongoose.model<SubscribeInfo & mongoose.Document>("Subscribe", SubscribeSchema) |