20 lines
518 B
JavaScript
20 lines
518 B
JavaScript
module.exports = (sequelize, type) => {
|
|
const AuthyMaster = sequelize.define('authy_masters', {
|
|
id: {
|
|
type: type.INTEGER,
|
|
primaryKey: true,
|
|
autoIncrement: true
|
|
},
|
|
user_id: type.INTEGER,
|
|
email: type.TEXT,
|
|
password: type.TEXT,
|
|
authy_token: type.TEXT,
|
|
scanned_code: type.TEXT,
|
|
qr_code: type.TEXT,
|
|
status: {
|
|
type: type.INTEGER,
|
|
defaultValue: 0
|
|
}
|
|
})
|
|
return AuthyMaster;
|
|
} |