mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-23 18:10:26 +08:00
15 lines
400 B
TypeScript
15 lines
400 B
TypeScript
/**
|
|
* Migration tracking schema
|
|
*/
|
|
|
|
import { integer, sqliteTable, text } from 'drizzle-orm/sqlite-core'
|
|
|
|
export const migrations = sqliteTable('migrations', {
|
|
version: integer('version').primaryKey(),
|
|
tag: text('tag').notNull(),
|
|
executedAt: integer('executed_at').notNull()
|
|
})
|
|
|
|
export type Migration = typeof migrations.$inferSelect
|
|
export type NewMigration = typeof migrations.$inferInsert
|