18 lines
414 B
JavaScript
18 lines
414 B
JavaScript
module.exports = (sequelize, type) => {
|
|
|
|
const ShortUrl = sequelize.define('shorturl', {
|
|
id: {
|
|
type: type.INTEGER,
|
|
primaryKey: true,
|
|
autoIncrement: true
|
|
},
|
|
fullurl: type.TEXT,
|
|
shorturl: type.TEXT,
|
|
urlname: type.TEXT,
|
|
status: {
|
|
type: type.INTEGER,
|
|
defaultValue: 0
|
|
}
|
|
})
|
|
return ShortUrl;
|
|
} |