UNPKG

caradoc-user

Version:
47 lines (33 loc) 821 B
exports.User = function(id, userame, email, password, salt, enabled, role) { this.params = {}; this.params['EntityName'] = "User"; this.id = null; this.params['id'] = { type :'INT(11)', auto : "AUTO_INCREMENT" }; this.username = userame; this.params['username'] = { type : 'VARCHAR(255)' }; this.email = email; this.params['email'] = { type : 'VARCHAR(255)' }; this.password = password; this.params['password'] = { type : 'VARCHAR(255)' }; this.salt = salt; this.params['salt'] = { type : 'VARCHAR(255)' }; this.enabled = enabled; this.params['enabled'] = { type : "TINYINT(1)" }; this. role = role; this.params['role'] = { type : 'VARCHAR(255)' }; };