\ubc31\uc5d4\ub4dc \uc11c\ube44\uc2a4\uc5d0\uc11c \ub370\uc774\ud130 \ubaa8\ub378\ub9c1\uc740 \ub9e4\uc6b0 \uc911\uc694\ud55c \uc5ed\ud560\uc744 \ud569\ub2c8\ub2e4. \uc774\ub294 \ub370\uc774\ud130\ub97c \uad6c\uc870\uc801\uc73c\ub85c \uad00\ub9ac\ud558\uace0, \uc800\uc7a5\ud558\uace0, \uac80\uc0c9\ud560 \uc218 \uc788\ub3c4\ub85d \ud558\uae30 \ub54c\ubb38\uc785\ub2c8\ub2e4. \ub370\uc774\ud130 \ubaa8\ub378\ub9c1\uc740 \uc11c\ube44\uc2a4\uc758 \ud6a8\uc728\uc131\uacfc \ud655\uc7a5\uc131\uc744 \uacb0\uc815\ud560 \uc218 \uc788\ub294 \uc911\uc694\ud55c \uc694\uc18c\uc785\ub2c8\ub2e4. \ub370\uc774\ud130 \ubaa8\ub378\ub9c1\uc5d0 \ub300\ud574 \uace0\ubbfc\ud560 \ub54c, NoSQL\uacfc SQL \ub370\uc774\ud130\ubca0\uc774\uc2a4\ub97c \ube44\uad50\ud558\uc5ec \uc5b4\ub5a4 \ubc29\uc2dd\uc744 \uc120\ud0dd\ud560\uc9c0 \uacb0\uc815\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n
NoSQL\uacfc SQL \ub370\uc774\ud130\ubca0\uc774\uc2a4\ub294 \ub9e4\uc6b0 \ub2e4\ub978 \ubc29\uc2dd\uc73c\ub85c \ub370\uc774\ud130\ub97c \uc800\uc7a5\ud558\uace0 \uad00\ub9ac\ud569\ub2c8\ub2e4. SQL \ub370\uc774\ud130\ubca0\uc774\uc2a4\ub294 \ud45c \ud615\uc2dd\uc73c\ub85c \ub370\uc774\ud130\ub97c \uc800\uc7a5\ud558\uace0, \uad00\uacc4\ub97c \uc774\uc6a9\ud558\uc5ec \ub370\uc774\ud130\ub97c \uac80\uc0c9\ud569\ub2c8\ub2e4. \ubc18\uba74 NoSQL \ub370\uc774\ud130\ubca0\uc774\uc2a4\ub294 \ube44\uc815\ud615 \ub370\uc774\ud130 \ud615\uc2dd\uc73c\ub85c \ub370\uc774\ud130\ub97c \uc800\uc7a5\ud558\uace0, \ubb38\uc11c \ub0b4\ubd80\uc5d0 \ub370\uc774\ud130\ub97c \uc911\ucca9\ud558\uc5ec \uac80\uc0c9\ud569\ub2c8\ub2e4.<\/p>\n
SQL \ub370\uc774\ud130\ubca0\uc774\uc2a4\ub294 \ub370\uc774\ud130 \uc815\ud569\uc131\uc744 \ubcf4\uc7a5\ud558\uba70, \ub370\uc774\ud130\uc758 \uc77c\uad00\uc131\uc774 \uc911\uc694\ud55c \uacbd\uc6b0 \uc0ac\uc6a9\ub429\ub2c8\ub2e4. \uc608\ub97c \ub4e4\uc5b4, \uc740\ud589 \uc2dc\uc2a4\ud15c\uc5d0\uc11c\ub294 \uc815\ud655\ud55c \ub370\uc774\ud130\uac00 \ud544\uc694\ud558\ubbc0\ub85c SQL \ub370\uc774\ud130\ubca0\uc774\uc2a4\ub97c \uc0ac\uc6a9\ud569\ub2c8\ub2e4. NoSQL \ub370\uc774\ud130\ubca0\uc774\uc2a4\ub294 \ub300\uaddc\ubaa8 \ub370\uc774\ud130 \ucc98\ub9ac\uc640 \ub192\uc740 \ud655\uc7a5\uc131\uc774 \ud544\uc694\ud55c \uacbd\uc6b0 \uc0ac\uc6a9\ub429\ub2c8\ub2e4.<\/p>\n
\uc544\ub798\ub294 Node.js\uc640 MongoDB\ub97c \uc774\uc6a9\ud55c \ub370\uc774\ud130 \ubaa8\ub378\ub9c1 \uc608\uc2dc\uc785\ub2c8\ub2e4.<\/p>\n
const mongoose = require('mongoose');\n\nconst UserSchema = new mongoose.Schema({\n email: {\n type: String,\n required: true,\n unique: true\n },\n password: {\n type: String,\n required: true\n },\n name: {\n type: String,\n required: true\n },\n age: {\n type: Number,\n required: true\n },\n createdAt: {\n type: Date,\n default: Date.now\n }\n});\n\nconst UserModel = mongoose.model('User', UserSchema);\n\nmodule.exports = UserModel;<\/code><\/pre>\n\uc704 \ucf54\ub4dc\uc5d0\uc11c\ub294 MongoDB\ub97c \uc0ac\uc6a9\ud558\uc5ec User \ubaa8\ub378\uc744 \uc815\uc758\ud558\uace0, \uc774\ub97c Node.js\uc5d0\uc11c \uc0ac\uc6a9\ud560 \uc218 \uc788\ub3c4\ub85d export\ud569\ub2c8\ub2e4. User \ubaa8\ub378\uc740 email, password, name, age, createdAt \ud544\ub4dc\ub97c \uac00\uc9c0\uace0 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n
\uacb0\ub860<\/h1>\n
\ubc31\uc5d4\ub4dc \uc11c\ube44\uc2a4\uc5d0\uc11c \ub370\uc774\ud130 \ubaa8\ub378\ub9c1\uc740 \ub9e4\uc6b0 \uc911\uc694\ud55c \uc5ed\ud560\uc744 \ud569\ub2c8\ub2e4. NoSQL\uacfc SQL \ub370\uc774\ud130\ubca0\uc774\uc2a4\ub97c \ube44\uad50\ud558\uc5ec \uc5b4\ub5a4 \ubc29\uc2dd\uc744 \uc120\ud0dd\ud560\uc9c0 \uacb0\uc815\ud558\ub294 \uac83\uc740 \ub9e4\uc6b0 \uc911\uc694\ud569\ub2c8\ub2e4. NoSQL \ub370\uc774\ud130\ubca0\uc774\uc2a4\ub294 \ub300\uaddc\ubaa8 \ub370\uc774\ud130 \ucc98\ub9ac\uc640 \ub192\uc740 \ud655\uc7a5\uc131\uc774 \ud544\uc694\ud55c \uacbd\uc6b0 \uc0ac\uc6a9\ud558\ub294 \uac83\uc774 \uc88b\uc73c\uba70, SQL \ub370\uc774\ud130\ubca0\uc774\uc2a4\ub294 \ub370\uc774\ud130 \uc77c\uad00\uc131\uc774 \uc911\uc694\ud55c \uacbd\uc6b0 \uc0ac\uc6a9\ud558\ub294 \uac83\uc774 \uc88b\uc2b5\ub2c8\ub2e4. \ub370\uc774\ud130 \ubaa8\ub378\ub9c1\uc744 \ud560 \ub54c \uc774\ub7ec\ud55c \uc7a5\ub2e8\uc810\uc744 \uace0\ub824\ud558\uc5ec\uc57c \ud558\uba70, \uc774\ub97c \ubc14\ud0d5\uc73c\ub85c \uc801\uc808\ud55c \ub370\uc774\ud130 \ubaa8\ub378\uc744 \uc120\ud0dd\ud558\uc5ec\uc57c \ud569\ub2c8\ub2e4.<\/p>\n","protected":false},"excerpt":{"rendered":"
\ubc31\uc5d4\ub4dc \uc11c\ube44\uc2a4\uc758 \ub370\uc774\ud130 \ubaa8\ub378\ub9c1: NoSQL\uacfc SQL \ub370\uc774\ud130\ubca0\uc774\uc2a4 \ube44\uad50<\/p>\n","protected":false},"author":1,"featured_media":33704,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1957],"tags":[2580,6196,3414],"class_list":["post-39534","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-development","tag-user","tag-6196","tag-3414"],"acf":[],"_links":{"self":[{"href":"https:\/\/m9js.shop\/blog\/wp-json\/wp\/v2\/posts\/39534","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/m9js.shop\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/m9js.shop\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/m9js.shop\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/m9js.shop\/blog\/wp-json\/wp\/v2\/comments?post=39534"}],"version-history":[{"count":1,"href":"https:\/\/m9js.shop\/blog\/wp-json\/wp\/v2\/posts\/39534\/revisions"}],"predecessor-version":[{"id":39646,"href":"https:\/\/m9js.shop\/blog\/wp-json\/wp\/v2\/posts\/39534\/revisions\/39646"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/m9js.shop\/blog\/wp-json\/wp\/v2\/media\/33704"}],"wp:attachment":[{"href":"https:\/\/m9js.shop\/blog\/wp-json\/wp\/v2\/media?parent=39534"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/m9js.shop\/blog\/wp-json\/wp\/v2\/categories?post=39534"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/m9js.shop\/blog\/wp-json\/wp\/v2\/tags?post=39534"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}