linkShortener: Count clicks

This commit is contained in:
divlo
2020-08-04 12:12:27 +02:00
parent 9f068614f5
commit 55c467f1e4
4 changed files with 23 additions and 3 deletions

View File

@ -9,5 +9,10 @@ module.exports = sequelize.define('short_link', {
shortcut: {
type: Sequelize.TEXT,
allowNull: false
},
count: {
type: Sequelize.INTEGER,
allowNull: false,
defaultValue: 0
}
})