Added signup API endpoint

This commit is contained in:
Jori Lallo
2016-09-11 16:34:57 -07:00
parent bf84f792e2
commit 48a9a9f285
11 changed files with 265 additions and 8 deletions

View File

@@ -9,7 +9,7 @@ import User from './User';
const Team = sequelize.define('team', {
id: { type: DataTypes.UUID, defaultValue: DataTypes.UUIDV4, primaryKey: true },
name: DataTypes.STRING,
slackId: { type: DataTypes.STRING, unique: true },
slackId: { type: DataTypes.STRING, allowNull: true },
slackData: DataTypes.JSONB,
}, {
instanceMethods: {