no message

This commit is contained in:
kittapath 2024-11-27 13:53:49 +07:00
parent 1155be4116
commit 9ec42fd5d9
6 changed files with 311 additions and 0 deletions

34
src/entities/ApiName.ts Normal file
View file

@ -0,0 +1,34 @@
import { Entity, Column, ManyToMany, JoinTable } from "typeorm";
import { EntityBase } from "./base/Base";
import { ApiKey } from "./ApiKey";
@Entity("apiName")
export class ApiName extends EntityBase {
@Column({
nullable: true,
comment: "ชื่อ",
length: 255,
default: null,
})
name: string;
@Column({
nullable: true,
comment: "path",
length: 255,
default: null,
})
pathApi: string;
@Column({
nullable: true,
comment: "method",
length: 255,
default: null,
})
methodApi: string;
@ManyToMany(() => ApiKey, (apiKey) => apiKey.apiNames)
@JoinTable()
apiKeys: ApiKey[];
}