``` // datamodel.prisma enum Permission { ADMIN ...
# orm-help
e
Copy code
// datamodel.prisma
enum Permission {
  ADMIN
  USER
  PERMISSIONUPDATE
}

enum Gender {
  MALE
  FEMALE
  NONBINARY
  NOTSPECIFIED
}

type User {
  id: ID! @id
  name: String
  username: String @unique
  website: String
  bio: String
  email: String! @unique
  phoneNumber: Int
  gender: Gender!
  following: [User!]! @relation(name: "Following", link: INLINE)
  followers: [User!]! @relation(name: "Followers", link: INLINE)
  password: String!
  resetToken: String
  resetTokenExpiry: String
  posts: [Post!]! @relation(name: "Posts", link: INLINE)
  permissions: [Permission!]!
  createdAt: DateTime! @createdAt
  updatedAt: DateTime! @updatedAt
}

type Post {
  id: ID! @id
  author: User! @relation(name: "Author", link: INLINE)
  image: String
  caption: String
  location: Location
  published: Boolean @default(value: false)
  likes: [User!]! @relation(name: "Likes", link: INLINE)
  comments: [Comment!]!
  createdAt: DateTime! @createdAt
}

type Location @embedded {
  latitude: Float!
  longitude: Float!
}

type Comment @embedded {
  text: String!
  writtenBy: User!
  createdAt: DateTime! @createdAt
}
h
name property is just a identifier that prisma uses to keep track of the relations. https://www.prisma.io/docs/1.28/datamodel-and-migrations/migrations-MYSQL-asdf/#limitations You will need to
--force
deploy this change as renaming is not quite possible