prisma-oxigen 1.0.0

Prisma Oxigen is a Rust crate designed to facilitate the creation of Prisma generators. It provides a set of utilities and abstractions to simplify the process of building custom generators for the Prisma ORM.
Documentation
generator oxigen {
  provider = "./target/debug/prisma-oxigen"
}

datasource db {
  provider = "postgresql"
  url      = env("DATABASE_URL")
}

enum Role {
  USER
  ADMIN
}

model Session {
  id     Int  @id @default(autoincrement())
  userId Int
  User   User @relation(fields: [userId], references: [id])
}

model User {
  id      Int       @id @default(autoincrement())
  email   String    @unique
  name    String?
  role    Role      @default(USER)
  Session Session[]
}