>> To be clear, I'm talking about the "external name" for the field, not the "column name".
yeah, but in a PWA the "external name" is in database.js - (ie in JavaScript) and although I _think_ I've been super diligent there, you'd obviously be the one to find out <g>.
>> The only reason I ask is to make the table relationships a bit more obvious.
The technique I use and recommend seems to work well;
a) every table has a "guid" field - that's the primary key.
So cus:guid is obviously a reference to the primary key field in the cus table.
b) all the foreign keys have the full name. So for example in the Invoices table there's
Inv:CustomerGuid
So reading the tables you can very easily "see" the difference between the PK field for this table, and the Guid fields for other tables. If the PK field was called Inv:InvoiceGuid,then you'd have InvoiceGuid and CustomerGuid and you'd need to mentally "know" this is the Invoice table to spot the PK field.
So, I would argue, that keeping the PK field to a consistent name makes it easier to read the table layouts if viewing the db directly. But of course that is subjective.
cheers
Bruce