mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-19 19:16:29 +08:00
0f9d11fd5c
close AF-1563
43 lines
818 B
TypeScript
43 lines
818 B
TypeScript
import type { DocCustomPropertyInfo } from '../db';
|
|
|
|
/**
|
|
* default built-in custom property, user can update and delete them
|
|
*
|
|
* 'id' and 'type' is request, 'index' is a manually maintained incremental key.
|
|
*/
|
|
export const BUILT_IN_CUSTOM_PROPERTY_TYPE = [
|
|
{
|
|
id: 'tags',
|
|
type: 'tags',
|
|
index: 'a0000001',
|
|
},
|
|
{
|
|
id: 'docPrimaryMode',
|
|
type: 'docPrimaryMode',
|
|
show: 'always-hide',
|
|
index: 'a0000002',
|
|
},
|
|
{
|
|
id: 'journal',
|
|
type: 'journal',
|
|
show: 'always-hide',
|
|
index: 'a0000003',
|
|
},
|
|
{
|
|
id: 'createdAt',
|
|
type: 'createdAt',
|
|
index: 'a0000004',
|
|
},
|
|
{
|
|
id: 'updatedAt',
|
|
type: 'updatedAt',
|
|
index: 'a0000005',
|
|
},
|
|
{
|
|
id: 'createdBy',
|
|
type: 'createdBy',
|
|
show: 'always-hide',
|
|
index: 'a0000006',
|
|
},
|
|
] as DocCustomPropertyInfo[];
|