Created
August 27, 2018 03:39
-
-
Save hugesean/56629cfe07200b4f9b52a7e664d8c3b5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'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