Files
schedtxt_api/models.js
T
kdeng00 4649ac4588 Adding functionality to interact with data
Create model for the users but need to be able to interact with the table
2023-04-25 18:56:34 -04:00

15 lines
381 B
JavaScript

const mongoose = require('mongoose');
const Schema = mongoose.Schema;
const ObjectId = Schema.ObjectId;
const User = new Schema({
userID: { type: String },
firstName: { type: String },
lastName: { type: String },
phoneNumber: { type: String },
username: { type: String },
password: { type: String },
dateCreated: { type: Date, default: Date.now }
});