13 lines
298 B
TypeScript
13 lines
298 B
TypeScript
import { Column, Entity, PrimaryColumn } from "typeorm";
|
|
|
|
@Entity()
|
|
export class query {
|
|
@PrimaryColumn({ generated: "increment", type: "int" })
|
|
id: number;
|
|
|
|
@Column({ type: "varchar", length: 255, unique: true })
|
|
title: string;
|
|
|
|
@Column({ type: "text", default: "" })
|
|
query: string;
|
|
}
|