model User {
id String @id @default(uuid()) // * Can be used by salt in encryption.
email String @unique
nickname String
password String
pwdIter Int @default(10000)
ssnIter Int @default(1000)
articles Article[]
articleComments ArticleComment[]
productComments ProductComment[]
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}
Schema 모음.
* model User {
id String @id @default(uuid()) // * Can be used by salt in encryption.
email String @unique
nickname String
password String
pwdIter Int @default(10000)
ssnIter Int @default(1000)
articles Article[]
articleComments ArticleComment[]
productComments ProductComment[]
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}
Schema 모음.
* Article 관련:
Article
Article
model Article {
id String @id @default(uuid())
title String
authorId String
author User @relation(fields: [authorId], references: [id], onDelete: Restrict)
content String
articleComments ArticleComment[]
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}
export const CreateUser = s.object({
email: email,
nickname: s.size(s.string(), 1, 20),
password: s.string()
});
export const PatchUser = s.partial(CreateUser);
// * User id 는 따로 받아야 함.
Schema 모음. -- Struct 제약조건 모음.
* export const CreateUser = s.object({
email: email,
nickname: s.size(s.string(), 1, 20),
password: s.string()
});
export const PatchUser = s.partial(CreateUser);
// * User id 는 따로 받아야 함.
Schema 모음. -- Struct 제약조건 모음.
* Article 관련:
struct-Article
struct-Article
export const CreateArticle = s.object({
title: s.size(s.string(), 1, 20),
authorId: Uuid,
content: s.size(s.string(), 10, 500),
});
export const PatchArticle = s.partial(CreateArticle);
// * Article id 는 따로 받아야 함.
Schema 모음. -- Struct 제약조건 모음.
* export const CreateArticle = s.object({
title: s.size(s.string(), 1, 20),
authorId: Uuid,
content: s.size(s.string(), 10, 500),
});
export const PatchArticle = s.partial(CreateArticle);
// * Article id 는 따로 받아야 함.
Schema 모음. -- Struct 제약조건 모음.
* Comments 관련:
struct-ProductComment
struct-ProductComment
export const CreateProductComment = s.object({
productId: Uuid,
commenterId: Uuid,
content: s.size(s.string(), 1, 255),
});
// * Patch 는 위 데이터에 id 추가.
,
struct-ArticleComment
struct-ArticleComment
export const CreateArticleComment = s.object({
articleId: Uuid,
commenterId: Uuid,
content: s.size(s.string(), 1, 255),
});
// * Patch 는 위 데이터에 id 추가.
Schema 모음. -- Struct 제약조건 모음.
* export const CreateProductComment = s.object({
productId: Uuid,
commenterId: Uuid,
content: s.size(s.string(), 1, 255),
});
// * Patch 는 위 데이터에 id 추가.
Schema 모음. -- Struct 제약조건 모음.
* export const CreateArticleComment = s.object({
articleId: Uuid,
commenterId: Uuid,
content: s.size(s.string(), 1, 255),
});
// * Patch 는 위 데이터에 id 추가.
Schema 짜기.
* model User {
id String @id @default(uuid()) // * Can be used by salt in encryption.
email String @unique
nickname String
password String
pwdIter Int @default(10000)
ssnIter Int @default(1000)
articles Article[]
articleComments ArticleComment[]
productComments ProductComment[]
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}
Schema 짜기.
* model Product {
id String @id @default(uuid())
name String
description String
price Float
tags String[]
images String[]
favoriteCount Int
productComments ProductComment[]
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}
Schema 짜기.
* model Article {
id String @id @default(uuid())
title String
authorId String
author User @relation(fields: [authorId], references: [id], onDelete: Restrict)
content String
articleComments ArticleComment[]
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}
On the left side of codes is there a hiden button to toggle/switch scrollability ({max-height:some} or {max-height:none}).
model User {
id String @id @default(uuid()) // * Can be used by salt in encryption.
email String @unique
nickname String
password String
pwdIter Int @default(10000)
ssnIter Int @default(1000)
articles Article[]
articleComments ArticleComment[]
productComments ProductComment[]
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}
Article 관련:
Article
Article
On the left side of codes is there a hiden button to toggle/switch scrollability ({max-height:some} or {max-height:none}).
model Article {
id String @id @default(uuid())
title String
authorId String
author User @relation(fields: [authorId], references: [id], onDelete: Restrict)
content String
articleComments ArticleComment[]
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}
,
ArticleComment
ArticleComment
On the left side of codes is there a hiden button to toggle/switch scrollability ({max-height:some} or {max-height:none}).
On the left side of codes is there a hiden button to toggle/switch scrollability ({max-height:some} or {max-height:none}).
model User {
id String @id @default(uuid()) // * Can be used by salt in encryption.
email String @unique
nickname String
password String
pwdIter Int @default(10000)
ssnIter Int @default(1000)
articles Article[]
articleComments ArticleComment[]
productComments ProductComment[]
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}
Product
On the left side of codes is there a hiden button to toggle/switch scrollability ({max-height:some} or {max-height:none}).
model Product {
id String @id @default(uuid())
name String
description String
price Float
tags String[]
images String[]
favoriteCount Int
productComments ProductComment[]
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}
Article
On the left side of codes is there a hiden button to toggle/switch scrollability ({max-height:some} or {max-height:none}).
model Article {
id String @id @default(uuid())
title String
authorId String
author User @relation(fields: [authorId], references: [id], onDelete: Restrict)
content String
articleComments ArticleComment[]
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}
ProductComment
On the left side of codes is there a hiden button to toggle/switch scrollability ({max-height:some} or {max-height:none}).
유튜브 음악, K-Pop MV 들을 광고없이 목록재생 해서 보세요.
접속하셔서 가입 후 별점만 드레그 하시면 자신의 페이지에 저장 됩니다.
그리고 자신의 페이지로 이동한 뒤 추천 받기 (단축키 R) 를 누르시면 자신이 점수 메긴것들로 이웃 (이웃보기 단축키 B) 을 자동으로 찾아주고 그 이웃들로부터 추천을 받을 수 있습니다.
http/https 링크
및 수식 (\ [ Outline 수식 \ ]
,\ ( inline 수식 \ )
::\
이후 띄어쓰기 없이) 을 넣으실 수 있습니다. 또한 code 는```
시작,```/
마지막으로 감싸 주시면 pretty-printed 되어서 나타납니다.```[.lang-js.scrollable.no-linenums]
같이 언어를 선택해 주실수도 있고, 긴 수식의 경우 scroll bar 가 생기게 만드실 수도 있습니다. .no-linenums 로 line numbering 을 없앨수도 있습니다.댓글 입력 후 rendering 된 형태를 보시려면, Handle CmtZ (단축키: N) 버튼을 눌러주세요. 오른쪽 아래 Floating Keys 에 있습니다. 아니면 댓글 젤 아래에 버튼이 있습니다.