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

Index unique fields in models #41

Open
malexandert opened this issue Dec 31, 2017 · 0 comments
Open

Index unique fields in models #41

malexandert opened this issue Dec 31, 2017 · 0 comments

Comments

@malexandert
Copy link
Collaborator

Fields that should be unique. Note the compound fields listed under each model must be unique, i.e. two Programs can have the same name, but two Programs cannot have the same name and host

User

  • username

Program

  • name
  • host

Artist
Since multiple artists can have the same name, nothing about the Artist needs to be unique aside from the _id

Album

  • name
  • artists

Playlists and Reviews tba

@malexandert malexandert added this to the The warmd API milestone Dec 31, 2017
@malexandert malexandert added this to Todo in WRCT: A Radio Music Database via automation Dec 31, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant