I just want to ask you guys if the database design that i made for my asp.net website is correct or not. So basically, I created a database for the brands of my guitar products, which is like this:
Database for Brands
Code for Database Brands:
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[guitarBrands](
[id] [int] NOT NULL,
[type] [varchar](50) NOT NULL,
[name] [varchar](50) NOT NULL,
[image] [varchar](255) NULL,
PRIMARY KEY CLUSTERED
(
[id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY =
OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
INSERT [dbo].[guitarBrands] ([id], [type], [name], [image]) VALUES (1,
N'Guitar', N'Ibanez', N'../Images/Guitar Brands/ibanezLogo.jpg')
INSERT [dbo].[guitarBrands] ([id], [type], [name], [image]) VALUES (2,
N'Guitar', N'Fender', N'../Images/Guitar Brands/fenderLogo.jpg')
INSERT [dbo].[guitarBrands] ([id], [type], [name], [image]) VALUES (3,
N'Guitar', N'Gibson', N'../Images/Guitar Brands/gibsonLogo.jpg')
INSERT [dbo].[guitarBrands] ([id], [type], [name], [image]) VALUES (4,
N'Guitar', N'PRS', N'../Images/Guitar Brands/prsLogo.jpg')
INSERT [dbo].[guitarBrands] ([id], [type], [name], [image]) VALUES (5,
N'Guitar', N'Musicman', N'../Images/Guitar Brands/ernieballLogo.jpg')
INSERT [dbo].[guitarBrands] ([id], [type], [name], [image]) VALUES (6,
N'Guitar', N'ESP', N'../Images/Guitar Brands/espLogo.jpg')
and i also have another database for the guitar models within that brand.
Database for Guitar models(I hope the image is clear)
And here is also the code for database guitar models:
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[guitarItems](
[id] [int] IDENTITY(1,1) NOT NULL,
[type] [varchar](50) NOT NULL,
[brand] [varchar](50) NOT NULL,
[model] [varchar](50) NOT NULL,
[price] [float] NOT NULL,
[itemimage1] [varchar](255) NULL,
[itemimage2] [varchar](255) NULL,
[description] [text] NOT NULL,
[necktype] [varchar](100) NOT NULL,
[body] [varchar](100) NOT NULL,
[fretboard] [varchar](100) NOT NULL,
[fret] [varchar](50) NOT NULL,
[bridge] [varchar](100) NOT NULL,
[neckpickup] [varchar](100) NOT NULL,
[bridgepickup] [varchar](100) NOT NULL,
[hardwarecolor] [varchar](50) NOT NULL,
PRIMARY KEY CLUSTERED
(
[id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY =
OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
SET IDENTITY_INSERT [dbo].[guitarItems] ON
INSERT [dbo].[guitarItems] ([id], [type], [brand], [model], [price],
[itemimage1], [itemimage2], [description], [necktype], [body], [fretboard],
[fret], [bridge], [neckpickup], [bridgepickup], [hardwarecolor])
VALUES (1, N'Guitar', N'Ibanez', N'ARZ307', 9000.00, N'../Images/Guitar
Brands/Guitar Items/ibanezARZ307.jpg', N'../Images/Guitar Brands/Guitar
Items/ibanezARZ307StandingPosition.png', N'Its a Les-Paulish shaped guitar
with a black body and head stock. This is a seven string guitar tuned
BEADGBe from low to high. The grade and quality of this guitar is
exceptional compared to some other brands out there.', N'ARZ Mahogany SetIn
Neck Smooth Heel', N'Maple Top/Mahogany Body', N'Bound Rosewood Fretboard
W/White Block Inlay', N'24 Medium Frets', N'ART-1 Bridge', N'Classic Elite
Neck Pickup Passive/Ceramic', N'Classic Elite Bridge Pickup
Passive/Ceramic', N'Chrome')
INSERT [dbo].[guitarItems] ([id], [type], [brand], [model], [price],
[itemimage1], [itemimage2],[description], [necktype], [body], [fretboard],
[fret], [bridge], [neckpickup], [bridgepickup], [hardwarecolor]) VALUES (2,
N'Guitar',N'Ibanez', N'DT420TCR', 11000.00, N'../Images/Guitar
Brands/Guitar Items/ibanezDT420TCR.jpg', N'../Images/Guitar Brands/Guitar
Items/ibanezDT420TCRStandingPosition.png', N'The Destroyer Series DT420 is
made from mahogany with a transparent cherry sunburst gloss finish. The
single cutaway solid body harks back to the original 1975 design,
delivering maximum resonance and sustain.', N'Destroyer Mahogany Neck',
N'Mahogany', N'Bound Rosewood Fingerboard with Acrylic and Abalone Block
Inlay', N'22 Jumbo Frets', N'Full Tune III', N'Classic Elite
Humbucker,Passive/Ceramic', N'Classic Elite Humbucker, Passive/Ceramic',
N'Chrome')
INSERT [dbo].[guitarItems] ([id], [type], [brand],[model], [price],
[itemimage1], [itemimage2], [description], [necktype], [body], [fretboard],
[fret], [bridge], [neckpickup], [bridgepickup], [hardwarecolor]) VALUES (3,
N'Guitar', N'Ibanez', N'JBM100', 18000.00, N'../Images/Guitar Brands/Guitar
Items/ibanezJBM100.jpg', N'../Images/Guitar Brands/Guitar
Items/ibanezJBM100StandingPosition.png', N'Signature model guitar from Jake
Bowen of Periphery. Due to their heavy progressive sound, He decided to
move the boundaries of guitar design and performance with his new signature
guitar. This guitar is the main definition of tight and aggressive.', N'JBM
3pc Maple/Bubinga neck', N'Maple top/Mahogany body', N'Bound Ebony
fretboard w/JBM special inlay on 12th fret', N'24 Jumbo frets w/Prestige
fret edge treatment', N' Lo-Pro Edge tremolo bridge', N'DiMarzio® Titan™
(H) neck pickup (Passive/Ceramic)', N'DiMarzio® Titan™ (H) bridge pickup
(Passive/Ceramic)', N'Black (Gold machineheads)')
SET IDENTITY_INSERT [dbo].[guitarItems] OFF
actually there are three more columns but it doesn't fit in the image but you can easily identify it in the code. Also i did not include all the code for guitar models because it is too many to show it here.
Please kindly advice on what is the best approach to creating a database design based on the details given above. By the way, this is just for a personal project and will be used for learning purposes only. But I might use this in my portfolio if all goes well.