Skip to content

Data Schema

Kyung Deok Si edited this page Nov 30, 2020 · 3 revisions
enum BlockType {
	Text,
	Heading1,
	Heading2,
	Heading3,
	BulletedList,
	NumberedList,
	ToggleList,
	Quote,
	Page,
	Grid,
	...
}

interface Block {
	id: string,
	type: BlockType,
	value: string,
	children: Array<Block>,
	option: any
}

interface Page {
	id: string,
	title: string,
	blockIdList: Array<string>
}

interface User {
	id: string,
	password: sting,
	ownedPageIdList: Array<Page>,
	editablePageIdList: Array<Page>,
	readablePageIdList: Array<Page>,
	oAuths: Array<OAuth>
}

interface OAuth {
	...
}