feat(onboarding): add Member onboarding subdocument, Event tags, and WikiArticle model
This commit is contained in:
parent
3797ff7925
commit
9fe8d99808
3 changed files with 28 additions and 0 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