feat: 添加数据库包及 UUID 支持,初始化类型检查与字段工具

- 将 typecheck 脚本改为使用 tsc --noEmit,并添加 @furtherverse/tsconfig 工作区依赖。
- 添加新的本地包 @furtherverse/database 并更新 uuid 依赖至 13.0.0 版本,同时修复相关依赖引用。
- 添加 uuid 依赖以支持生成唯一标识符功能
- 初始化数据库包的配置,设置模块导入导出路径并配置类型检查与格式化脚本。
- 导出 todo 模式定义文件中的所有内容
- 添加待办事项表结构,包含自动生成字段、标题和完成状态字段。
- 添加用于生成主键、创建和更新时间戳字段的实用工具函数,并提供自动生成字段及其键的映射。
- 导出字段工具模块中的所有内容
- 添加 SQLite 数据库连接初始化功能
- 添加数据库包的 TypeScript 配置并继承基础配置文件
This commit is contained in:
2026-01-21 15:42:49 +08:00
parent 653a144736
commit 28d0c9ad3d
10 changed files with 118 additions and 4 deletions

View File

@@ -0,0 +1,24 @@
{
"name": "@furtherverse/database",
"version": "1.0.0",
"private": true,
"type": "module",
"imports": {
"#*": "./src/*"
},
"exports": {
".": "./src/index.ts",
"./*": "./src/*.ts"
},
"scripts": {
"fix": "biome check --write",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"drizzle-orm": "catalog:",
"uuid": "catalog:"
},
"devDependencies": {
"@furtherverse/tsconfig": "workspace:*"
}
}