add baseline migrations#48
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
WalkthroughThe pull request consolidates and refines the database schema by introducing a new, comprehensive migration while removing several legacy migration scripts. The new migration creates enumerated types and new tables, as well as updates existing tables by adding, dropping, or modifying columns and constraints. The deprecated migrations—once responsible for similar schema adjustments—are fully removed, streamlining the overall migration history. Additionally, the migration lock file has been deleted. Changes
Sequence Diagram(s)sequenceDiagram
participant U as User
participant A as Application
participant DB as Database
U->>A: Create new Policy with details
A->>DB: Insert Policy record (content, usedBy)
DB-->>A: Policy record created
A->>DB: Link Policy with Control via PolicyControl
DB-->>A: Linking record created
A->>DB: Insert associated ControlRequirement records
DB-->>A: Requirements recorded
A->>DB: Associate Organization with Policy via OrganizationPolicy
DB-->>A: Organization-Policy link created
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (14)
💤 Files with no reviewable changes (13)
🔇 Additional comments (6)
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Summary by CodeRabbit
New Features
Chores