feat(wiki): add Outline utility and wiki sync API
This commit is contained in:
parent
3797ff7925
commit
905b5155e2
7 changed files with 466 additions and 2 deletions
20
server/models/wikiArticle.js
Normal file
20
server/models/wikiArticle.js
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
import mongoose from 'mongoose'
|
||||
|
||||
const wikiArticleSchema = new mongoose.Schema(
|
||||
{
|
||||
outlineId: { type: String, unique: true, required: true },
|
||||
title: { type: String, required: true },
|
||||
collection: String,
|
||||
url: { type: String, required: true },
|
||||
summary: String,
|
||||
tags: [{ type: String }],
|
||||
publishedAt: Date,
|
||||
permission: String,
|
||||
lastSyncedAt: Date,
|
||||
outlineUpdatedAt: Date
|
||||
},
|
||||
{ timestamps: true }
|
||||
)
|
||||
|
||||
export default mongoose.models.WikiArticle ||
|
||||
mongoose.model('WikiArticle', wikiArticleSchema)
|
||||
Loading…
Add table
Add a link
Reference in a new issue