This repository has been archived on 2023-10-27. You can view files and clone it, but cannot push or open issues or pull requests.
Files
imageify/src/models/UserModel.js
2022-11-13 22:45:01 +00:00

16 lines
450 B
JavaScript

import mongoose, { Schema } from "mongoose";
const schema = new Schema({
// The username of the user
username: {
type: String,
index: true,
},
password: String, // The hashed password of the user
salt: String, // The salt the password was hashed with
uploadKey: String, // The users upload key for ShareX
lastLoginDate: Date, // The last time the user logged in
});
export default mongoose.models.User || mongoose.model("User", schema);