alexg622 / Event_Bright

0 stars 0 forks source link

Wicki Pages #2

Open alexg622 opened 6 years ago

alexg622 commented 6 years ago

Wiki Page Home

Comments:


MVP List

Comments:


Database Schema


Routes

Comments:


Sample State

Comments:


Component Hierarchy with Wireframes

Comments:

xnanodax commented 6 years ago

Great work on the wiki! I unchecked requirements that needed some more work.

Additional Comments:

MVP List

Schema

Routes

Component Hierarchy

Awesome for adding wireframes.

alexg622 commented 6 years ago

I forget how I should index the events and categories. Would it be something like add_index :tags, [:event_id, :category_id], unique: true in the migration or do I do this in the model?

I was thinking that when I hit the user backend route it will return their tickets, and bookmarked events. Would that work?

xnanodax commented 6 years ago

add_index :tags, [:event_id, :category_id], unique: true is correct :) You would do this in the migration for the db constraint. You can also write an accompanying model validation (look into curriculum/rails/artshare for examples)

It would work to use a user backend route that returns their ticket + bookmark events!