mirror of
https://github.com/ItzCrazyKns/Perplexica.git
synced 2025-12-04 02:38:14 +00:00
feat(app): lint & beautify
This commit is contained in:
@@ -6,14 +6,18 @@ export const messages = sqliteTable('messages', {
|
||||
id: integer('id').primaryKey(),
|
||||
role: text('type', { enum: ['assistant', 'user', 'source'] }).notNull(),
|
||||
chatId: text('chatId').notNull(),
|
||||
createdAt: text('createdAt').notNull().default(sql`CURRENT_TIMESTAMP`),
|
||||
createdAt: text('createdAt')
|
||||
.notNull()
|
||||
.default(sql`CURRENT_TIMESTAMP`),
|
||||
messageId: text('messageId').notNull(),
|
||||
|
||||
content: text('content'),
|
||||
|
||||
sources: text('sources', {
|
||||
mode: 'json',
|
||||
}).$type<Document[]>().default(sql`'[]'`),
|
||||
})
|
||||
.$type<Document[]>()
|
||||
.default(sql`'[]'`),
|
||||
});
|
||||
|
||||
interface File {
|
||||
|
||||
Reference in New Issue
Block a user