mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-22 04:26:23 +08:00
feat(core): init organize (#7456)
This commit is contained in:
@@ -0,0 +1 @@
|
||||
export { AFFiNE_DB_SCHEMA } from './schema';
|
||||
@@ -0,0 +1,14 @@
|
||||
import { nanoid } from 'nanoid';
|
||||
|
||||
import { type DBSchemaBuilder, f } from '../../../orm';
|
||||
|
||||
export const AFFiNE_DB_SCHEMA = {
|
||||
folders: {
|
||||
id: f.string().primaryKey().optional().default(nanoid),
|
||||
parentId: f.string().optional(),
|
||||
data: f.string(),
|
||||
type: f.string(),
|
||||
index: f.string(),
|
||||
},
|
||||
} as const satisfies DBSchemaBuilder;
|
||||
export type AFFiNE_DB_SCHEMA = typeof AFFiNE_DB_SCHEMA;
|
||||
Reference in New Issue
Block a user