Migrate project from typing_practiceweb
This commit is contained in:
13
server/models/PracticeType.ts
Normal file
13
server/models/PracticeType.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import mongoose from 'mongoose';
|
||||
|
||||
const practiceTypeSchema = new mongoose.Schema({
|
||||
title: { type: String, required: true },
|
||||
description: { type: String, required: true },
|
||||
level: {
|
||||
type: String,
|
||||
enum: ['basic', 'intermediate', 'advanced', 'keyword'],
|
||||
required: true
|
||||
}
|
||||
});
|
||||
|
||||
export const PracticeType = mongoose.model('PracticeType', practiceTypeSchema);
|
||||
Reference in New Issue
Block a user