Junyi c453612e11
fix(plugin-workflow-aggregate): add precision process after query (#6358)
* fix(plugin-workflow-aggregate): add precision process after query

* test(plugin-workflow-aggregate): add test cases

* fix(evaluators): fix test cases

* fix(plugin-workflow-aggregate): fix e2e test case

* fix(plugin-workflow-aggregate): fix test cases
2025-03-05 21:55:47 +08:00

63 lines
1.1 KiB
TypeScript

/**
* This file is part of the NocoBase (R) project.
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
* Authors: NocoBase Team.
*
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
* For more information, please refer to: https://www.nocobase.com/agreement.
*/
import { CollectionOptions } from '@nocobase/database';
export default {
name: 'posts',
createdBy: true,
updatedBy: true,
fields: [
{
type: 'string',
name: 'title',
},
{
type: 'boolean',
name: 'published',
defaultValue: false,
},
{
type: 'integer',
name: 'read',
defaultValue: 0,
},
{
type: 'belongsTo',
name: 'category',
},
{
type: 'hasMany',
name: 'comments',
},
{
type: 'belongsToMany',
name: 'tags',
},
{
type: 'integer',
name: 'read',
defaultValue: 0,
},
{
type: 'double',
name: 'score',
defaultValue: 0,
},
{
type: 'date',
name: 'createdAt',
},
{
type: 'date',
name: 'updatedAt',
},
],
} as CollectionOptions;