19 lines
431 B
JavaScript
19 lines
431 B
JavaScript
const Sequelize = require('sequelize');
|
|
const sequelize = require('../assets/utils/database');
|
|
|
|
module.exports = sequelize.define('short_link', {
|
|
id: {
|
|
type: Sequelize.INTEGER,
|
|
allowNull: false,
|
|
autoIncrement: true,
|
|
primaryKey: true
|
|
},
|
|
url: {
|
|
type: Sequelize.TEXT,
|
|
allowNull: false,
|
|
},
|
|
shortcut: {
|
|
type: Sequelize.TEXT,
|
|
allowNull: false,
|
|
}
|
|
}); |