Great sketch eh!
OK - a route can be used in an event many times - usually every year but maybe more often. (The route itself may actually change but I don't think were actually concerned with that in this model).
Each event has a bunch of Participants who are made up of the riders. A rider can participate in multiple events.
The riders details are pretty much static except they get a new licence number each year.
Obviously they move and so on, but I don't see any particular need to track that against the events - just the current details should do.
Events have organisers - or maybe rides do - they can have more than one so I've just realised the model is wrong - need a join table.
Did think that the organisers were against the ride - but there not as they sometimes change year to year as the route gets passed from person to person.
Riders and organisers are users of some sort - but the chances are I'll pick up this bit of schema from the standard ASP.NET authentication database - or whatever those clever people at Redmond use these days.
I can smell the code ...
Showing posts with label database design. Show all posts
Showing posts with label database design. Show all posts
Tuesday, 1 November 2016
Sunday, 30 October 2016
Sprint One - As "Stuart McLean" I want to be able to get a csv list of entrants for a brevet.
The physc evals tell me I'm an implementer - which means I get cracking on things but, as many around me know, rarely finish. You need a completer finisher for that.
So, I thought a lot and put one thing on the backlog that I might be able to achieve in an hour.
Let's start with the actor.
Well - there is a whole bunch of stuff that needs doing do secure the average online applicaiton - authentication, authorisation, deployment, hosting etc. As "Stuart McLean" I can circumnavigate all of these and focus on the data!
So, I thought a lot and put one thing on the backlog that I might be able to achieve in an hour.
Breaking down the user story
It looks pretty innocuous - right - but - believe it or not, there has been a fair amount of thought into such a simple story.
Let's start with the actor.
"Stuart McLean" - why not a brevet organiser.
Well - there is a whole bunch of stuff that needs doing do secure the average online applicaiton - authentication, authorisation, deployment, hosting etc. As "Stuart McLean" I can circumnavigate all of these and focus on the data!
Get a list of csv entrants
So as I said in my last blog - I already have a way of using excel to do lots of the admin. The big task is to get the data in a spreadsheet.
For a brevet
Well - I guess it's really for the next brevet!
What I have
Well - I guess I already have a list of previous people and brevets.
I also know what brevets are coming up.
Solution Overview
I'm going to create a database - whoop whoop - to store:
Riders,
The Brevets,
Entrants to a brevet - i.e. the relationship between the Riders and the Brevets.
Then I'm going to upload the data from the excel files I have. This should give me a list of riders, existing entries and previous brevets.
This should validate my data model.
I'm going to do all this in SQL Server management studio straight on the database.
Subscribe to:
Posts (Atom)