When you run the generator for a table with a column of type Int and @default(1) the class is set with a default of new Date('1');. Hoping to take a look at this some time soon and maybe open a PR, but for now just wanted to raise the issue.
For example the following table
model Test {
count Int @default(1) @map("count")
}
produces the following class
import { ApiProperty } from '@nestjs/swagger';
export class Test {
@ApiProperty({ type: Number })
count: number = new Date('1');
}
When you run the generator for a table with a column of type
Intand@default(1)the class is set with a default ofnew Date('1');. Hoping to take a look at this some time soon and maybe open a PR, but for now just wanted to raise the issue.For example the following table
produces the following class