mirror of
https://github.com/memohai/Memoh.git
synced 2026-04-25 07:00:48 +09:00
chore: remove extra table
This commit is contained in:
@@ -35,7 +35,7 @@ export const createAgent = (params: AgentParams) => {
|
||||
}
|
||||
|
||||
async function* ask(input: string) {
|
||||
// await loadContext()
|
||||
await loadContext()
|
||||
const user = {
|
||||
role: 'user',
|
||||
content: input,
|
||||
|
||||
@@ -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 +1 @@
|
||||
export * from './history'
|
||||
export * from './memory'
|
||||
export * from './history'
|
||||
Reference in New Issue
Block a user