mirror of
https://github.com/penxio/penx.git
synced 2026-04-19 03:03:06 -04:00
feat: support encrypted
This commit is contained in:
@@ -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?
|
||||
|
||||
@@ -11,6 +11,7 @@ export function getNewSpace(data: Partial<ISpace>): ISpace {
|
||||
// version: 0,
|
||||
isActive: true,
|
||||
isCloud: false,
|
||||
encrypted: false,
|
||||
color: getRandomColor(),
|
||||
activeNodeIds: [],
|
||||
nodeSnapshot: {
|
||||
|
||||
@@ -15,6 +15,8 @@ export interface ISpace {
|
||||
|
||||
activeNodeIds: string[]
|
||||
|
||||
encrypted: boolean
|
||||
|
||||
// for cloud
|
||||
nodeSnapshot: {
|
||||
version: number
|
||||
|
||||
Reference in New Issue
Block a user