2018-11-26 20:04:53 +01:00
|
|
|
const Sequelize = require("sequelize");
|
2018-11-27 16:35:55 +01:00
|
|
|
module.exports = sequelize =>
|
|
|
|
sequelize.define("integrations", {
|
|
|
|
chatID: { type: Sequelize.INTEGER, allowNull: false, unique: "com"},
|
|
|
|
repoURL: {type: Sequelize.STRING, allowNull: false, unique: "com"},
|
|
|
|
chatType: {type: Sequelize.STRING},
|
|
|
|
issues: {type: Sequelize.BOOLEAN, defaultValue: false},
|
|
|
|
pullRequests: {type: Sequelize.BOOLEAN, defaultValue: false},
|
|
|
|
commits: {type: Sequelize.BOOLEAN, defaultValue: true},
|
|
|
|
});
|