fix: remove schema

This commit is contained in:
chenos 2024-08-08 10:55:09 +08:00
parent f8326b5585
commit f696c67b5e

View File

@ -10,301 +10,300 @@
import { defineCollection } from '@nocobase/database'; import { defineCollection } from '@nocobase/database';
export default defineCollection({ export default defineCollection({
"key": "d1za29o7irk", key: 'd1za29o7irk',
"name": "mobileRoutes", name: 'mobileRoutes',
"title": "mobileRoutes", title: 'mobileRoutes',
"inherit": false, inherit: false,
"hidden": false, hidden: false,
"description": null, description: null,
"fields": [ fields: [
{ {
"key": "ymgf0jxu1kg", key: 'ymgf0jxu1kg',
"name": "parentId", name: 'parentId',
"type": "bigInt", type: 'bigInt',
"interface": "integer", interface: 'integer',
"description": null, description: null,
"collectionName": "mobileRoutes", collectionName: 'mobileRoutes',
"parentKey": null, parentKey: null,
"reverseKey": null, reverseKey: null,
"isForeignKey": true, isForeignKey: true,
"uiSchema": { uiSchema: {
"type": "number", type: 'number',
"title": "{{t(\"Parent ID\")}}", title: '{{t("Parent ID")}}',
"x-component": "InputNumber", 'x-component': 'InputNumber',
"x-read-pretty": true 'x-read-pretty': true,
}
},
{
"key": "b07aqgs2shv",
"name": "parent",
"type": "belongsTo",
"interface": "m2o",
"description": null,
"collectionName": "mobileRoutes",
"parentKey": null,
"reverseKey": null,
"foreignKey": "parentId",
"treeParent": true,
"onDelete": "CASCADE",
"uiSchema": {
"title": "{{t(\"Parent\")}}",
"x-component": "AssociationField",
"x-component-props": {
"multiple": false,
"fieldNames": {
"label": "id",
"value": "id"
}
}
}, },
"target": "mobileRoutes",
"targetKey": "id"
}, },
{ {
"key": "p8sxllsgin1", key: 'b07aqgs2shv',
"name": "children", name: 'parent',
"type": "hasMany", type: 'belongsTo',
"interface": "o2m", interface: 'm2o',
"description": null, description: null,
"collectionName": "mobileRoutes", collectionName: 'mobileRoutes',
"parentKey": null, parentKey: null,
"reverseKey": null, reverseKey: null,
"foreignKey": "parentId", foreignKey: 'parentId',
"treeChildren": true, treeParent: true,
"onDelete": "CASCADE", onDelete: 'CASCADE',
"uiSchema": { uiSchema: {
"title": "{{t(\"Children\")}}", title: '{{t("Parent")}}',
"x-component": "AssociationField", 'x-component': 'AssociationField',
"x-component-props": { 'x-component-props': {
"multiple": true, multiple: false,
"fieldNames": { fieldNames: {
"label": "id", label: 'id',
"value": "id" value: 'id',
} },
} },
}, },
"target": "mobileRoutes", target: 'mobileRoutes',
"targetKey": "id", targetKey: 'id',
"sourceKey": "id"
}, },
{ {
"key": "7y601o9bmih", key: 'p8sxllsgin1',
"name": "id", name: 'children',
"type": "bigInt", type: 'hasMany',
"interface": "integer", interface: 'o2m',
"description": null, description: null,
"collectionName": "mobileRoutes", collectionName: 'mobileRoutes',
"parentKey": null, parentKey: null,
"reverseKey": null, reverseKey: null,
"autoIncrement": true, foreignKey: 'parentId',
"primaryKey": true, treeChildren: true,
"allowNull": false, onDelete: 'CASCADE',
"uiSchema": { uiSchema: {
"type": "number", title: '{{t("Children")}}',
"title": "{{t(\"ID\")}}", 'x-component': 'AssociationField',
"x-component": "InputNumber", 'x-component-props': {
"x-read-pretty": true multiple: true,
} fieldNames: {
}, label: 'id',
{ value: 'id',
"key": "m8s9b94amz3", },
"name": "createdAt",
"type": "date",
"interface": "createdAt",
"description": null,
"collectionName": "mobileRoutes",
"parentKey": null,
"reverseKey": null,
"field": "createdAt",
"uiSchema": {
"type": "datetime",
"title": "{{t(\"Created at\")}}",
"x-component": "DatePicker",
"x-component-props": {},
"x-read-pretty": true
}
},
{
"key": "p3p69woziuu",
"name": "createdBy",
"type": "belongsTo",
"interface": "createdBy",
"description": null,
"collectionName": "mobileRoutes",
"parentKey": null,
"reverseKey": null,
"target": "users",
"foreignKey": "createdById",
"uiSchema": {
"type": "object",
"title": "{{t(\"Created by\")}}",
"x-component": "AssociationField",
"x-component-props": {
"fieldNames": {
"value": "id",
"label": "nickname"
}
}, },
"x-read-pretty": true
}, },
"targetKey": "id" target: 'mobileRoutes',
targetKey: 'id',
sourceKey: 'id',
}, },
{ {
"key": "s0gw1blo4hm", key: '7y601o9bmih',
"name": "updatedAt", name: 'id',
"type": "date", type: 'bigInt',
"interface": "updatedAt", interface: 'integer',
"description": null, description: null,
"collectionName": "mobileRoutes", collectionName: 'mobileRoutes',
"parentKey": null, parentKey: null,
"reverseKey": null, reverseKey: null,
"field": "updatedAt", autoIncrement: true,
"uiSchema": { primaryKey: true,
"type": "string", allowNull: false,
"title": "{{t(\"Last updated at\")}}", uiSchema: {
"x-component": "DatePicker", type: 'number',
"x-component-props": {}, title: '{{t("ID")}}',
"x-read-pretty": true 'x-component': 'InputNumber',
} 'x-read-pretty': true,
},
{
"key": "d1l988n09gd",
"name": "updatedBy",
"type": "belongsTo",
"interface": "updatedBy",
"description": null,
"collectionName": "mobileRoutes",
"parentKey": null,
"reverseKey": null,
"target": "users",
"foreignKey": "updatedById",
"uiSchema": {
"type": "object",
"title": "{{t(\"Last updated by\")}}",
"x-component": "AssociationField",
"x-component-props": {
"fieldNames": {
"value": "id",
"label": "nickname"
}
},
"x-read-pretty": true
}, },
"targetKey": "id"
}, },
{ {
"key": "bo7btzkbyan", key: 'm8s9b94amz3',
"name": "title", name: 'createdAt',
"type": "string", type: 'date',
"interface": "input", interface: 'createdAt',
"description": null, description: null,
"collectionName": "mobileRoutes", collectionName: 'mobileRoutes',
"parentKey": null, parentKey: null,
"reverseKey": null, reverseKey: null,
"uiSchema": { field: 'createdAt',
"type": "string", uiSchema: {
"x-component": "Input", type: 'datetime',
"title": "title" title: '{{t("Created at")}}',
} 'x-component': 'DatePicker',
'x-component-props': {},
'x-read-pretty': true,
},
}, },
{ {
"key": "ozl5d8t2d5e", key: 'p3p69woziuu',
"name": "icon", name: 'createdBy',
"type": "string", type: 'belongsTo',
"interface": "input", interface: 'createdBy',
"description": null, description: null,
"collectionName": "mobileRoutes", collectionName: 'mobileRoutes',
"parentKey": null, parentKey: null,
"reverseKey": null, reverseKey: null,
"uiSchema": { target: 'users',
"type": "string", foreignKey: 'createdById',
"x-component": "Input", uiSchema: {
"title": "icon" type: 'object',
} title: '{{t("Created by")}}',
}, 'x-component': 'AssociationField',
{ 'x-component-props': {
"key": "6bbyhv00bp4", fieldNames: {
"name": "schemaUid", value: 'id',
"type": "string", label: 'nickname',
"interface": "input", },
"description": null,
"collectionName": "mobileRoutes",
"parentKey": null,
"reverseKey": null,
"uiSchema": {
"type": "string",
"x-component": "Input",
"title": "schemaUid"
}
},
{
"key": "m0k5qbaktab",
"name": "type",
"type": "string",
"interface": "input",
"description": null,
"collectionName": "mobileRoutes",
"parentKey": null,
"reverseKey": null,
"uiSchema": {
"type": "string",
"x-component": "Input",
"title": "type"
}
},
{
"key": "ssuml1j2v1b",
"name": "options",
"type": "json",
"interface": "json",
"description": null,
"collectionName": "mobileRoutes",
"parentKey": null,
"reverseKey": null,
"defaultValue": null,
"uiSchema": {
"type": "object",
"x-component": "Input.JSON",
"x-component-props": {
"autoSize": {
"minRows": 5
}
}, },
"default": null, 'x-read-pretty': true,
"title": "options" },
} targetKey: 'id',
}, },
{ {
"key": "jjmosjqhz8l", key: 's0gw1blo4hm',
"name": "sort", name: 'updatedAt',
"type": "sort", type: 'date',
"interface": "sort", interface: 'updatedAt',
"description": null, description: null,
"collectionName": "mobileRoutes", collectionName: 'mobileRoutes',
"parentKey": null, parentKey: null,
"reverseKey": null, reverseKey: null,
"uiSchema": { field: 'updatedAt',
"type": "number", uiSchema: {
"x-component": "InputNumber", type: 'string',
"x-component-props": { title: '{{t("Last updated at")}}',
"stringMode": true, 'x-component': 'DatePicker',
"step": "1" 'x-component-props': {},
'x-read-pretty': true,
},
},
{
key: 'd1l988n09gd',
name: 'updatedBy',
type: 'belongsTo',
interface: 'updatedBy',
description: null,
collectionName: 'mobileRoutes',
parentKey: null,
reverseKey: null,
target: 'users',
foreignKey: 'updatedById',
uiSchema: {
type: 'object',
title: '{{t("Last updated by")}}',
'x-component': 'AssociationField',
'x-component-props': {
fieldNames: {
value: 'id',
label: 'nickname',
},
}, },
"x-validator": "integer", 'x-read-pretty': true,
"title": "sort" },
} targetKey: 'id',
} },
{
key: 'bo7btzkbyan',
name: 'title',
type: 'string',
interface: 'input',
description: null,
collectionName: 'mobileRoutes',
parentKey: null,
reverseKey: null,
uiSchema: {
type: 'string',
'x-component': 'Input',
title: 'title',
},
},
{
key: 'ozl5d8t2d5e',
name: 'icon',
type: 'string',
interface: 'input',
description: null,
collectionName: 'mobileRoutes',
parentKey: null,
reverseKey: null,
uiSchema: {
type: 'string',
'x-component': 'Input',
title: 'icon',
},
},
{
key: '6bbyhv00bp4',
name: 'schemaUid',
type: 'string',
interface: 'input',
description: null,
collectionName: 'mobileRoutes',
parentKey: null,
reverseKey: null,
uiSchema: {
type: 'string',
'x-component': 'Input',
title: 'schemaUid',
},
},
{
key: 'm0k5qbaktab',
name: 'type',
type: 'string',
interface: 'input',
description: null,
collectionName: 'mobileRoutes',
parentKey: null,
reverseKey: null,
uiSchema: {
type: 'string',
'x-component': 'Input',
title: 'type',
},
},
{
key: 'ssuml1j2v1b',
name: 'options',
type: 'json',
interface: 'json',
description: null,
collectionName: 'mobileRoutes',
parentKey: null,
reverseKey: null,
defaultValue: null,
uiSchema: {
type: 'object',
'x-component': 'Input.JSON',
'x-component-props': {
autoSize: {
minRows: 5,
},
},
default: null,
title: 'options',
},
},
{
key: 'jjmosjqhz8l',
name: 'sort',
type: 'sort',
interface: 'sort',
description: null,
collectionName: 'mobileRoutes',
parentKey: null,
reverseKey: null,
uiSchema: {
type: 'number',
'x-component': 'InputNumber',
'x-component-props': {
stringMode: true,
step: '1',
},
'x-validator': 'integer',
title: 'sort',
},
},
], ],
"category": [], category: [],
"logging": true, logging: true,
"autoGenId": true, autoGenId: true,
"createdAt": true, createdAt: true,
"createdBy": true, createdBy: true,
"updatedAt": true, updatedAt: true,
"updatedBy": true, updatedBy: true,
"template": "tree", template: 'tree',
"view": false, view: false,
"tree": "adjacencyList", tree: 'adjacencyList',
"schema": "public", filterTargetKey: 'id',
"filterTargetKey": "id"
}); });