Hi everyone! I'm currently testing the code genera...
# orm-help
d
Hi everyone! I'm currently testing the code generated schemas for Prisma Util and I need some opinions on this format:
Copy code
SchemaCreator
    .model("User")
        .column("id", "Int")
        .column("name", "String")
        .column("posts", "Post[]")
    .model("Post")
        .column("id", "Int", Constraints.Column.ID(), Constraints.Column.DEFAULT(Functions.AUTOINCREMENT()))
        .column("title", "String", Constraints.Column.UNIQUE())
        .column("userId", "Int")
        .column("user", "User", Constraints.Column.RELATION({fields: ["userId"], references: ["id"]}))
    .build();
n
Reminds me a bit of GraphQL Nexus, I like it 🙌 prisma rainbow