Kononnable/typeorm-model-generator

bigint generate to string,how to generate to number

bulolo opened this issue · 1 comments

  @PrimaryGeneratedColumn({ type: "bigint", name: "id", comment: "id" })
  id: string;

Generating number would not be a correct behavior here.
Sql Bigint type support larger numbers then JS Number type. If you use JS Number type you can loose your data without noticing it(no overflow errors).