Made the domainName the primary key in the Domain model

This commit is contained in:
2022-12-31 22:41:54 +01:00
parent 0310614509
commit d2df47663d

View File

@ -4,6 +4,7 @@ const db = require("../config/database");
module.exports = db.define("domains", {
domainName: {
type: Sequelize.STRING,
primaryKey: true,
allowNull: false
}
});