You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
572 B
26 lines
572 B
// app/models/lib/user-apis.ts
|
|
// Copyright (C) 2025 DTP Technologies, LLC
|
|
// All Rights Reserved
|
|
|
|
import { Schema } from "mongoose";
|
|
|
|
export interface IUserApiGoogle {
|
|
accessToken: string;
|
|
refreshToken: string;
|
|
}
|
|
|
|
export const UserApiGoogleSchema = new Schema<IUserApiGoogle>(
|
|
{
|
|
accessToken: { type: String, required: true },
|
|
refreshToken: { type: String, required: true },
|
|
},
|
|
{ _id: false }
|
|
);
|
|
|
|
export interface IUserApis {
|
|
google: IUserApiGoogle;
|
|
}
|
|
|
|
export const UserApisSchema = new Schema<IUserApis>({
|
|
google: { type: UserApiGoogleSchema },
|
|
});
|
|
|