No public results yet
Plan an incremental library migration with rollback checkpoints
Break a dependency replacement into reviewable stages with compatibility checks, exit criteria and realistic rollback limits.
Check whether keys, constraints and relationships actually enforce the application's stated data rules.
No public result for version 1 yet
Version 1 · 3 variables · 3 required
Fill in the values below — the customized prompt updates as you type. marks a required value.
Engine and version whose constraint semantics matter. Default: PostgreSQL 16
DDL or precise table definitions. Default: projects(id uuid primary key, tenant_id uuid not null); tasks(id uuid primary key, tenant_id uuid not null, project_id uuid references projects(id));
Rules, cardinalities and frequent reads/writes. Default: Every task must belong to a project in the same tenant. Task lists filter by tenant and project. Project deletion should be blocked while tasks exist.
Review this relational schema for PostgreSQL 16:
projects(id uuid primary key, tenant_id uuid not null);
tasks(id uuid primary key, tenant_id uuid not null, project_id uuid references projects(id));
Business invariants and main access patterns:
Every task must belong to a project in the same tenant. Task lists filter by tenant and project. Project deletion should be blocked while tasks exist.
Create a table mapping each stated invariant to the constraint or application behavior that enforces it. Flag missing enforcement, ambiguous cardinality, nullable-key surprises, and delete/update behavior that could violate a rule. Cite exact tables and columns.
Prioritize findings by concrete failure scenario. For each, provide the smallest corrective design and its tradeoff. Distinguish data-integrity constraints from query-driven index suggestions; do not recommend an index without an access pattern.
End with a short list of existing-data checks needed before applying changes and questions that require a domain decision. Do not claim a schema is production-ready or generate destructive migration commands.No public examples yet for version 1
Curated prompt only. No example output or model test is attached; model compatibility has not been verified. Default inputs are illustrative practice material; replace them with your own facts and context.
Reports go to moderators and are never shown publicly.
No public results yet
Break a dependency replacement into reviewable stages with compatibility checks, exit criteria and realistic rollback limits.
No public results yet
Define realistic traffic, workload data, measurements and stopping rules for an authorized performance test.
No public results yet
Find source-visible labeling, semantics and keyboard risks, while separating code findings from checks that require a browser.
No public results yet
Map feature assets, trust boundaries and data flows to concrete threats, existing controls and targeted verification tasks.
No public results yet
Turn an API contract into a small client design that handles retryable failures, deadlines and idempotency deliberately.
No public results yet
Interpret supplied plan evidence and prioritize query or index experiments without inventing costs or speedups.
Oldest first · one level of replies
Sign in to join the discussion. Share what you learned or made with this prompt.
No comments yet
Be the first to share how this prompt worked for you.