RobinBlomberg / kysely-codegen

Generate Kysely type definitions from your database.
MIT License
815 stars 73 forks source link

Postgresql generated types #171

Closed tzezar closed 4 months ago

tzezar commented 4 months ago

Some columns are mapped properly to string and some are randomly mapped to Generated<string>

export interface JednostkaMiary {
  id: Generated<number>;
  nazwa: string;
  skrot: string;
}

export interface KategoriaAsortymentu {
  id: Generated<number>;
  nazwa: Generated<string>;
  opis: Generated<string>;
}

Upvote & Fund

Fund with Polar

bakasmarius commented 4 months ago

It is not random, that is most probably because all Generated columns have a default value in your database schema.

tzezar commented 4 months ago

It is not random, that is most probably because all Generated columns have a default value in your database schema.

You are right