Github Sync: initial commit

This commit is contained in:
yu-i-i
2026-09-22 02:41:42 +02:00
parent ac73b428ff
commit de2744f834
36 changed files with 3969 additions and 10 deletions
@@ -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,
)