mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-12 21:23:45 +01:00
18 lines
509 B
JavaScript
18 lines
509 B
JavaScript
import mongoose from "../../../../app/src/infrastructure/Mongoose.mjs"
|
|
|
|
const { Schema } = mongoose
|
|
const { ObjectId } = Schema
|
|
|
|
export const GitHubSyncUserCredentialsSchema = new Schema(
|
|
{
|
|
userId: { type: ObjectId, ref: 'User', required: true, unique: true },
|
|
github: { type: String, required: true },
|
|
},
|
|
{ collection: 'githubSyncUserCredentials', minimize: false }
|
|
)
|
|
|
|
export const GitHubSyncUserCredentials = mongoose.model(
|
|
'GitHubSyncUserCredentials',
|
|
GitHubSyncUserCredentialsSchema,
|
|
)
|