mirror of
https://github.com/Litlyx/litlyx
synced 2025-12-11 00:08:37 +01:00
17 lines
469 B
TypeScript
17 lines
469 B
TypeScript
import { model, Schema, Types } from 'mongoose';
|
|
|
|
|
|
export type TAnomalyVisit = {
|
|
project_id: Schema.Types.ObjectId
|
|
visitDate: Date,
|
|
created_at: Date
|
|
}
|
|
|
|
const AnomalyVisitSchema = new Schema<TAnomalyVisit>({
|
|
project_id: { type: Types.ObjectId, required: true },
|
|
visitDate: { type: Date, required: true },
|
|
created_at: { type: Date, required: true },
|
|
})
|
|
|
|
export const AnomalyVisitModel = model<TAnomalyVisit>('anomaly_visits', AnomalyVisitSchema);
|