sdy

update name to username in User model

......@@ -13,7 +13,7 @@ model User {
avatarUrl String? @default("")
email String @unique
password String
name String
username String
phoneNum String @default("") @unique
emailSecret String? @default("")
phoneSecret String? @default("")
......
type Mutation {
createAccount(
name: String!
username: String!
email: String!
password: String!
bio: String
avatarUrl: String
phoneNum: String
phoneNum: String!
): AuthPayload!
}
......
type Mutation {
editProfile(
email: String!
name: String
username: String
bio: String
avatarUrl: String
phoneNum: String
......
type User {
id: ID!
avatarUrl: String
name: String!
username: String!
email: String!
password: String!
emailSecret: String
......