diff --git a/src/entity/puller_status.ts b/src/entity/puller_status.ts new file mode 100644 index 0000000..6683797 --- /dev/null +++ b/src/entity/puller_status.ts @@ -0,0 +1,29 @@ +import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn, Index, OneToOne, JoinColumn } from 'typeorm'; + +@Entity('puller_status') +export class PullerStatus { + @PrimaryGeneratedColumn('uuid') + id: string; + + @Column({ + nullable: true, + length: 500 + }) + title: string; + + @Column({ + nullable: true, + length: 100 + }) + hostname: string; + + @Column({ + nullable: true, + type: 'text' + }) + detail: string; + + @Column() + @CreateDateColumn() + created_at: Date; +} \ No newline at end of file diff --git a/src/index.ts b/src/index.ts index c8cb1d6..86d4d87 100644 --- a/src/index.ts +++ b/src/index.ts @@ -26,6 +26,7 @@ import { LogPull } from "./entity/log_pull"; import { LogPullType, StatusLogPull } from "./types/pull"; import { Category } from "./entity/categories"; import { CategorySource } from "./types/category_source"; +import { PullerStatus } from "./entity/puller_status"; export { User, @@ -57,5 +58,6 @@ export { LogPullType, StatusLogPull, Category, - CategorySource + CategorySource, + PullerStatus }; \ No newline at end of file