import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn } from 'typeorm';

@Entity('esg_metas')
export class EsgMeta {
  @PrimaryGeneratedColumn('uuid')
  id: string;

  @Column({ length: 20 })
  tipo: string;

  @Column({ type: 'float' })
  meta_valor: number;

  @Column()
  periodo_ano: number;

  @Column({ nullable: true })
  local_id: string;

  @CreateDateColumn()
  created_at: Date;
}
