RobinBlomberg / kysely-codegen

Generate Kysely type definitions from your database.
MIT License
773 stars 69 forks source link

Postgresql generated types #171

Closed tzezar closed 2 months ago

tzezar commented 3 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 2 months ago

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

tzezar commented 2 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