Download cloud-v2/packages/core/src/models/test-dispatch.model.ts from Anirudh1950/MentraOS: direct link, hf CLI and curl.
- Browser
- Download file 548 Bytes
-
https://huggingface.co/Anirudh1950/MentraOS/resolve/main/cloud-v2/packages/core/src/models/test-dispatch.model.ts
- Command line
-
hf download hf://Anirudh1950/MentraOS/cloud-v2/packages/core/src/models/test-dispatch.model.ts
-
curl -L -o test-dispatch.model.ts https://huggingface.co/Anirudh1950/MentraOS/resolve/main/cloud-v2/packages/core/src/models/test-dispatch.model.ts
548 Bytes
| import { Schema } from "mongoose"; | |
| import { registerModel } from "./register-model"; | |
| // Retain the send fence permanently. GitHub, not this collection, schedules jobs. | |
| const schema = new Schema({ | |
| dispatchId: { type: String, required: true, unique: true }, | |
| inputSha256: { type: String, required: true }, | |
| receipt: { type: Schema.Types.Mixed, required: true }, | |
| }, { collection: "test_dispatches", timestamps: true }); | |
| schema.index({ "receipt.createdAt": -1 }); | |
| export const TestDispatchModel = registerModel("TestDispatch", schema); | |