fix: data source collection dump rules

This commit is contained in:
Chareice 2024-03-04 20:44:00 +08:00
parent f619c4e6c0
commit c1c4d93dce
No known key found for this signature in database
4 changed files with 4 additions and 0 deletions

View File

@ -3,6 +3,7 @@ import { defineCollection } from '@nocobase/database';
export default defineCollection({ export default defineCollection({
name: 'dataSourcesCollections', name: 'dataSourcesCollections',
model: 'DataSourcesCollectionModel', model: 'DataSourcesCollectionModel',
dumpRules: 'required',
shared: true, shared: true,
autoGenId: false, autoGenId: false,
timestamps: false, timestamps: false,

View File

@ -3,6 +3,7 @@ import { defineCollection } from '@nocobase/database';
export default defineCollection({ export default defineCollection({
name: 'dataSourcesFields', name: 'dataSourcesFields',
model: 'DataSourcesFieldModel', model: 'DataSourcesFieldModel',
dumpRules: 'required',
shared: true, shared: true,
autoGenId: false, autoGenId: false,
timestamps: false, timestamps: false,

View File

@ -2,6 +2,7 @@ import { defineCollection } from '@nocobase/database';
export default defineCollection({ export default defineCollection({
name: 'dataSourcesRoles', name: 'dataSourcesRoles',
dumpRules: 'required',
autoGenId: false, autoGenId: false,
timestamps: false, timestamps: false,
model: 'DataSourcesRolesModel', model: 'DataSourcesRolesModel',

View File

@ -5,6 +5,7 @@ export default defineCollection({
model: 'DataSourceModel', model: 'DataSourceModel',
autoGenId: false, autoGenId: false,
shared: true, shared: true,
dumpRules: 'required',
fields: [ fields: [
{ {
type: 'string', type: 'string',