-
Notifications
You must be signed in to change notification settings - Fork 975
Closed
Description
Is there a way to redeclare the id column as a custom string type?
If I put the following in my schema:
field.String("id").Unique()
The generated code ends up broken because it creates two declarations of "id", but furthermore it ignores the fact that it's a string, and declares it as an integer instead.
This might be related to the UUID discussions, but it would be great if we can define our own custom primary keys as strings that we provide at runtime.
hlubek, BitPhinix, ansarizafar, errorhandler, vincentluan and 4 more
Metadata
Metadata
Assignees
Labels
No labels