Skip to content

Instantly share code, notes, and snippets.

@hugesean
Created August 27, 2018 03:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hugesean/d5dd06dea9a70546a6588b9f46715bd1 to your computer and use it in GitHub Desktop.
Save hugesean/d5dd06dea9a70546a6588b9f46715bd1 to your computer and use it in GitHub Desktop.
'use strict'
module.exports = (sequelize, DataTypes) => {
const Characters = sequelize.define('characters', {
characterId:{
type:DataTypes.INTEGER,
primaryKey: true
},
name:DataTypes.STRING,
actor:DataTypes.STRING,
description:DataTypes.STRING,
debut:DataTypes.STRING,
airDate:DataTypes.DATE
},
{
freezeTableName: true,
primaryKey: true,
timestamps: false
}
);
return Characters;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment