This repository has been archived on 2024-12-31. You can view files and clone it, but cannot push or open issues or pull requests.
Archive/SheepstarAPIV1/models/ShortenedLink.js

37 lines
887 B
JavaScript

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