import { Schema } from "mongoose"; import { getCommonSchemas as common,aliasedEntitySchemaOpts as opts} from "@onebro/oba-common"; import { OBAuthId } from "../types"; const {status} = common(); const authId = new Schema({ created:{type:Date,default:Date.now}, updated:{type:Date,default:Date.now}, action:{type:String}, next:{type:String,unique:true}, email:{type:String,index:true,unique:true,lowercase:true,required:true}, handle:{type:String,index:true,sparse:true,lowercase:true}, verified:{type:Date,default:null}, verification:{type:String}, },opts); export {authId as obAuthIdSchema};