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

Implementar constraints no banco de dados #20

Open
rahenrique opened this issue Mar 29, 2021 · 0 comments
Open

Implementar constraints no banco de dados #20

rahenrique opened this issue Mar 29, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@rahenrique
Copy link
Owner

rahenrique commented Mar 29, 2021

ver: https://neo4j.com/graphacademy/training-best-practices-40/01-best-practices40-defining-constraints-data/

algumas constraints necessárias:
CREATE CONSTRAINT UniqueArtistUUIDConstraint ON (a:Artist) ASSERT a.uuid IS UNIQUE
CREATE CONSTRAINT ExistsArtistName ON (a:Artist) ASSERT exists(a.name)

Entretanto, levar em conta casos de obras sem título, e autores desconhecidos (o que fazer com campos obrigatórios nestes casos)

@rahenrique rahenrique assigned rahenrique and unassigned rahenrique Mar 29, 2021
@rahenrique rahenrique added the bug Something isn't working label Mar 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant