mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
Github Sync: initial commit
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
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,
|
||||
)
|
||||
Reference in New Issue
Block a user