Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* jshint indent: 2 */
- "use strict";
- //
- //SCHEMA
- module.exports = (sequelize, DataTypes) => {
- var User = sequelize.define('User', {
- id_usuario: {
- type: DataTypes.INTEGER(11),
- allowNull: false,
- primaryKey: true,
- autoIncrement: true
- },
- tipo: {
- type: DataTypes.INTEGER(1),
- allowNull: true
- },
- nombre: {
- type: DataTypes.STRING(200),
- allowNull: true
- },
- username: {
- type: DataTypes.STRING(200),
- allowNull: true
- },
- email: {
- type: DataTypes.STRING(200),
- allowNull: true
- },
- password: {
- type: DataTypes.STRING(200),
- allowNull: true
- },
- cookie: {
- type: DataTypes.STRING(2000),
- allowNull: true,
- unique: true
- }
- }, {
- tableName: 'user'
- });
- return User;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement