blob: c038b0659743a14829fb0d43777100e1adf5fccc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
---
description: Generate type-safe Drizzle schema for a table
argument-hint: "[table-name] [database-type]"
allowed-tools: Write, Read, Edit
---
Generate a complete Drizzle ORM schema for the table "$ARGUMENTS".
Follow these requirements:
1. Use proper TypeScript types and imports
2. Include appropriate indexes for performance
3. Add relationships if referenced tables exist
4. Include proper constraints and validations
5. Generate both insert and select type exports
6. Follow Drizzle naming conventions
If no table name is provided, show available schema patterns and examples.
|