new-db-schema

Community

Type-safe DB schemas with Drizzle & Valibot.

Authorcoderguai
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Create Drizzle ORM schemas with type-safe Valibot validation to ensure database integrity and validation at the API boundary. 使用 Drizzle ORM 创建带有类型安全 Valibot 验证的数据库模式,以确保数据库完整性和 API 边界的验证。

Core Features & Use Cases

  • Schema boilerplate: Provides standard fields and timestamps (id, createdAt, updatedAt).
  • Validation integration: CreateInsertSchema with Valibot validation.
  • Guidelines: Snake_case naming, common fields (UUID, timestamps, foreign keys).

Quick Start

Follow the steps to create a new entity schema under packages/db/src/schemas/<entity>.ts using the template in the skill, export it, update .folder.md, and push to the database.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: new-db-schema
Download link: https://github.com/coderguai/server-up-box/archive/main.zip#new-db-schema

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.