Skip to content
Permalink
a14f0c212e
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
34 lines (32 sloc) 521 Bytes
import mongoose from "../helpers/db.js";
const User = mongoose.model(
"User",
new mongoose.Schema({
id: {
type: Buffer,
unique: true,
},
credentialId: {
type: String,
},
firstName: {
type: String,
unique: false,
},
lastName: {
type: String,
unique: false,
},
email: {
type: String,
unique: true,
},
authDuration: {
type: Number,
},
regDuration: {
type: Number,
},
})
);
export default User;