Skip to content

Commit

Permalink
feat(update): minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mgcrea committed Mar 7, 2024
1 parent a16e996 commit df01c41
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Expand Up @@ -42,6 +42,19 @@ pnpm add fastify-cookie @mgcrea/fastify-session @mgcrea/fastify-session-prisma-s

## Quickstart

Add the following table definition to your `schema.prisma`:

```prisma
model Session {
id BigInt @id @default(autoincrement()) @db.BigInt
sid String @unique
expires DateTime
data Json
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}
```

```ts
import createFastify, { FastifyInstance, FastifyServerOptions } from "fastify";
import fastifyCookie from "fastify-cookie";
Expand Down

0 comments on commit df01c41

Please sign in to comment.