ReferenceCommand line
rent init
Add models
rent init User Post CommentCreated User in ./rent/schema.rsl
Created Post in ./rent/schema.rsl
Created Comment in ./rent/schema.rsl
Generated ./rent/generated
Next: Edit the schema, then run `rent migrate dev --name describe_the_change`.Initialization creates or extends rent/schema.rsl, then regenerates the typed Rust client. Each model starts with a database-generated identity and an explicit table mapping:
model User {
id BigInt @id @default(autoincrement())
@@map("users")
}Rent refuses to add a model whose name already exists. To initialize another project directory:
rent --root services/blog init User Post Comment