> ## Documentation Index
> Fetch the complete documentation index at: https://docs.shipkit.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Drizzle

<img src="https://mintcdn.com/shipkit/HuQd_kWdB4hOr_Br/images/drizzle.png?fit=max&auto=format&n=HuQd_kWdB4hOr_Br&q=85&s=901e3c95944a04a37247ccc33bb09baf" alt="Drizzle" width="2400" height="700" data-path="images/drizzle.png" />

Drizzle ORM in ShipKit provides a simple, effective way to handle database operations. Designed for developers who prefer lightweight solutions, Drizzle helps you manage database interactions without complex configurations, making it ideal for small to medium projects.

## Schema

The schema for Drizzle is found in `src/core/db/schema.ts`. This file contains the schema for the database tables and their relationships.

## Usage

```typescript theme={null}
import { db } from '~/core/db';

const user = await db.query.user.findFirst({
  where: (table, { eq }) => eq(table.id, userId),
});
```
