@tickernelz/wardmote-db 2026.1108.1 → 2026.1109.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,35 +0,0 @@
1
- import { pgTable, uuid, text, timestamp, uniqueIndex } from "drizzle-orm/pg-core";
2
- import { companies } from "./companies.js";
3
- import { goals } from "./goals.js";
4
- import { agents } from "./agents.js";
5
- import { issues } from "./issues.js";
6
- /**
7
- * The onboarding answers Paperclip Cloud collected during signup, pushed into
8
- * this stack at activation and applied here.
9
- *
10
- * `revision` is the content hash Cloud computed over the seed. Cloud retries
11
- * the push until it gets a 2xx and only then records the acknowledged
12
- * revision, so the receiver has to be idempotent: replaying a revision that
13
- * already matches this row must not create a second agent or a second task.
14
- * The `goal_id` / `agent_id` / `issue_id` back-references are what a later
15
- * revision updates in place rather than duplicating.
16
- */
17
- export const companyOnboardingSeeds = pgTable("company_onboarding_seeds", {
18
- id: uuid("id").primaryKey().defaultRandom(),
19
- companyId: uuid("company_id").notNull().references(() => companies.id, { onDelete: "cascade" }),
20
- revision: text("revision").notNull(),
21
- mission: text("mission"),
22
- agentName: text("agent_name"),
23
- agentRole: text("agent_role"),
24
- firstTaskTitle: text("first_task_title"),
25
- firstTaskDetails: text("first_task_details"),
26
- goalId: uuid("goal_id").references(() => goals.id, { onDelete: "set null" }),
27
- agentId: uuid("agent_id").references(() => agents.id, { onDelete: "set null" }),
28
- issueId: uuid("issue_id").references(() => issues.id, { onDelete: "set null" }),
29
- appliedAt: timestamp("applied_at", { withTimezone: true }).notNull().defaultNow(),
30
- createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
31
- updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
32
- }, (table) => ({
33
- companyUq: uniqueIndex("company_onboarding_seeds_company_uq").on(table.companyId),
34
- }));
35
- //# sourceMappingURL=company_onboarding_seeds.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"company_onboarding_seeds.js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