Lot of errors in prisma deploy


#1
type User {
  id: ID! @unique
  name: String!
  email: String! @unique
  courses: [Course!]! @relation(name: "userCoursesCourse")
  comments: [Comment!]!
  score:Int!
  role:RoleEnum
  coursesBought:[Course!]! @relation(name: "usercoursesBoughtCourse")
  paidClient: Boolean!
  createdOn:

}

type Comment {
  id: ID! @unique
  commentBody:String!
  subSection:subSection!
  createdOn:String!


}

type Course {
  id: ID! @unique
  courseName:String!
  sections:[Section!]!
}

type Section {
  id: ID! @unique
  sectionsName:String!
  draft:Boolean!
  approved:Boolean!
  doneBy:[User]
}

enum RoleEnum {
  Admin
  Teacher
  Student
}

type Subsection {
  id:ID! @unique
  mcq:Mcq
  description:String
  section:[section!]!
  Videourl:[Videourl!]!
  question:[Question!]!
  Answer:[Answer!]!
  draft:Boolean!
  approved:Boolean!
  
}

type Videourl {
  id:ID! @unique
  url:String
}

type Mcq {
  id: ID! @unique
  question:String!
  answers:[String!]!
  course:[Course!]!
  doneBy:[User!]! @relation(name: "mcqDonebyUser")
  createdOn: String!
  subSection:[Subsection!]!
  createdBy:[User!]! @relation(name: "mcqDonebyCreatedby")
  lastModifiedBy:[User!]!
  draft:Boolean!
  approved:Boolean!

}

type Question {
  id:ID! @unique
  User:User!
  description:String!
  createdOn:String!
  answer1:String!
  answer2:String!
  answer3:String!
  answer4:String!
  answer5:String
  answer6:String
  answer7:String
  answer8:String

}

type Answer {
  id: ID! @unique
  postedBy:User!
  createdOn:String!
  bestAnswer:Boolean
  votes: Int!
  question:Question
}

I get this errors

Errors:

Answer
:heavy_multiplication_x: The field id is reserved and has to have the format: id: ID! @unique or id: UUID! @unique.

User
:heavy_multiplication_x: The field comments has the type [Comment!]! but there’s no type or enum declaration with that name.
:heavy_multiplication_x: The relation field coursesBought has the wrong format: [Course] Possible Formats: Course, Course!, [Course!]!
:heavy_multiplication_x: The relation field courses must specify a @relation directive: @relation(name: "MyRelation")
:heavy_multiplication_x: The relation field coursesBought must specify a @relation directive: @relation(name: "MyRelation")

Subsection
:heavy_multiplication_x: The field question has the type [Questions] but there’s no type or enum declaration with that name.
:heavy_multiplication_x: The field Answer has the type [Answers] but there’s no type or enum declaration with that name.
:heavy_multiplication_x: The relation field Videourl has the wrong format: [Videourl] Possible Formats: Videourl, Videourl!, [Videourl!]!
:heavy_multiplication_x: The relation field question has the wrong format: [Questions] Possible Formats: Questions, Questions!, [Questions!]!
:heavy_multiplication_x: The relation field Answer has the wrong format: [Answers] Possible Formats: Answers, Answers!, [Answers!]!

Course
:heavy_multiplication_x: The relation field sections has the wrong format: [Sections] Possible Formats: Sections, Sections!, [Sections!]!

Sections
:heavy_multiplication_x: The relation field doneBy has the wrong format: [User] Possible Formats: User, User!, [User!]!

Mcq
:heavy_multiplication_x: The relation field doneBy has the wrong format: [User] Possible Formats: User, User!, [User!]!
:heavy_multiplication_x: The relation field doneBy must specify a @relation directive: @relation(name: "MyRelation")
:heavy_multiplication_x: The relation field createdBy must specify a @relation directive: @relation(name: "MyRelation")
:heavy_multiplication_x: The relation field lastModifiedBy must specify a @relation directive: @relation(name: "MyRelation")

RoleEnum
:heavy_multiplication_x: The enum type RoleEnum contains invalid enum values. The first character of each value must be an uppercase


#2

I have tried to remove errors by following suggestions. But these errors dont go away.


#3

i have solved most of the errors. only relation error is left