chore: playground example

This commit is contained in:
arashsheyda
2023-06-05 21:27:49 +03:00
parent 6ca94dc574
commit 3356ffd052
6 changed files with 58 additions and 0 deletions

View File

@ -0,0 +1,16 @@
import { defineMongooseModel } from '#nuxt/mongoose'
export const UserSchema = defineMongooseModel({
name: 'User',
schema: {
name: {
type: 'string',
required: true,
},
slug: {
type: 'string',
required: true,
unique: true,
},
},
})