Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Proposal] Use UUID for primary keys instead of int #55

Closed
eugeneradionov opened this issue Aug 16, 2019 · 1 comment
Closed

[Proposal] Use UUID for primary keys instead of int #55

eugeneradionov opened this issue Aug 16, 2019 · 1 comment

Comments

@eugeneradionov
Copy link
Contributor

UUID allows creating records more safely and easily use a default value for DB column

@mytholog
Copy link

try

userTable := table.NewDefaultTable(table.Config{
		PrimaryKey: table.PrimaryKey{
			Type: db.UUID,
			Name: "user_id",
		},
	})

@chenhg5 chenhg5 closed this as completed Aug 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants