Migrate project from typing_practiceweb

This commit is contained in:
2026-05-14 16:04:14 +08:00
parent dbc5425706
commit 0e87d5546d
225 changed files with 92811 additions and 0 deletions

View 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);