feat: qa生成
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { Schema, model, models } from 'mongoose';
|
||||
import { ModelList } from '@/constants/model';
|
||||
|
||||
const BillSchema = new Schema({
|
||||
userId: {
|
||||
@@ -6,6 +7,16 @@ const BillSchema = new Schema({
|
||||
ref: 'user',
|
||||
required: true
|
||||
},
|
||||
type: {
|
||||
type: String,
|
||||
enum: ['chat', 'generateData', 'return'],
|
||||
required: true
|
||||
},
|
||||
modelName: {
|
||||
type: String,
|
||||
enum: ModelList.map((item) => item.model),
|
||||
required: true
|
||||
},
|
||||
chatId: {
|
||||
type: Schema.Types.ObjectId,
|
||||
ref: 'chat',
|
||||
|
||||
Reference in New Issue
Block a user