Model_UserModel - Laterality/yummy-dishes-REST GitHub Wiki

UserModel에 λŒ€ν•΄ μ„€λͺ…ν•˜λŠ” λ¬Έμ„œμž…λ‹ˆλ‹€.


μ •μ˜

_id
string
μ‹λ³„μž
email
string
μ‚¬μš©μž 이메일
is_admin
boolean
κ΄€λ¦¬μžμ—¬λΆ€
username
string
μœ μ €λ„€μž„
login_type
string
둜그인 ν˜•νƒœ ["native", "google"]
access_token
string
μ™ΈλΆ€ ν”Œλž«νΌμ— μ˜ν•œ 둜그인인 경우, μ•‘μ„ΈμŠ€ 토큰
phone_number
string
νœ΄λŒ€ν° 번호 ('-' μ—†μŒ, pattern: [0-9]+$ )
date_reg
date
등둝 λ‚ μ§œ
age
integer
μ—°λ ΉλŒ€ (pattern: [1-6]0 )
device_id
string
ν‘Έμ‹œμ•Œλ¦Όμ„ μœ„ν•œ device id
accept_push
ν‘Έμ‹œμ•Œλ¦Ό
accepted
boolean
λ™μ˜ μ—¬λΆ€
date_accepted
date
λ™μ˜ 일자
accept_privacy
κ°œμΈμ •λ³΄ 이용 λ™μ˜
accepted
boolean
λ™μ˜ μ—¬λΆ€
date_accepted
date
λ™μ˜ 일자
bucket
Array<ProductModel>
μž₯λ°”κ΅¬λ‹ˆ
tastes
Array<TasteModel>
초기 μ„€λ¬Έ μ‹œ μ„ νƒν•œ 기호
likes
Array<ProductModel>
μ„ ν˜Έν•˜λŠ” μ œν’ˆ λͺ©λ‘
classes_prefer
Array<ProductClassModel>
μ„ ν˜Έν•˜λŠ” μ œν’ˆ λΆ„λ₯˜ λͺ©λ‘
comments
Array<CommentModel>
μž‘μ„±ν•œ μ½”λ©˜νŠΈ λͺ©λ‘
coupons
Array<CouponModel>
μ†Œμœ ν•œ 쿠폰 λͺ©λ‘
cnt_reviewable
integer
μž‘μ„± κ°€λŠ₯ν•œ 리뷰 개수
cnt_stamp
integer
λ³΄μœ μ€‘μΈ μŠ€νƒ¬ν”„ 개수

Example

{
	"_id": "59930dcbd5b72c3903bd405d",
	"email": "[email protected]",
	"is_admin": false,
	"username": "JohnSmith",
	"login_type": "native",
	"access_token": "",
	"phone_number": "01012345678",
	"date_reg": "2017-08-15T06:41:41.448Z"
	"age": 20,
	"device_id": "bk3RNwTe3H0:CI2k_HHwgIpoDKCIZvvDMExUdFQ3P1...",
	"accept_push": {
		"accepted": true,
		"date_accepted": "2017-08-15T06:41:41.448Z"
	},
	"accepted_privacy": {
		"accepted": true,
		"date_accepted": "2017-08-15T06:41:41.448Z"
	}
	"bucket": [
		{
			"product": {
				"name": "Product1",
				"price": 3000,
				...
			},
			"quantity": 2
		},
		{
			"product": {
				"name": "Product2",
				"price": 5000,
				...
			}
			"quantity": 1
		},
		...
	],
	"tastes": [
		{
			"text": "짭지"
		},
		...
	],
	"likes": [
		{
			"name": "Product1",
			"price": 3000,
			...
		},
		{
			"name": "Product2",
			"price": 5000,
			...
		},
		...
	],
	"comments": [
		{
			"product": {
				"name": "Product1",
				...
			},
			"date_reg": "2017-08-15T06:41:41.448Z",
			"rate": 4,
			"tastes": [
				{
					"text": "짭지",
				},
			],
			"content": {
				"text": "lorem ipsum dolor sit amet",
				"images": [
					{
						"path": "..."
					},
					...
				]
			}
		},
		...
	],
	"cnt_reviewable": 2,
	"cnt_stamp": 6
}
⚠️ **GitHub.com Fallback** ⚠️