Is there a decorator that I can use to change the ...
# orm-help
e
Is there a decorator that I can use to change the table name for a model? Also is there a decorator to change a column name of a model? for example I have the following:
Copy code
model User {
  user_id string
}
I want the table to be:
Copy code
create table as Users (
  userId" VARCHAR(255) NOT NULL
)
1
d
@map should do the trick!
🙌 1
☝️ 2
j

https://www.youtube.com/watch?v=oaZkHJiRFWw

Hope It will help you