2024-12-14 16:11:53 +01:00
|
|
|
import { Column, Entity, PrimaryColumn } from "typeorm";
|
|
|
|
|
|
|
|
@Entity()
|
|
|
|
export class query {
|
|
|
|
@PrimaryColumn({ generated: "increment", type: "int" })
|
|
|
|
id: number;
|
|
|
|
|
2024-12-18 22:27:33 +01:00
|
|
|
@Column({ type: "varchar", length: 255, unique: true })
|
|
|
|
title: string;
|
|
|
|
|
2024-12-14 16:11:53 +01:00
|
|
|
@Column({ type: "text", default: "" })
|
|
|
|
query: string;
|
|
|
|
}
|