add bouncing rate + adjustments

This commit is contained in:
Emily
2024-09-30 17:01:16 +02:00
parent 1828edf98b
commit 3ba6cd171b
12 changed files with 391 additions and 57 deletions

View File

@@ -1,4 +1,4 @@
import { model, Schema } from 'mongoose';
import { model, Schema, Types } from 'mongoose';
export type TUser = {
email: string,
@@ -6,7 +6,15 @@ export type TUser = {
given_name: string,
locale: string,
picture: string,
created_at: Date
created_at: Date,
google_tokens?: {
refresh_token?: string;
expiry_date?: number;
access_token?: string;
token_type?: string;
id_token?: string;
scope?: string;
}
}
const UserSchema = new Schema<TUser>({
@@ -15,6 +23,14 @@ const UserSchema = new Schema<TUser>({
given_name: String,
locale: String,
picture: String,
google_tokens: {
refresh_token: String,
expiry_date: Number,
access_token: String,
token_type: String,
id_token: String,
scope: String
},
created_at: { type: Date, default: () => Date.now() }
})