// runtime/subsystems/cache/cache.schema.ts
import { pgTable, text, jsonb, timestamp } from "drizzle-orm/pg-core";
var cacheEntries = pgTable(
  "cache_entries",
  {
    /** Cache key — primary key, text (not uuid) to support arbitrary key namespacing. */
    key: text("key").primaryKey(),
    /** Cached value serialised as JSONB. */
    value: jsonb("value").notNull(),
    /** NULL means the entry never expires. */
    expiresAt: timestamp("expires_at", { withTimezone: true })
  }
  // Index: add (expires_at) via migration for cleanup queries
);

export {
  cacheEntries
};
//# sourceMappingURL=chunk-FASRXRX5.js.map