mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-11 07:00:47 +02:00
1be43911b4
Set Prettier's "trailingComma" setting to "es5" GitOrigin-RevId: 9f14150511929a855b27467ad17be6ab262fe5d5
19 lines
423 B
JavaScript
19 lines
423 B
JavaScript
const mongoose = require('../infrastructure/Mongoose')
|
|
|
|
const { Schema } = mongoose
|
|
|
|
const DocSnapshotSchema = new Schema(
|
|
{
|
|
project_id: Schema.Types.ObjectId,
|
|
doc_id: Schema.Types.ObjectId,
|
|
version: Number,
|
|
lines: [String],
|
|
pathname: String,
|
|
ranges: Schema.Types.Mixed,
|
|
ts: Date,
|
|
},
|
|
{ collection: 'docSnapshots' }
|
|
)
|
|
|
|
exports.DocSnapshot = mongoose.model('DocSnapshot', DocSnapshotSchema)
|