mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-09 23:49:27 +08:00
fix: remove schema
This commit is contained in:
parent
f8326b5585
commit
f696c67b5e
@ -10,301 +10,300 @@
|
||||
import { defineCollection } from '@nocobase/database';
|
||||
|
||||
export default defineCollection({
|
||||
"key": "d1za29o7irk",
|
||||
"name": "mobileRoutes",
|
||||
"title": "mobileRoutes",
|
||||
"inherit": false,
|
||||
"hidden": false,
|
||||
"description": null,
|
||||
"fields": [
|
||||
key: 'd1za29o7irk',
|
||||
name: 'mobileRoutes',
|
||||
title: 'mobileRoutes',
|
||||
inherit: false,
|
||||
hidden: false,
|
||||
description: null,
|
||||
fields: [
|
||||
{
|
||||
"key": "ymgf0jxu1kg",
|
||||
"name": "parentId",
|
||||
"type": "bigInt",
|
||||
"interface": "integer",
|
||||
"description": null,
|
||||
"collectionName": "mobileRoutes",
|
||||
"parentKey": null,
|
||||
"reverseKey": null,
|
||||
"isForeignKey": true,
|
||||
"uiSchema": {
|
||||
"type": "number",
|
||||
"title": "{{t(\"Parent ID\")}}",
|
||||
"x-component": "InputNumber",
|
||||
"x-read-pretty": true
|
||||
}
|
||||
key: 'ymgf0jxu1kg',
|
||||
name: 'parentId',
|
||||
type: 'bigInt',
|
||||
interface: 'integer',
|
||||
description: null,
|
||||
collectionName: 'mobileRoutes',
|
||||
parentKey: null,
|
||||
reverseKey: null,
|
||||
isForeignKey: true,
|
||||
uiSchema: {
|
||||
type: 'number',
|
||||
title: '{{t("Parent ID")}}',
|
||||
'x-component': 'InputNumber',
|
||||
'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"
|
||||
}
|
||||
}
|
||||
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"
|
||||
},
|
||||
},
|
||||
target: 'mobileRoutes',
|
||||
targetKey: 'id',
|
||||
},
|
||||
{
|
||||
"key": "p8sxllsgin1",
|
||||
"name": "children",
|
||||
"type": "hasMany",
|
||||
"interface": "o2m",
|
||||
"description": null,
|
||||
"collectionName": "mobileRoutes",
|
||||
"parentKey": null,
|
||||
"reverseKey": null,
|
||||
"foreignKey": "parentId",
|
||||
"treeChildren": true,
|
||||
"onDelete": "CASCADE",
|
||||
"uiSchema": {
|
||||
"title": "{{t(\"Children\")}}",
|
||||
"x-component": "AssociationField",
|
||||
"x-component-props": {
|
||||
"multiple": true,
|
||||
"fieldNames": {
|
||||
"label": "id",
|
||||
"value": "id"
|
||||
}
|
||||
}
|
||||
key: 'p8sxllsgin1',
|
||||
name: 'children',
|
||||
type: 'hasMany',
|
||||
interface: 'o2m',
|
||||
description: null,
|
||||
collectionName: 'mobileRoutes',
|
||||
parentKey: null,
|
||||
reverseKey: null,
|
||||
foreignKey: 'parentId',
|
||||
treeChildren: true,
|
||||
onDelete: 'CASCADE',
|
||||
uiSchema: {
|
||||
title: '{{t("Children")}}',
|
||||
'x-component': 'AssociationField',
|
||||
'x-component-props': {
|
||||
multiple: true,
|
||||
fieldNames: {
|
||||
label: 'id',
|
||||
value: 'id',
|
||||
},
|
||||
"target": "mobileRoutes",
|
||||
"targetKey": "id",
|
||||
"sourceKey": "id"
|
||||
},
|
||||
},
|
||||
target: 'mobileRoutes',
|
||||
targetKey: 'id',
|
||||
sourceKey: 'id',
|
||||
},
|
||||
{
|
||||
"key": "7y601o9bmih",
|
||||
"name": "id",
|
||||
"type": "bigInt",
|
||||
"interface": "integer",
|
||||
"description": null,
|
||||
"collectionName": "mobileRoutes",
|
||||
"parentKey": null,
|
||||
"reverseKey": null,
|
||||
"autoIncrement": true,
|
||||
"primaryKey": true,
|
||||
"allowNull": false,
|
||||
"uiSchema": {
|
||||
"type": "number",
|
||||
"title": "{{t(\"ID\")}}",
|
||||
"x-component": "InputNumber",
|
||||
"x-read-pretty": true
|
||||
}
|
||||
key: '7y601o9bmih',
|
||||
name: 'id',
|
||||
type: 'bigInt',
|
||||
interface: 'integer',
|
||||
description: null,
|
||||
collectionName: 'mobileRoutes',
|
||||
parentKey: null,
|
||||
reverseKey: null,
|
||||
autoIncrement: true,
|
||||
primaryKey: true,
|
||||
allowNull: false,
|
||||
uiSchema: {
|
||||
type: 'number',
|
||||
title: '{{t("ID")}}',
|
||||
'x-component': 'InputNumber',
|
||||
'x-read-pretty': true,
|
||||
},
|
||||
},
|
||||
{
|
||||
"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: '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"
|
||||
}
|
||||
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"
|
||||
'x-read-pretty': true,
|
||||
},
|
||||
targetKey: 'id',
|
||||
},
|
||||
{
|
||||
"key": "s0gw1blo4hm",
|
||||
"name": "updatedAt",
|
||||
"type": "date",
|
||||
"interface": "updatedAt",
|
||||
"description": null,
|
||||
"collectionName": "mobileRoutes",
|
||||
"parentKey": null,
|
||||
"reverseKey": null,
|
||||
"field": "updatedAt",
|
||||
"uiSchema": {
|
||||
"type": "string",
|
||||
"title": "{{t(\"Last updated at\")}}",
|
||||
"x-component": "DatePicker",
|
||||
"x-component-props": {},
|
||||
"x-read-pretty": true
|
||||
}
|
||||
key: 's0gw1blo4hm',
|
||||
name: 'updatedAt',
|
||||
type: 'date',
|
||||
interface: 'updatedAt',
|
||||
description: null,
|
||||
collectionName: 'mobileRoutes',
|
||||
parentKey: null,
|
||||
reverseKey: null,
|
||||
field: 'updatedAt',
|
||||
uiSchema: {
|
||||
type: 'string',
|
||||
title: '{{t("Last updated at")}}',
|
||||
'x-component': 'DatePicker',
|
||||
'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"
|
||||
}
|
||||
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"
|
||||
'x-read-pretty': true,
|
||||
},
|
||||
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: '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: '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: '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: '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
|
||||
}
|
||||
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',
|
||||
},
|
||||
"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"
|
||||
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',
|
||||
},
|
||||
},
|
||||
"x-validator": "integer",
|
||||
"title": "sort"
|
||||
}
|
||||
}
|
||||
],
|
||||
"category": [],
|
||||
"logging": true,
|
||||
"autoGenId": true,
|
||||
"createdAt": true,
|
||||
"createdBy": true,
|
||||
"updatedAt": true,
|
||||
"updatedBy": true,
|
||||
"template": "tree",
|
||||
"view": false,
|
||||
"tree": "adjacencyList",
|
||||
"schema": "public",
|
||||
"filterTargetKey": "id"
|
||||
category: [],
|
||||
logging: true,
|
||||
autoGenId: true,
|
||||
createdAt: true,
|
||||
createdBy: true,
|
||||
updatedAt: true,
|
||||
updatedBy: true,
|
||||
template: 'tree',
|
||||
view: false,
|
||||
tree: 'adjacencyList',
|
||||
filterTargetKey: 'id',
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user