[TIL] 1008-1108 Technical Document
IT/TIL(Today I Learnt)2022. 10. 11. 20:44
Today I Learnt
1008 :
Functional Requirement Document: FRD
Functional Specification Document: FSD
https://ajiethkumar.wordpress.com/2013/08/06/functional-specification-requirement-document-fsd-frd/
Business Requirement Document: BRD
1009:
sequilzier model부분 쉬운설명
관계설정 , model attribute설정등 :
https://any-ting.tistory.com/51
ERD drawing :
더보기
항해 node js 하면서 만든 자료:
sequlize cli command
- 프로젝트 초기화
처음 프로젝트 에서 config파일및 migration,seeders,models 폴더,파일들 생성
npx sequelize init
2. 데이터 베이스 생성
mongodb와는 다르게 데이터 베이스를 먼저 생성을 해야 작업을할수있습니다.
config에서 설정한대로 접속후 데이터 베이스를 생성합니다.
mongodb와는 다르게 데이터 베이스를 먼저 생성을 해야 작업을할수있습니다.
config에서 설정한대로 접속후 데이터 베이스를 생성합니다.
npx sequelize db:create
3.모델생성
데이터모델에 지정해준대로 데이터 베이스안에 모델을 생성합니다.
몽고디비에서 schema부분 이랑 비슷하다고 생각하시면됩니다.
데이터모델에 지정해준대로 데이터 베이스안에 모델을 생성합니다.
몽고디비에서 schema부분 이랑 비슷하다고 생각하시면됩니다.
npx sequelize model:generate --name User --attributes email:string,nickname:string,password:string
4.테이블생성
모델을 가지고 테이블을 만듭니다.
모델을 가지고 테이블을 만듭니다.
npx sequelize db:migrate
공식문서 :
https://sequelize.org/docs/v6/other-topics/migrations/그외자료:
https://levelup.gitconnected.com/getting-started-with-sequelize-cli-c33c797f05c6검색키워드:
sequlize cli command , sequlize cli명령어 ..
https://sequelize.org/docs/v6/other-topics/migrations/그외자료:
https://levelup.gitconnected.com/getting-started-with-sequelize-cli-c33c797f05c6검색키워드:
sequlize cli command , sequlize cli명령어 ..
반응형
'IT > TIL(Today I Learnt)' 카테고리의 다른 글
[TIL] 2410 - 2810 10월 마지막주 (0) | 2022.10.31 |
---|---|
[TIL] 1010 - 1510 (2) | 2022.10.25 |
[TIL] 0810 호주개발자 (4) | 2022.10.08 |
[TIL] 0923 (0) | 2022.10.08 |
[TIL] 0912 (0) | 2022.09.18 |
댓글()