Free, simple, and intuitive online database diagram editor and SQL generator.
JavaScript databasedatabase-designdatabase-diagramdatabase-schemadbmldiagram-editoreditorer-diagramerderdiagramindexeddbmariadbmcporacle-databaseoracle-dbpostgresqlschema-designsqlsql-serversqlite
comments for fields
1ilit4bf37c143c0e
diff --git a/src/components/canvas.jsx b/src/components/canvas.jsxindex 98c96acb..d1626a05 100644--- a/src/components/canvas.jsx+++ b/src/components/canvas.jsx@@ -173,6 +173,7 @@ export default function Canvas(props) {unique: true,notNull: true,increment: true,+ comment: "",},],comment: "",diff --git a/src/components/editor_panel.jsx b/src/components/editor_panel.jsxindex ee292ddb..3dff824a 100644--- a/src/components/editor_panel.jsx+++ b/src/components/editor_panel.jsx@@ -92,6 +92,7 @@ export default function EditorPanel(props) {unique: true,notNull: true,increment: true,+ comment: "",},],comment: "",@@ -149,6 +150,7 @@ export default function EditorPanel(props) {unique: true,notNull: true,increment: true,+ comment: "",},],comment: "",diff --git a/src/components/table.jsx b/src/components/table.jsxindex d493de8d..01017cb4 100644--- a/src/components/table.jsx+++ b/src/components/table.jsx@@ -1,5 +1,5 @@import { React, useState } from "react";-import {sqlDataTypes} from "../data/data";+import { sqlDataTypes } from "../data/data";import {IconEdit,IconDelete,@@ -33,6 +33,7 @@ export default function Table(props) {unique: false,notNull: false,increment: false,+ comment: "",});const handleEditField = () => {@@ -50,6 +51,7 @@ export default function Table(props) {unique: false,notNull: false,increment: false,+ comment: "",});setEditFieldVisible(-1);};@@ -71,6 +73,7 @@ export default function Table(props) {unique: false,notNull: false,increment: false,+ comment: "",});setVisible(false);};@@ -200,6 +203,10 @@ export default function Table(props) {<strong>Default :</strong>{" "}{e.default === "" ? "Not set" : e.default}</p>+ <p className="text-slate-600">+ <strong>Comment :</strong>{" "}+ {e.default === "" ? "Not comment" : e.comment}+ </p></div>}position="right"@@ -282,7 +289,9 @@ export default function Table(props) {);})}<div className="h-[36px] p-2">- { props.tableData.comment===""? "No comment": props.tableData.comment}+ {props.tableData.comment === ""+ ? "No comment"+ : props.tableData.comment}</div></div></foreignObject>@@ -325,6 +334,7 @@ export default function Table(props) {};})}></Form.Select>+ <Form.Input field="comment" label="Comment" className="w-full" /><div className="flex justify-around mt-2"><Checkboxvalue="primary"@@ -426,6 +436,16 @@ export default function Table(props) {: ""}></Form.Select>+ <Form.Input+ field="comment"+ label="Comment"+ trigger="blur"+ initValue={+ editFieldVisible !== -1+ ? props.tableData.fields[editFieldVisible].comment+ : ""+ }+ /><div className="flex justify-around mt-2"><Checkboxvalue="primary"