API > @blocksuite/blocks > DataViewBlockSchema
Variable: DataViewBlockSchema ​
const
DataViewBlockSchema:object
Type declaration ​
model
​
model: {
flavour
:"affine:data-view"
;props
:PropsGetter
<Props
>;role
:"root"
|"hub"
|"content"
;} & {children
:string
[];parent
:string
[];role
:"hub"
;version
:number
;}
model.flavour
​flavour:
"affine:data-view"
model.props
​props:
PropsGetter
<Props
>
model.role
​role:
"root"
|"hub"
|"content"
model.children
​children:
string
[]
model.parent
​parent:
string
[]
model.role
​role:
"hub"
='hub'
model.version
​version:
number
=1
onUpgrade
​
optional
onUpgrade:function
Parameters ​
Parameter | Type |
---|---|
data | Props |
previousVersion | number |
latestVersion | number |
Returns ​
void
transformer
​
optional
transformer:function
Returns ​
BaseBlockTransformer
< Props
>
version
​
version:
number
Defined In ​
packages/blocks/src/data-view-block/data-view-model.ts:73