add entity

This commit is contained in:
2024-12-16 14:38:40 +07:00
parent 2d679aac85
commit ec73f2593b
2 changed files with 32 additions and 1 deletions

View 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;
}

View File

@ -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
};