feat: support encrypted

This commit is contained in:
0xzion
2023-11-24 22:50:01 +08:00
parent e5d462986f
commit eb3dd1f5c5
3 changed files with 13 additions and 8 deletions

View File

@@ -78,14 +78,16 @@ model SharedDoc {
}
model Space {
id String @id @default(uuid())
name String
description String? @db.Text
subdomain String? @unique
customDomain String? @unique
sort Int @default(0)
color String
isActive Boolean @default(true)
id String @id @default(uuid())
name String
description String? @db.Text
subdomain String? @unique
customDomain String? @unique
sort Int @default(0)
color String
isActive Boolean @default(true)
encrypted Boolean @default(false)
activeNodeIds Json?
nodeSnapshot Json?

View File

@@ -11,6 +11,7 @@ export function getNewSpace(data: Partial<ISpace>): ISpace {
// version: 0,
isActive: true,
isCloud: false,
encrypted: false,
color: getRandomColor(),
activeNodeIds: [],
nodeSnapshot: {

View File

@@ -15,6 +15,8 @@ export interface ISpace {
activeNodeIds: string[]
encrypted: boolean
// for cloud
nodeSnapshot: {
version: number