원클릭으로
db-schema
Design database schemas — tables, columns, types, constraints, indexes, and
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Design database schemas — tables, columns, types, constraints, indexes, and
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Consult and write the ARAYA postoffice — the operational-directive channel. Advisory, never a gate: read it at cycle start, append your entry at cycle end, consider its directives, never be blocked by it. Governance acts never travel the postoffice.
Audit and enforce brand compliance across all projects and platforms — logo,
Design REST and GraphQL APIs following OpenAPI 3.1 standards. Produce complete
Connect frontend to backend — type-safe API clients, request/response handling,
Implement authentication and authorization middleware — JWT validation, role-based
Design scalable component architectures — design systems, component libraries,
| name | db-schema |
| description | Design database schemas — tables, columns, types, constraints, indexes, and |
| governance | Constitution ENG-004: Engineering Excellence & Software Craftsmanship Standard |
Design database schemas — tables, columns, types, constraints, indexes, and migrations — following best practices for the target database engine.
Poorly designed schemas lead to data corruption, query performance issues, and expensive migrations. This skill produces normalized schemas with proper types, constraints, indexes, and migration scripts that evolve safely.
When creating new tables, modifying existing schemas, designing a new database, or reviewing an existing schema for normalization and performance.
Data model requirements, entity relationships, query patterns, expected data volumes.
erDiagram
users ||--o{ orders : places
users {
uuid id PK
string name
string email UK
string password_hash
string role
timestamp created_at
timestamp updated_at
}
orders {
uuid id PK
uuid user_id FK
string status
decimal total
timestamp created_at
}
-- 001_create_users.up.sql
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
CREATE TABLE users (
id UUID PRIMARY KEY DEFAULT uuid_generate_v4(),
name VARCHAR(100) NOT NULL,
email VARCHAR(255) NOT NULL UNIQUE,
password_hash VARCHAR(255) NOT NULL,
role VARCHAR(20) NOT NULL DEFAULT 'user'
CHECK (role IN ('user', 'admin')),
created_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),
updated_at TIMESTAMPTZ NOT NULL DEFAULT NOW()
);
CREATE INDEX idx_users_email ON users(email);
CREATE INDEX idx_users_role ON users(role);
-- Trigger for updated_at
CREATE OR REPLACE FUNCTION update_timestamp()
RETURNS TRIGGER AS $$
BEGIN
NEW.updated_at = NOW();
RETURN NEW;
END;
$$ LANGUAGE plpgsql;
CREATE TRIGGER users_updated_at
BEFORE UPDATE ON users
FOR EACH ROW EXECUTE FUNCTION update_timestamp();
created_at, updated_at on every tablecreated_at and updated_at columns with auto-update trigger