Hi! I work for a company that has machinery built by outside vendors, and re-sells the equipment to its customers. Currently we track our drawings using an Excel spreadsheet, which is a disaster waiting to happen.
I've been asked to design an Oracle database that will informally and simply track and report the status of our company's vendor engineering drawings. I'm more familiar wiht Access, so I'm going to get it working in Access now and then try to make it work in Oracle or MySQL later.
The database should store the revision history of each drawing, vs. just giving you whatever the current revision is. Another optional feature for future development is tracking revisions to individual sheets of the drawing vs. the entire drawing.
First of all, I want to make sure that I'm designing my tables correctly. Here is what I have so far:
tblDrawings
DrawingID(PK)
DrawingNumber
DrawingTitle
Sheet
TotalSheets
SubmittalDate
SubmittalDocument
This represents all of the properties of a drawing that a pertinent, except for two other fields:
RevisionLetter
VendorCAGECode
Now, I guess I could have added these to tblDrawings, I decided to make these additional tables instead, to try and normalize the tables:
tblRevisions
RevisionID(PK)
RevisionLetter
RevisionDate
Description
tblVendors
VendorID(PK)
VendorCAGEcode
VendorName
VendorAddress
VendorPhone
VendorPOC
tblPersonnel
EmployeeID(PK)
Name
Dept
Position
So I want to be able to define several properties for a drawing object, including:
1. Revisions to individual pages (children) of a drawing
2. Revisions to the Drawing and any of its individual pages
3. A description of each change that makes up a revision, so that a single Record in tblRevisions can have several comments associated with it (Do I need another table called Comments?)
So a drawing can have several sheets, a drawing can have several revisions, a drawing can have several sheets and a sheet can have several revisions, and any revision can have several comments.
Am I on the right track, or am I making this harder than it has to be?
I've been asked to design an Oracle database that will informally and simply track and report the status of our company's vendor engineering drawings. I'm more familiar wiht Access, so I'm going to get it working in Access now and then try to make it work in Oracle or MySQL later.
The database should store the revision history of each drawing, vs. just giving you whatever the current revision is. Another optional feature for future development is tracking revisions to individual sheets of the drawing vs. the entire drawing.
First of all, I want to make sure that I'm designing my tables correctly. Here is what I have so far:
tblDrawings
DrawingID(PK)
DrawingNumber
DrawingTitle
Sheet
TotalSheets
SubmittalDate
SubmittalDocument
This represents all of the properties of a drawing that a pertinent, except for two other fields:
RevisionLetter
VendorCAGECode
Now, I guess I could have added these to tblDrawings, I decided to make these additional tables instead, to try and normalize the tables:
tblRevisions
RevisionID(PK)
RevisionLetter
RevisionDate
Description
tblVendors
VendorID(PK)
VendorCAGEcode
VendorName
VendorAddress
VendorPhone
VendorPOC
tblPersonnel
EmployeeID(PK)
Name
Dept
Position
So I want to be able to define several properties for a drawing object, including:
1. Revisions to individual pages (children) of a drawing
2. Revisions to the Drawing and any of its individual pages
3. A description of each change that makes up a revision, so that a single Record in tblRevisions can have several comments associated with it (Do I need another table called Comments?)
So a drawing can have several sheets, a drawing can have several revisions, a drawing can have several sheets and a sheet can have several revisions, and any revision can have several comments.
Am I on the right track, or am I making this harder than it has to be?