UNPKG

@mvp-rockets/namma-generator

Version:

A generator to generate mvp-rockets projects

45 lines 1.03 kB
'use strict'; module.exports = { async up(queryInterface, DataTypes) { await queryInterface.createTable('users', { id: { type: DataTypes.UUID, primaryKey: true, allowNull: false, defaultValue: DataTypes.UUIDV4, }, email: { type: DataTypes.STRING, unique: true, }, username: { type: DataTypes.STRING, unique: true, }, password:{ type:DataTypes.STRING, }, mlVerificationToken:{ type:DataTypes.STRING, field: 'ml_verifcation_token' }, mlVerificationTokenExp:{ type:DataTypes.DATE, field: 'ml_verifcation_token_exp' }, createdAt: { allowNull: false, type: DataTypes.DATE, field: 'created_at' }, updatedAt: { allowNull: false, type: DataTypes.DATE, field: 'updated_at' } }); }, async down(queryInterface, DataTypes) { await queryInterface.dropTable('users'); } };