Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I explicitly set a table name?

Tags:

typeorm

I can't find anything in the documentation about this, and strangely also not here - is there a way to do this?

like image 962
BruceM Avatar asked Jan 21 '26 18:01

BruceM


1 Answers

You can find information as to how to explicitly set a table name here.

https://typeorm.io/#/decorator-reference/entity

@Entity("users")
export class User {
like image 113
Will Walsh Avatar answered Jan 27 '26 00:01

Will Walsh



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!