I have seen that before. Its about python coding style.

I am trying to discuss database table and field naming style here.

Care to comment on the following table structure, please:

db.define_table('lu_address_type',
Field('name'))

db.define_table('contact',
Field('name'))

db.define_table('address',
Field('contact_id', db.contact),
Field('lu_address_type_id', db.lu_address_type),
Field('address_text'))

Note: 
lu_address_type will contain four entries i.e. permanent, temporary, postal 
and additional since these are the different types of addresses a person may 
have. Since it is used as a lookup, i have given it a prefix 'lu_' 

lu_address_type_id is a reference field referring to the primary key of the 
lu_address_type table.

Reply via email to