add entity
This commit is contained in:
29
src/entity/puller_status.ts
Normal file
29
src/entity/puller_status.ts
Normal file
@ -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;
|
||||
}
|
||||
@ -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
|
||||
};
|
||||
Reference in New Issue
Block a user