-
Notifications
You must be signed in to change notification settings - Fork 7
frontend data scheme
Teihong93 edited this page Nov 28, 2019
·
4 revisions
- 2019-11-27 by hkwon
- 2019-11-28 by teihong93
const question = {
id: ID,
eventId: ID,
userName: String, ==> join μΌλ‘ κ°μ Έμ΄
guestId: ID,
hostId: ID?,
date: Date,
question: String,
isAnonymous: Boolean, ==> Guest tableμ μΆκ°ν¨
status: String, ==> Question tableμ "state" λ‘ μ μ₯λμ΄ μμΌλ―λ‘ codeμμλ state λ‘ λ³κ²½ν¨
isStared: Boolean, ==> Question tableμ μΆκ°ν¨
isShowEditButton: Boolean, ==> join μΌλ‘ κ°μ Έμ΄
isLike: Boolean, ==> join μΌλ‘ κ°μ Έμ΄
likeCount: Number, ==> join μΌλ‘ κ°μ Έμ΄
emoji:[emoji],
reply:[reply]
}
graphQl ꡬν체
type Question {
id: Int!
eventId: Int!
guestName: String!
guestUuid: ID!
date: String!
content: String!
isAnonymous: Boolean!
state: String!
isStared: Boolean!
isLike: Boolean!
likeCount: Int!
emojis: [Emoji]!
replies: [Question]!
}
const emoji ={
id:ID,
name:String,
count:Number,
didIPicked:Boolean
questionId:ID,
userId:ID
}
graphQl ꡬν체
type Emoji {
id: Int!
emojiName: String!
count: Int!
questionId: Int!
guestId: ID!
didIPicked: Boolean!
}
const reply = {
id:ID,
userId:ID
questionId:ID
contents:ID
emojis : [emoji]
likes: [likes]
date:Date
}
const event = {
id:ID
eventName: String,
startDate: Date,
endDate: Date,
hashTags: ["λΆμ€νΈμΊ ν", "μλ°μ€ν¬λ¦½νΈ"],
eventLink: String,
eventCode: String,
allowReply: true,
anonymousReply: false,
closeQuestion: false,
showPollsNum: true,
showPollResultAsRate: false,
};
// poll λ°μ΄ν°
const NItemPoll =
{
pollId: ID!,
pollName: String,
pollType: oneof(["NItems", "rating"]),
selectionType: oneof(["text", "date"]),
allowDuplication: Boolean,
pollDate: Date,
isActive: Boolean,
totalVoters: Number,
candidates: [candadiate],
}
const ratingPoll = {
pollId: ID!,
pollName: "λ§μ€ν° κ°μ νκ°",
pollType: "rating",
allowDuplication: Boolean,
pollDate: Date,
isActive: Boolean,
totalVoters: Number,
maxStars: Number,
rating: Number,
didIRated:Boolean,
],
},
const candidate = {
id: ID,
cadidateOrder: Number,
title: String,
numberOfvoters: Number,
didIvoted: Boolean,
};
const vote = {
id:ID,
guestId:ID
candidate:ID
}
const likes = {
id: ID ? questionId : ID,
guestId: ID,
};
const hashTag = {
id:ID,
eventId:ID
name:String
}
κΈ°ν
μ€κ³
κ°λ° λ° λ°°ν¬ νκ²½ μ€μ
λ°ν μλ£
λ°μΌλ¦¬ μ€ν¬λΌ
- 2019.11.05
- 2019.11.06
- 2019.11.07
- 2019.11.08
- 2019.11.11
- 2019.11.12
- 2019.11.13
- 2019.11.14
- 2019.11.15
- 2019.11.18
- 2019.11.19
- 2019.11.20
- 2019.11.21
- 2019.11.22
- 2019.11.25
- 2019.11.26
- 2019.11.27
- 2019.11.28
- 2019.12.03
- 2019.12.04
- 2019.12.09
- 2019.12.10
- 2019.12.11
- 2019.12.12
- 2019.12.13
- 2019.12.16
- 2019.12.18
- 2019.12.19
- 2019.12.20