chore: remove extra table

This commit is contained in:
Acbox
2026-01-10 18:02:33 +08:00
parent 4db09dcd35
commit 28aa28e5bb
3 changed files with 2 additions and 16 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ export const createAgent = (params: AgentParams) => {
}
async function* ask(input: string) {
// await loadContext()
await loadContext()
const user = {
role: 'user',
content: input,
-13
View File
@@ -1,13 +0,0 @@
import { pgTable, text, timestamp, integer } from 'drizzle-orm/pg-core'
import { sql } from 'drizzle-orm'
export const memory = pgTable('memory', {
id: text('id').primaryKey(),
memoryId: text('memory_id').notNull(),
previousValue: text('previous_value'),
newValue: text('new_value'),
action: text('action').notNull(),
createdAt: timestamp('created_at', { withTimezone: true }).default(sql`timezone('utc', now())`),
updatedAt: timestamp('updated_at', { withTimezone: true }),
isDeleted: integer('is_deleted').default(0),
})
+1 -2
View File
@@ -1,2 +1 @@
export * from './history'
export * from './memory'
export * from './history'