-
Notifications
You must be signed in to change notification settings - Fork 5
week1_output
Yancy edited this page Nov 20, 2020
·
12 revisions
🔖 MongoDB Collections & Mongoose schema

const user = new Schema(
{
authName: String,
authId: Number,
},
);
const accountBook = new Schema(
{
accountBookId: Number,
accountBookName: String,
accountBookAuthorizedUsers: [String],
},
);
const transactions = new Schema(
{
accountBookId: Number,
date: Date,
category: String,
card: String,
description: String,
cost: Number,
tag: [String],
imageUrl: String,
author: String,
},
);
const account = new Schema(
{
name: String
},
);
const category = new Schema(
{
name: String
},
);
const tag = new Schema(
{
name: String
},
);
const user = [{
"_id": 1,
"authName": "name",
"authId": 1234,
},]
const accountBook = [{
"_id": 1,
"accountBookId": 1,
"accountBookName": 'Name',
"accountBookAuthorizedUsers": ['Name'],
},]
const transactions = [{
"_id": 1,
"accountBookId": 1,
"date": "2020-01-15 14:20",
"category": "food",
"card": "naver card",
"description": "분식집에서 떡볶이 먹엇으~",
"cost": 20000,
"tag": ["분식집", "떡볶이"],
"imageUrl": "https://www.asiatime.co.kr/news/data/20191217/p1065600532377147_587_thum.jpg",
"author": "name",
},]
const account = [{
"_id": 1,
"name": "현대카드",
},{
"_id": 2,
"name": "네이버페이"
},]
const category = [{
"_id": 1,
"name": "food"
}, {
"_id": 2,
"name": "transportation"
}, {
"_id": 3,
"name": "education"
},]
const tag = [{
"_id": 1,
"name": "분식집"
}, {
"_id": 1,
"name": "떡볶이"
},]
🔖 Work Flow


🔖 PR / ISSUE / BUG Template
## 🗣 설명
Github 이슈 설명
<br/>
## 📋 체크리스트
> 구현해야하는 이슈 체크리스트
- [ ] 체크 사항 1
- [ ] 체크 사항 2
- [ ] 체크 사항 3
- [ ] 체크 사항 4
<br/>
## 🚧 주의 사항
> 이슈를 구현할 때 유의깊게 살펴볼 사항
- 주의 사항 1
- 주의 사항 2## ✅ 작업 내용
- [ ] 작업 내역 1
- [ ] 작업 내역 2
## 🔨 변경 사항 (구현 사항)
- [ ] 구현 사항 1
- [ ] 구현 사항 2
## 📸 스크린샷 (Optional)
## 🔒 관련이슈 (Optional)
- (close #issueNumber) 형식으로 닫을 이슈를 명시해주세요.### 🤔 Current behaviour (bug)
Write here
<br/>
### 😮 Expected behaviour (correct)
Write here
<br/>
### 😣 버그 재현방법
1. Write here
2. Write here🔖 화면 설계 (기획서)
-
moqups를 활용해 기획서를 작성했습니다.