Made the domainName the primary key in the Domain model

This commit is contained in:
Mathias committed 2022-12-31 22:41:54 +01:00
1 parent 0310614509
commit d2df47663d
1 file changed
+1
+1
View File
@@ -4,6 +4,7 @@ const db = require("../config/database");
module.exports = db.define("domains", {
domainName: {
type: Sequelize.STRING,
primaryKey: true,
allowNull: false
}
});