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

Custom Types #5

Open
4 tasks
mvisani opened this issue May 3, 2024 · 0 comments
Open
4 tasks

Custom Types #5

mvisani opened this issue May 3, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@mvisani
Copy link
Collaborator

mvisani commented May 3, 2024

Custom types

Here we define a list of SQL custom types that could/should be implemented for each table in the migrations. This markdown has been created after the discovery of custom types in SQL and how to convert them to Rust using Diesel (see this repo).

Proposals of custom types

  • users column first_name, last_name and middle_name should not be empty strings.
  • user_emails column email should be a valid email.
  • @LucaCappelletti94 said we should also have a type for Path
  • Should all small enums be custom types? (For example sample states could be a custom enum type instead of populating the table with our csv files)
@mvisani mvisani added the enhancement New feature or request label May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants