import {Entity, PrimaryColumn, Column} from "typeorm";
export function createEntity(tableName: string) {
@Entity({name: tableName})
class EntityClass {
public static tableName = tableName;
@PrimaryColumn()
public name: string = "";
@Column()
public value: number = 0;
}
return EntityClass;
}
@Entity({name: tableName})
export class EntityClass {
public static tableName = tableName;
@PrimaryColumn()
public name: string = "";
@Column()
public value: number = 0;
}
export function createEntity(tableName: string) {
return EntityClass;
}