Spaces:
Sleeping
Sleeping
| import { | |
| Entity, | |
| PrimaryGeneratedColumn, | |
| Column, | |
| CreateDateColumn, | |
| ManyToOne, | |
| JoinColumn, | |
| } from 'typeorm'; | |
| import { User } from '../../auth/entities/user.entity'; | |
| ('system_alerts') | |
| export class SystemAlert { | |
| ({ type: 'bigint', unsigned: true }) | |
| id: number; | |
| ({ type: 'varchar', length: 200 }) | |
| name: string; | |
| ({ type: 'text', nullable: true }) | |
| description: string; | |
| ({ name: 'condition_type', type: 'varchar', length: 100 }) | |
| conditionType: string; | |
| ({ type: 'float' }) | |
| threshold: number; | |
| ({ name: 'is_active', type: 'tinyint', default: 1 }) | |
| isActive: boolean; | |
| ({ name: 'created_at' }) | |
| createdAt: Date; | |
| ({ name: 'updated_by', type: 'bigint', unsigned: true, nullable: true }) | |
| updatedBy: number; | |
| (() => User) | |
| ({ name: 'updated_by' }) | |
| updater: User; | |
| } | |