BlockSuite API Documentation / @blocksuite/blocks / DatabaseBlockSchema
Variable: DatabaseBlockSchema
const
DatabaseBlockSchema:object
Type declaration
model
model:
object
&object
Type declaration
flavour
flavour:
"affine:database"
props
props:
PropsGetter
<DatabaseBlockProps
>
Type declaration
children
children:
string
[]
parent
parent:
string
[]
role
role:
"hub"
='hub'
version
version:
number
=3
onUpgrade()?
optional
onUpgrade: (data
,previousVersion
,latestVersion
) =>void
Parameters
• data: DatabaseBlockProps
• previousVersion: number
• latestVersion: number
Returns
void
transformer()?
optional
transformer: () =>BaseBlockTransformer
<DatabaseBlockProps
>
Returns
BaseBlockTransformer
<DatabaseBlockProps
>
version
version:
number
Source
packages/blocks/src/database-block/database-model.ts:234