mirror of
https://github.com/sergeyyarkov/todo-app.git
synced 2026-10-11 10:29:14 +03:00
14 lines
273 B
JavaScript
14 lines
273 B
JavaScript
const mongoose = require('mongoose')
|
|
|
|
const todoSchema = mongoose.Schema({
|
|
title: String,
|
|
description: String,
|
|
createdAt: String,
|
|
updatedAt: String,
|
|
status: String,
|
|
deadline: String,
|
|
categoryId: String,
|
|
})
|
|
|
|
module.exports = mongoose.model('Todo', todoSchema)
|