The open-source app everyone uses to manage agents at work
TypeScript acpxagent-orchestrationagent-skillsagentic-aiai-agentsai-engineeringai-governanceai-toolsautonomous-agentsclaudeclaude-codeclaude-skillscodexhermesllmmcpmulti-agentopenclawproject-managementworkflow-automation
import { pgTable, text, timestamp, primaryKey } from "drizzle-orm/pg-core";
// Only IDs from a validated feed are registered. This durable allowlist keeps
// offline dismissal retries working without accepting caller-invented IDs.
// It contains no announcement content, account data or interaction events.
export const announcementPublications = pgTable("announcement_publications", {
announcementId: text("announcement_id").primaryKey(),
});
// Instance-wide personal preference, like user_sidebar_preferences. No auth
// foreign key: local_trusted uses the synthetic local-board principal.
export const announcementDismissals = pgTable("announcement_dismissals", {
userId: text("user_id").notNull(),
announcementId: text("announcement_id").notNull(),
dismissedAt: timestamp("dismissed_at", { withTimezone: true }).notNull().defaultNow(),
}, (table) => ({ pk: primaryKey({ columns: [table.userId, table.announcementId] }) }));