# code-block-pro/1.27.4/build/shiki/samples/prisma.sample

Code Block Pro – Beautiful Syntax Highlighting, version 1.27.4. 42 lines.

- Page: https://pluginprobe.com/plugins/code-block-pro/1.27.4/code/build/shiki/samples/prisma.sample
- Raw: https://pluginprobe.com/plugins/code-block-pro/1.27.4/raw/build/shiki/samples/prisma.sample
- Modified: 2022-08-22T22:25:46+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/code-block-pro/1.27.4/code/build/shiki/samples/prisma.sample#L10-L20`.

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

generator client {
  provider = "prisma-client-js"
}

/// Post including an author and content.
model Post {
  id        Int         @default(autoincrement()) @id
  content   String?
  published Boolean     @default(false)
  author    User?       @relation(fields: [authorId], references: [id])
  authorId  Int?
}

// Documentation for this model.
model User {
  id    Int     @default(autoincrement()) @id
  email String  @unique
  name  String?
  posts Post[]
  specialName UserName
  test Test
}

/// This is an enum specifying the UserName.
enum UserName {
    Fred
    Eric
}

// This is a test enum.
enum Test {
  TestUno
  TestDue
}

// taken from https://github.com/prisma/language-tools/blob/master/packages/vscode/testFixture/hover.prisma

```
