Skip to content

Free, simple, and intuitive online database diagram editor and SQL generator.

Deselect UNIQUE checkbox in Primary Key of a new table, because primary key already has a unique index by default. (#981)

Netluke Websa913140e6f46
diff --git a/src/context/DiagramContext.jsx b/src/context/DiagramContext.jsx
index bdb144b5..e21edab0 100644
--- a/src/context/DiagramContext.jsx
+++ b/src/context/DiagramContext.jsx
@@ -31,7 +31,8 @@ export default function DiagramContextProvider({ children }) {
default: "",
check: "",
primary: true,
- unique: true,
+ unique: false,
+ unsigned: true,
notNull: true,
increment: true,
comment: "",