import { Model, model, Schema } from 'mongoose'; export const raw_schema = { steam: { type: String, required: true }, status: { type: Boolean, default: false } } const schema = new Schema(raw_schema); export type TMBlacklist = Model export const MBlacklist = model('blacklist', schema); export interface IBlacklist { steam: string status: boolean }