module.exports = [ { mapId: 'userMap', idProperty: 'uuid', properties: [ 'email', 'password_hash', 'email_confirmed', 'time_registered', 'time_email_confirmed', 'is_admin' ] },{ mapId: 'populatedUserMap', idProperty: 'uuid', properties: [ 'email', 'password', 'email_confirmed', 'time_registered', 'time_email_confirmed', 'is_admin' ], collections: [ {name: 'login_links', mapId: 'loginLinkMap', columnPrefix: 'login_link_'}, {name: 'sessions', mapId: 'sessionMap', columnPrefix: 'session_'} ] },{ mapId: 'loginLinkMap', idProperty: 'uuid', properties: [ 'time_created', 'timeout_length', 'login_hash' ] },{ mapId: 'sessionMap', idProperty: 'uuid', properties: [ 'time_created', 'time_last_active', 'timeout_length', 'ip_address', 'user_agent', 'referer' ], associations: [ {name: 'originating_link', mapId: 'loginLinkMap', columnPrefix: 'login_link_'}, {name: 'user', mapId: 'userMap', columnPrefix: 'session_user_'}, {name: 'cart', mapId: 'cartMap', columnPrefix: 'cart_'} ] },{ mapId: 'cartMap', idProperty: 'uuid', properties: [], collections: [ {name: 'items', mapId: 'cartItemMap', columnPrefix: 'cart_item_'} ] },{ mapId: 'cartItemMap', idProperty: 'uuid', properties: [ 'count' ], associations: [ {name: 'item', mapId: 'itemMap', columnPrefix: 'item_'} ] } ]