Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Add cuid for all tables #1092

Closed
AnandChowdhary opened this issue Apr 14, 2020 · 2 comments
Closed

Add cuid for all tables #1092

AnandChowdhary opened this issue Apr 14, 2020 · 2 comments
Assignees
Labels
enhancement New feature or request wontfix This will not be worked on

Comments

@AnandChowdhary
Copy link
Member

Tables that have username, like organization and user, already have a human-readable key (apart from autoincrementing ID).

  • All tables apart from those can have cuid as the column name and default value cuid()
  • The default value for username can also be cuid unless a better one is available
  • API keys can use cuid instead of JWT etc.
@AnandChowdhary AnandChowdhary self-assigned this Apr 14, 2020
@AnandChowdhary AnandChowdhary added the enhancement New feature or request label Apr 14, 2020
@FindingAnand
Copy link
Member

⚠️ This issue has not seen any activity in the past 2 months so I'm marking it as stale. I'll close it if it doesn't see any activity in the coming week.

@FindingAnand FindingAnand added the wontfix This will not be worked on label Nov 9, 2020
@AnandChowdhary
Copy link
Member Author

This needs to be rethought. The default autoincremented ID should be more than enough, but we need a better way when expoing them to users (which is not a string CUID for sure).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants