Why do I need to duplicate names in my schema?

For example:
name: text('name').notNull(),

Why do I need
name
twice? I can easily forget to update one or another creating a mess, like
name: text('old_name')


Any way to avoid it?
Was this page helpful?