tachybase_todo/packages/plugins/@tachybase/plugin-graph-collection-manager/src/server/collections/graphPositions.ts
sealday ede7ead8b1 chore(version): release v0.21.34 (#1045)
Co-authored-by: sealday <sealday@gmail.com>
Reviewed-on: daoyoucloud/tachybase#1045
2024-05-24 01:06:06 +08:00

23 lines
368 B
TypeScript

import { defineCollection } from '@tachybase/database';
export default defineCollection({
dumpRules: 'required',
name: 'graphPositions',
shared: true,
fields: [
{
type: 'string',
name: 'collectionName',
unique: true,
},
{
type: 'double',
name: 'x',
},
{
type: 'double',
name: 'y',
},
],
});