feat: Use container for the API service

This commit is contained in:
Lucàs
2024-12-19 11:25:29 +01:00
parent 735ab03d6e
commit 401978a0b4
88 changed files with 865 additions and 3642 deletions
+34
View File
@@ -0,0 +1,34 @@
import { Column, Entity, PrimaryGeneratedColumn } from "typeorm";
@Entity()
export class Log {
@PrimaryGeneratedColumn()
id: number = 0;
@Column("timestamp")
timestamp: Date = new Date();
@Column("text")
url: string;
@Column("text")
method: "GET" | "POST" | "PUT" | "DELETE" = "GET";
@Column("blob")
body: string = "";
@Column("blob")
output: string = "";
constructor(
url: string,
method: "GET" | "POST" | "PUT" | "DELETE",
body: string,
output: string,
) {
this.url = url;
this.method = method;
this.body = body;
this.output = output;
}
}