PHP 8.2.30
Preview: article-model.ts Size: 284 B
/proc/thread-self/root/home/byroehnu/.trash/node_modules11/@adminjs/express/examples/mongoose/article-model.ts

import mongoose from "mongoose";

const { Schema } = mongoose;

const ArticleSchema = new Schema({
  title: String,
  content: String,
  author: String,
  createdAt: Date,
  published: Boolean,
});

const Article = mongoose.model("Article", ArticleSchema);

module.exports = Article;

Directory Contents

Dirs: 0 × Files: 2

Name Size Perms Modified Actions
216 B lrw-r--r-- 2026-02-28 00:28:38
Edit Download
284 B lrw-r--r-- 2026-02-28 00:28:40
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).