mirror of
https://github.com/Litlyx/litlyx
synced 2025-12-09 23:48:36 +01:00
add bouncing rate + adjustments
This commit is contained in:
@@ -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() }
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user