Hi,
For context: It is quite common to have tables name in their plural form to describe what the table contains. This is the approach that Ruby on Rails takes as well. Our model Car, will be stored in a "cars" table.
Would it be possible to have a "singularise-entities" to turn:
export interface Users {
id: string;
email: string;
}
export interface Database {
users: Users;
}
into
export interface User {
id: string;
email: string;
}
export interface Database {
users: User;
}
The same way that camelCase works?
Another reason to do that is to avoid having mixed types with reserved table names. User
table name is not allowed in PG for example. In the same example, from memory, mysql won't allow table names like admin
, backup
, channel
, action
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too