import { Column, ForeignKey, HasMany, Model, Table } from 'sequelize-typescript';
import { Atendimento } from './atendimento.model';

@Table({tableName: 'cid'})
export class Cid extends Model {

  @Column
  nome: string;

  @Column
  codigo: string;

  
  @Column
  createdAt: Date;

  @Column
  updatedAt: Date;

  @HasMany(() => Atendimento)
  atendimento: Atendimento[];

  
}