|
@@ -1,14 +1,14 @@
|
|
|
-'use strict';
|
|
|
-module.exports = function(sequelize, DataTypes) {
|
|
|
- var User = sequelize.define('User', {
|
|
|
- username: DataTypes.STRING,
|
|
|
- hash: DataTypes.STRING
|
|
|
- }, {
|
|
|
- classMethods: {
|
|
|
- associate: function(models) {
|
|
|
- // associations can be defined here
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
- return User;
|
|
|
-};
|
|
|
+module.exports = (sequelize, DataTypes) => {
|
|
|
+ let User = sequelize.define('User', {
|
|
|
+ username: DataTypes.STRING,
|
|
|
+ hash: DataTypes.STRING
|
|
|
+ }, {
|
|
|
+ classMethods: {
|
|
|
+ associate: (models) => {
|
|
|
+ // associations can be defined here
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
+ return User
|
|
|
+}
|