World-Three-Technologies / Masxaro-Prototype

Other
8 stars 4 forks source link

Change tablename_id to id #9

Closed Rafe closed 13 years ago

Rafe commented 13 years ago

Backbone.js will take id as identifier, so it will be good if the receipt_id can be change to id, in database or assign name in sql function

ghost commented 13 years ago

Is this a name change to the field or changing the field used?

Rafe commented 13 years ago

you mean change the column name or return value name? I only need the change on return value, so add

receipt_id as id 

is okay, but change in the column name to id will be more consistent depend on you.

yaxing commented 13 years ago

I already changed the names and merged into the master so that you can test it. But still I'm not quite understand about this, For example, user table, store table are using accounts as identifier, how would handle them?