Added the Sheepstar API to the Archive

This commit is contained in:
2022-09-06 16:37:56 +02:00
parent d6c272cdaf
commit bb78376745
36 changed files with 5346 additions and 0 deletions

View 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
}
});