wip(TRUEREF-0018): commit version-scoped indexing work
This commit is contained in:
@@ -37,6 +37,7 @@ export const repositoryVersions = sqliteTable('repository_versions', {
|
||||
.references(() => repositories.id, { onDelete: 'cascade' }),
|
||||
tag: text('tag').notNull(), // git tag or branch name
|
||||
title: text('title'),
|
||||
commitHash: text('commit_hash'), // immutable commit SHA-1 resolved from tag
|
||||
state: text('state', {
|
||||
enum: ['pending', 'indexing', 'indexed', 'error']
|
||||
})
|
||||
@@ -135,7 +136,7 @@ export const repositoryConfigs = sqliteTable('repository_configs', {
|
||||
excludeFiles: text('exclude_files', { mode: 'json' }).$type<string[]>(),
|
||||
rules: text('rules', { mode: 'json' }).$type<string[]>(),
|
||||
previousVersions: text('previous_versions', { mode: 'json' }).$type<
|
||||
{ tag: string; title: string }[]
|
||||
{ tag: string; title: string; commitHash?: string }[]
|
||||
>(),
|
||||
updatedAt: integer('updated_at', { mode: 'timestamp' }).notNull()
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user