This commit is contained in:
2026-01-05 02:02:35 +08:00
parent 2472cb0059
commit 2621d0229f
13 changed files with 1191 additions and 96 deletions

View File

@@ -17,7 +17,7 @@ export const xhsNote = sqliteTable('xhs_note', {
data: text('data'),
tags: text('tags'),
status: text('status'), // 正常笔记,归档,禁止用户,删除
status: text('status'), // 正常笔记,归档,禁止用户,删除,不相关
authorUrl: text('author_url'),
cover: text('cover'),
@@ -71,3 +71,13 @@ export const xhsUser = sqliteTable('xhs_user', {
index('idx_xhs_user_tags').on(table.tags),
index('idx_xhs_user_bun_tags').on(table.bunTags),
]));
export const xhsTags = sqliteTable('xhs_tags', {
id: text('id').primaryKey().default(randomUUID()),
title: text('title').notNull(),
description: text('description'),
createdAt: integer('created_at').default(Date.now()).notNull(),
updatedAt: integer('updated_at').default(Date.now()).notNull(),
}, (table) => ([
index('idx_xhs_tags_title').on(table.title),
]));