Newbie/Novice/Basic Question please: In setting up a new project via
app.prisma.io wrt Types v Models/ id autoincrement
In using the CLI for hosted service at
prisma.io to get started
It offers the following starter Type
type User {
id: ID! @id
name: String!
}
I would like to amend the id to an autoincrement Integer, such as this tutorial material suggests here
https://www.prisma.io/docs/getting-started/quickstart-typescript#write-your-first-query-with-prisma-client
model User {
id Int @id @default(autoincrement())
email String @unique
name String?
posts Post[]
}
but then I notice the difference between type and model
The datamodel.prisma files that is set up as a starter seems to be based on types (not models) and works very well for quick setup
The
app.prisma.io service I am using is hooked into the hosted SQL service and abstracted away, so all changes are made via datamodel.prisma
So how to use the
app.prisma.io hosted service to edit models versus types?
How to use an autoincrement Int field as id there?
Many thanks for directing me to where this is best explained
Thanks in advance
Tony