I have two lookup tables, MapShopTypes and PaymentTypes. I can't name the tables Shops and Payments because for example, Shops actually contains the list of MapShops that are of type MapShopType.
Now, it is tempting to make the primary key in each TypeID. But I could possibly run into confusion and if I want to use the same name as the key in foreign key columns, I can have a conflict. But I don't like having to say PaymentTypeID and MapShopTypeID every time I need to reference the columns.
I'm wondering if anyone has input for me on what you would do, and how you handle naming in your own databases.
Maybe I'm making a big deal out of nothing...
Now, it is tempting to make the primary key in each TypeID. But I could possibly run into confusion and if I want to use the same name as the key in foreign key columns, I can have a conflict. But I don't like having to say PaymentTypeID and MapShopTypeID every time I need to reference the columns.
I'm wondering if anyone has input for me on what you would do, and how you handle naming in your own databases.
Maybe I'm making a big deal out of nothing...