2023-12-12 07:14:29 +08:00
|
|
|
export const template4 = {
|
|
|
|
tables: [
|
|
|
|
{
|
|
|
|
id: 0,
|
|
|
|
name: "table_0",
|
|
|
|
x: 23,
|
|
|
|
y: 26,
|
|
|
|
fields: [
|
|
|
|
{
|
|
|
|
name: "id",
|
|
|
|
type: "INT",
|
|
|
|
default: "",
|
|
|
|
check: "",
|
|
|
|
primary: true,
|
|
|
|
unique: true,
|
|
|
|
notNull: true,
|
|
|
|
increment: true,
|
|
|
|
comment: "",
|
|
|
|
id: 0,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "name",
|
|
|
|
type: "VARCHAR",
|
|
|
|
default: "",
|
|
|
|
check: "",
|
|
|
|
primary: false,
|
|
|
|
unique: false,
|
|
|
|
notNull: false,
|
|
|
|
increment: false,
|
|
|
|
comment: "",
|
|
|
|
id: 1,
|
|
|
|
size: 255,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
comment: "",
|
|
|
|
indices: [],
|
|
|
|
color: "#3cde7d",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 1,
|
|
|
|
name: "table_1",
|
|
|
|
x: 21,
|
|
|
|
y: 281,
|
|
|
|
fields: [
|
|
|
|
{
|
|
|
|
name: "id",
|
|
|
|
type: "INT",
|
|
|
|
default: "",
|
|
|
|
check: "",
|
|
|
|
primary: true,
|
|
|
|
unique: true,
|
|
|
|
notNull: true,
|
|
|
|
increment: true,
|
|
|
|
comment: "",
|
|
|
|
id: 0,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "age",
|
|
|
|
type: "INT",
|
|
|
|
default: "",
|
|
|
|
check: "",
|
|
|
|
primary: false,
|
|
|
|
unique: false,
|
|
|
|
notNull: false,
|
|
|
|
increment: false,
|
|
|
|
comment: "",
|
|
|
|
id: 1,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "t_id",
|
|
|
|
type: "INT",
|
|
|
|
default: "",
|
|
|
|
check: "",
|
|
|
|
primary: false,
|
|
|
|
unique: false,
|
|
|
|
notNull: false,
|
|
|
|
increment: false,
|
|
|
|
comment: "",
|
|
|
|
id: 2,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
comment: "",
|
|
|
|
indices: [],
|
|
|
|
color: "#ffe159",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 2,
|
|
|
|
name: "table_2",
|
|
|
|
x: 25,
|
|
|
|
y: 171,
|
|
|
|
fields: [
|
|
|
|
{
|
|
|
|
name: "id",
|
|
|
|
type: "INT",
|
|
|
|
default: "",
|
|
|
|
check: "",
|
|
|
|
primary: true,
|
|
|
|
unique: true,
|
|
|
|
notNull: true,
|
|
|
|
increment: true,
|
|
|
|
comment: "",
|
|
|
|
id: 0,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
comment: "",
|
|
|
|
indices: [],
|
|
|
|
color: "#7c4af0",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 3,
|
|
|
|
name: "table_3",
|
|
|
|
x: 258,
|
|
|
|
y: 28,
|
|
|
|
fields: [
|
|
|
|
{
|
|
|
|
name: "id",
|
|
|
|
type: "INT",
|
|
|
|
default: "",
|
|
|
|
check: "",
|
|
|
|
primary: true,
|
|
|
|
unique: true,
|
|
|
|
notNull: true,
|
|
|
|
increment: true,
|
|
|
|
comment: "",
|
|
|
|
id: 0,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
comment: "",
|
|
|
|
indices: [],
|
|
|
|
color: "#175e7a",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 4,
|
|
|
|
name: "table_4",
|
|
|
|
x: 262,
|
|
|
|
y: 140,
|
|
|
|
fields: [
|
|
|
|
{
|
|
|
|
name: "id",
|
|
|
|
type: "INT",
|
|
|
|
default: "",
|
|
|
|
check: "",
|
|
|
|
primary: true,
|
|
|
|
unique: true,
|
|
|
|
notNull: true,
|
|
|
|
increment: true,
|
|
|
|
comment: "",
|
|
|
|
id: 0,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "quantity",
|
|
|
|
type: "INT",
|
|
|
|
default: "",
|
|
|
|
check: "",
|
|
|
|
primary: false,
|
|
|
|
unique: false,
|
|
|
|
notNull: false,
|
|
|
|
increment: false,
|
|
|
|
comment: "",
|
|
|
|
id: 1,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
comment: "",
|
|
|
|
indices: [],
|
|
|
|
color: "#175e7a",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 5,
|
|
|
|
name: "table_5",
|
|
|
|
x: 552,
|
|
|
|
y: 333,
|
|
|
|
fields: [
|
|
|
|
{
|
|
|
|
name: "id",
|
|
|
|
type: "INT",
|
|
|
|
default: "",
|
|
|
|
check: "",
|
|
|
|
primary: true,
|
|
|
|
unique: true,
|
|
|
|
notNull: true,
|
|
|
|
increment: true,
|
|
|
|
comment: "",
|
|
|
|
id: 0,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
comment: "",
|
|
|
|
indices: [],
|
|
|
|
color: "#7d9dff",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 6,
|
|
|
|
name: "table_6",
|
|
|
|
x: 553,
|
|
|
|
y: 127,
|
|
|
|
fields: [
|
|
|
|
{
|
|
|
|
name: "id",
|
|
|
|
type: "INT",
|
|
|
|
default: "",
|
|
|
|
check: "",
|
|
|
|
primary: true,
|
|
|
|
unique: true,
|
|
|
|
notNull: true,
|
|
|
|
increment: true,
|
|
|
|
comment: "",
|
|
|
|
id: 0,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "field",
|
|
|
|
type: "VARCHAR",
|
|
|
|
default: "",
|
|
|
|
check: "",
|
|
|
|
primary: false,
|
|
|
|
unique: false,
|
|
|
|
notNull: false,
|
|
|
|
increment: false,
|
|
|
|
comment: "",
|
|
|
|
id: 1,
|
|
|
|
size: 255,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "type",
|
|
|
|
type: "ENUM",
|
|
|
|
default: "",
|
|
|
|
check: "",
|
|
|
|
primary: false,
|
|
|
|
unique: false,
|
|
|
|
notNull: false,
|
|
|
|
increment: false,
|
|
|
|
comment: "",
|
|
|
|
id: 2,
|
|
|
|
size: "",
|
|
|
|
values: ["hi", "hello"],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
comment: "",
|
|
|
|
indices: [],
|
|
|
|
color: "#a751e8",
|
|
|
|
},
|
|
|
|
],
|
|
|
|
relationships: [
|
|
|
|
{
|
|
|
|
startTableId: 1,
|
|
|
|
startFieldId: 2,
|
|
|
|
endTableId: 0,
|
|
|
|
endFieldId: 0,
|
|
|
|
startX: 36,
|
|
|
|
startY: 422,
|
|
|
|
endX: 38,
|
|
|
|
endY: 95,
|
|
|
|
name: "table_1_t_id_fk",
|
|
|
|
cardinality: "One to one",
|
|
|
|
updateConstraint: "No action",
|
|
|
|
deleteConstraint: "No action",
|
|
|
|
mandatory: false,
|
|
|
|
id: 0,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
startTableId: 4,
|
|
|
|
startFieldId: 0,
|
|
|
|
endTableId: 5,
|
|
|
|
endFieldId: 0,
|
|
|
|
startX: 277,
|
|
|
|
startY: 209,
|
|
|
|
endX: 567,
|
|
|
|
endY: 402,
|
|
|
|
name: "table_4_id_fk",
|
|
|
|
cardinality: "One to one",
|
|
|
|
updateConstraint: "No action",
|
|
|
|
deleteConstraint: "No action",
|
|
|
|
mandatory: false,
|
|
|
|
id: 1,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
notes: [
|
|
|
|
{
|
|
|
|
id: 0,
|
|
|
|
x: 558,
|
|
|
|
y: 21,
|
|
|
|
title: "note_0",
|
|
|
|
content: "hi",
|
|
|
|
color: "#fcf7ac",
|
|
|
|
height: 65,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 1,
|
|
|
|
x: 268,
|
|
|
|
y: 308,
|
|
|
|
title: "note_1",
|
|
|
|
content: "",
|
|
|
|
color: "#c7d2ff",
|
|
|
|
height: 88,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
subjectAreas: [
|
|
|
|
{
|
|
|
|
id: 0,
|
|
|
|
name: "area_0",
|
|
|
|
x: -10,
|
|
|
|
y: -9,
|
|
|
|
width: 855,
|
|
|
|
height: 471,
|
|
|
|
color: "#7d9dff",
|
|
|
|
},
|
|
|
|
],
|
|
|
|
types: [],
|
|
|
|
title: "Template 4",
|
|
|
|
description:
|
|
|
|
"Lorem ipsum dolor sit amet consectetur adipisicing elit. Veniam nulla illo pariatur nostrum.",
|
2023-12-19 10:36:10 +08:00
|
|
|
custom: 0,
|
2023-12-12 07:14:29 +08:00
|
|
|
};
|