Added the Sheepstar API to the Archive
This commit is contained in:
37
SheepstarAPIV1/models/ShortenedLink.js
Normal file
37
SheepstarAPIV1/models/ShortenedLink.js
Normal file
@ -0,0 +1,37 @@
|
||||
const Sequelize = require('sequelize');
|
||||
const db = require("../config/database");
|
||||
|
||||
module.exports = db.define("shortened_links",{
|
||||
shorten_url: {
|
||||
type: Sequelize.STRING,
|
||||
allowNull: false
|
||||
},
|
||||
original_url: {
|
||||
type: Sequelize.STRING,
|
||||
allowNull: false
|
||||
},
|
||||
show_meta_data: {
|
||||
type: Sequelize.BOOLEAN,
|
||||
defaultValue: false
|
||||
},
|
||||
meta_title: {
|
||||
type: Sequelize.STRING,
|
||||
defaultValue: "Default URL title",
|
||||
allowNull: true
|
||||
},
|
||||
meta_description: {
|
||||
type: Sequelize.STRING,
|
||||
defaultValue: "Default URL description",
|
||||
allowNull: true
|
||||
},
|
||||
meta_image: {
|
||||
type: Sequelize.STRING,
|
||||
defaultValue: "Default URL image",
|
||||
allowNull: true
|
||||
},
|
||||
meta_color: {
|
||||
type: Sequelize.STRING,
|
||||
defaultValue: "#5865f2",
|
||||
allowNull: true
|
||||
}
|
||||
});
|
Reference in New Issue
Block a user