trying to add everything but models are messy with mongoose...just nonsense from higher perspective
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { ObjectId } from "mongodb";
|
||||
|
||||
export class GoogleUserInfo {
|
||||
export default class GoogleUserInfo {
|
||||
constructor(
|
||||
public id: string,
|
||||
public email: string,
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
export * from "./googleUserInfo.model";
|
||||
export * from "./user.model";
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user