dexhunter/activepieces · Archived

add-entity

Use when creating a new database table, entity, or data model. ALWAYS use for any new TypeORM EntitySchema creation.

First seen Jul 15, 2026

Installation

$ npx skills add dexhunter/activepieces --skill add-entity

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from dexhunter/activepieces · top by installs.

npx skills add dexhunter/activepieces

Browse all from dexhunter/activepieces

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 1
License LICENSE
Default branch main
Status Archived

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,592 B
  • docs SUMMARY.md 134 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

Add Database Entity

Create entity for $ARGUMENTS.

Steps

  1. Read the pattern: Open packages/server/api/src/app/tables/table/table.entity.ts as reference.
  1. Create entity file at packages/server/api/src/app/{module}/{name}.entity.ts:

- Use EntitySchema (NOT decorators) - Include ...BaseColumnSchemaPart (id, created, updated) - Use ApIdSchema for foreign key columns ({ ...ApIdSchema, nullable: false }) - Add projectId column + relation to project (CASCADE delete) - Add foreignKeyConstraintName on all join columns - Array columns: { type: String, array: true, nullable: false }

  1. Register entity: Import and add to getEntities() array in packages/server/api/src/app/database/database-connection.ts. This is REQUIRED — TypeORM does NOT auto-discover.
  1. Create migration:

- Read playbook - Name: {Timestamp}{PascalCaseDescription} (e.g., AddMyFeature1774500000000) - Import in packages/server/api/src/app/database/postgres-connection.ts - Add to getMigrations() array (chronological order) - PGlite: CREATE INDEX (not CONCURRENTLY). Set transaction = false for CONCURRENTLY.

  1. Create repository: const myRepo = repoFactory(MyEntity) — call as myRepo() or myRepo(entityManager) for transactions.
  1. Verify: npm run lint-dev