mirror of
https://github.com/thedrewen/protojx-manager.git
synced 2026-03-23 05:01:54 +01:00
feat(service): add Service entity with properties for service management
This commit is contained in:
@@ -13,4 +13,4 @@ export class HostsLog {
|
||||
|
||||
@CreateDateColumn()
|
||||
created_at: Date;
|
||||
}
|
||||
}
|
||||
25
src/entity/service.entity.ts
Normal file
25
src/entity/service.entity.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
import { Column, Entity, PrimaryGeneratedColumn } from "typeorm";
|
||||
|
||||
@Entity({name: 'services'})
|
||||
export class Service {
|
||||
@PrimaryGeneratedColumn()
|
||||
id: number;
|
||||
|
||||
@Column()
|
||||
name: string;
|
||||
|
||||
@Column()
|
||||
host: string;
|
||||
|
||||
@Column()
|
||||
alive: boolean;
|
||||
|
||||
@Column()
|
||||
ping_type: string;
|
||||
|
||||
@Column()
|
||||
type: string;
|
||||
|
||||
@Column()
|
||||
notify: boolean;
|
||||
}
|
||||
Reference in New Issue
Block a user