projectData and version model added

This commit is contained in:
2025-05-14 14:29:14 +05:30
parent af8510ad90
commit e2be6deb0a
11 changed files with 699 additions and 136 deletions

View File

@@ -1,5 +1,5 @@
import mongoose, { Schema, Connection, Model } from "mongoose";
import { Client } from "minio";
interface ConnectionCache {
[key: string]: Connection;
}
@@ -49,5 +49,12 @@ const MainModel = <T>(
throw error;
}
};
export const minioClient = new Client({
endPoint: "185.100.212.76", // MinIO server IP or hostname
port: 9999, // MinIO server port
useSSL: false, // Set to true if SSL is configured
accessKey: "sabarinathan", // Access key
secretKey: "sabarinathan",
});
export default MainModel;