Skip to content

Instantly share code, notes, and snippets.

@hugesean
Created August 27, 2018 03:39
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/56629cfe07200b4f9b52a7e664d8c3b5 to your computer and use it in GitHub Desktop.
Save hugesean/56629cfe07200b4f9b52a7e664d8c3b5 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