trying to add everything but models are messy with mongoose...just nonsense from higher perspective

This commit is contained in:
talksik
2022-04-01 12:28:09 -04:00
parent ce0fb7a885
commit 5f5d977012
12 changed files with 194 additions and 128 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
import { ObjectId } from "mongodb";
export class GoogleUserInfo {
export default class GoogleUserInfo {
constructor(
public id: string,
public email: string,
-2
View File
@@ -1,2 +0,0 @@
export * from "./googleUserInfo.model";
export * from "./user.model";
+19 -1
View File
@@ -1,6 +1,24 @@
import { ObjectId } from "mongodb";
export class User {
export interface IUser {
googleId: string; // our Google id that every google user has unique that we are going to use for now
email: string;
verifiedEmail: boolean;
name: string;
givenName: string;
familyName: string;
picture: string;
locale: string;
// additional properties specific to our users collection
createdDate: Date;
status: UserStatus;
lastUpdatedDate?: Date;
_id?: ObjectId;
}
export class User implements IUser {
constructor(
public googleId: string, // our Google id that every google user has unique that we are going to use for now
public email: string,