feat: implement Migration module with controller, service, and entity, including migration creation logic

This commit is contained in:
lborv
2025-09-26 21:55:57 +03:00
parent 6d88c21305
commit 2f848137ed
9 changed files with 311 additions and 21 deletions

View File

@ -0,0 +1,15 @@
import axios from "axios";
import { config } from "../config";
export default async (token: string, tables: any) => {
try {
const response = await axios.post(`${config.url}/migrations/create`, {
token,
tables,
});
return response.data;
} catch (error) {
console.error("Error in creating migration:", error);
}
};