394c60f2cf
Revert "Revert "[web] Convert models and self-referential test files to ESM "" GitOrigin-RevId: f64000ae31d298b075a8722dfc51f294c71bc021
13 lines
254 B
JavaScript
13 lines
254 B
JavaScript
import mongoose from '../infrastructure/Mongoose.js'
|
|
|
|
const { Schema } = mongoose
|
|
|
|
export const DocSchema = new Schema(
|
|
{
|
|
name: { type: String, default: 'new doc' },
|
|
},
|
|
{ minimize: false }
|
|
)
|
|
|
|
export const Doc = mongoose.model('Doc', DocSchema)
|