Initial commit: EKAI v2 - Portal de Notícias IA (React + NestJS)
This commit is contained in:
25
backend/src/entities/hype.entity.ts
Normal file
25
backend/src/entities/hype.entity.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn } from 'typeorm';
|
||||
|
||||
@Entity('hypes')
|
||||
export class Hype {
|
||||
@PrimaryGeneratedColumn()
|
||||
id: number;
|
||||
|
||||
@Column()
|
||||
nome: string;
|
||||
|
||||
@Column({ type: 'int' })
|
||||
percentual: number;
|
||||
|
||||
@Column({ nullable: true })
|
||||
icone: string;
|
||||
|
||||
@Column({ type: 'int', default: 0 })
|
||||
ordem: number;
|
||||
|
||||
@Column({ default: true })
|
||||
ativo: boolean;
|
||||
|
||||
@CreateDateColumn()
|
||||
created_at: Date;
|
||||
}
|
||||
Reference in New Issue
Block a user