const Sequelize = require('sequelize');
const sequelize = require('../assets/utils/database');
module.exports = sequelize.define('function', {
id: {
type: Sequelize.INTEGER,
allowNull: false,
autoIncrement: true,
primaryKey: true
},
title: {
type: Sequelize.STRING,
slug: {
description: {
allowNull: false
image: {
defaultValue: "/images/functions/default.png"
type: {
article: {
type: Sequelize.TEXT,
allowNull: true
utilizationForm: {
type: Sequelize.JSON,
isOnline: {
type: Sequelize.BOOLEAN,
defaultValue: 0
}
});