Made the domainName the primary key in the Domain model
This commit is contained in:
@ -4,6 +4,7 @@ const db = require("../config/database");
|
||||
module.exports = db.define("domains", {
|
||||
domainName: {
|
||||
type: Sequelize.STRING,
|
||||
primaryKey: true,
|
||||
allowNull: false
|
||||
}
|
||||
});
|
Reference in New Issue
Block a user