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", {
|
module.exports = db.define("domains", {
|
||||||
domainName: {
|
domainName: {
|
||||||
type: Sequelize.STRING,
|
type: Sequelize.STRING,
|
||||||
|
primaryKey: true,
|
||||||
allowNull: false
|
allowNull: false
|
||||||
}
|
}
|
||||||
});
|
});
|
Reference in New Issue
Block a user