I make custom t-shirts and am trying to figure out a good way to organize my database... before I go on to ask HOW to do it... I'd like to know IF the way I'm planning it so far is a smart/good idea. I want to say off top THAT I KNOW THERE'S NO EASY ANSWER TO THIS!!!!!!... so please don't assume that I think you can give me a magical 2 sentence breakdown that makes it all clear n spend 3 paragraphs telling me that.... I KNOW HOW INSANE ORGANIZING THIS IS!!!!... which is why I need help... lol...
check the attached image to see what I have so far before continuing.....
Let me explain why I structured it like this...
With all the shirts I offer every size from New Born-1X adults will be the same price, then 2X is a little more, 3X is a little more and so is 4X and 5X. So I figured I could just like the "shirt_type" column from the Master Shirt table to the Size table and just use the IDs as values in the actual html elements I'll be using to select them. for example... in he men and women sections I'll call to the IDs 9,10,11,12 for s,m,l,1x... then 8,9,10,11,12 for boys and girls size options for xs,s,m,l,1x.
I made the "Type Table" because most of my shirts are available in Men, Women, Boys and Girls, so instead of trying doing an ENUM on each one I figured it would save space by linking them to the same table and calling the options I want in the html. The type table is also linked to the "photo table" because I would like for the photos to be called up from the tables as well. I'm going to be building a back door to my site so I can just upload product photos and have them go directly where I need them.
The "White Shirt Table" is for the white shirts. I decided to do it this way because there's a lot of shirts and I wouldn't want to have a whole column that will only be %30 used once I do start offering colored shirts. It has a column called "color_op01" because some of them have different colored sleeves, such as the raglan shirts... the torso of those shirts are white, but there are options for the sleeves and I'd like those represented from the color_op01 table. I'm going to make a table for the colored shirts too once I start offering them and plan to link them the same way.
The "Price Table" has two columns with two sets of prices because I have two different routes they can go with everything. I have what I call "Quick Pick Designs" which are designs that are already pre-made, all I'd have to do is add the name to them that they'd like done. The next is what I call "Optiqfied" which is getting the shirt customized from scratch and the prices in the "o_price" column will be the core price for those shirts, which will branch off into another section with more options and prices. I'm not done planning out the organization of the different options, but that's because I'm hitting a brick wall here first not knowing if this is a good setup to go with and second, not knowing exactly how I'll have to link all this together and if certain things will be possible... such as pulling data from the photo table into the type table to the master shirt table THEN to the white/color shirts tables... I'm also concerned about how efficient it will be a few months down the line once I've added more shirts and designs. Will this work out?... if not, what would?.. if you have any questions to help make this madness clearer please ask.. Thanks for you help..
