Ok, at the early stages of designing a new database for a client. The application will have a few areas (let's say 5 as an example) that will have note fields. There may be notes for a Company, for a Contact, for a project, for an Invoice, for a Purchase Order, etc.
I've been taught that it's best to keep memo fields as a detached table, with their own ID, and a foreign Key for whatever they need to connect to. This keeps the Main table lean and mean.
So...I'm playing around with the idea of having something like:
So, essentially using 1 table to store all the memo field notes for the application, in lieu of 5 or more separate tables. I like this approach because it seems it can grow with the application. What do you guys think? Any pitfalls to this approach?
I've been taught that it's best to keep memo fields as a detached table, with their own ID, and a foreign Key for whatever they need to connect to. This keeps the Main table lean and mean.
So...I'm playing around with the idea of having something like:
Code:
tblNotes
ID
TypeID (Here I can separate out which type of Note it is) integer
CompanyID (Only filled if the note is tied to a company)
ContactID (same as above)
PurchaseOrderID (same as above)
etc...
Note (memo)
So, essentially using 1 table to store all the memo field notes for the application, in lieu of 5 or more separate tables. I like this approach because it seems it can grow with the application. What do you guys think? Any pitfalls to this approach?