aboutsummaryrefslogtreecommitdiff
path: root/models/quote.js
blob: f31b4720225a91d16927c4b8f1bdc079b64191b3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
const Sequelize = require("sequelize");
const sequelize = require('../utils/sequelize');

const quote = sequelize.define('quotes', {
    id: {
        type: Sequelize.INTEGER,
        autoIncrement: true,
        primaryKey: true
    },
    author: {
        type: Sequelize.STRING,
        allowNull: false
    },
    authorImage: {
        type: Sequelize.STRING,
        allowNull: false
    },
    quote: {
        type: Sequelize.TEXT,
        allowNull: false
    },
    year: {
        type: Sequelize.STRING,
        allowNull: false
    }

})

module.exports = quote