You can find the implementation of the migration steps here and learn more about their behaviour in the tests here.
name
(string): The name of the new model.embedded
(boolean): Specifies whether the model is an embedded type.db_name
(string, optional): TBD
Assume the following model is added to the datamodel:
model User {
id: Int @id
name: String?
}
This generates the following migration step of type CreateModel
:
{
"stepType": "CreateModel",
"name": "User",
"embedded": false
}
The generated steps of other step types are omitted for brevity.