You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
module.exports = [
|
|
|
|
{
|
|
|
|
mapId: 'userMap',
|
|
|
|
idProperty: 'uuid',
|
|
|
|
properties: [
|
|
|
|
'email',
|
|
|
|
'password_hash',
|
|
|
|
'email_confirmed',
|
|
|
|
'time_registered',
|
|
|
|
'time_email_confirmed'
|
|
|
|
]
|
|
|
|
},{
|
|
|
|
mapId: 'populatedUserMap',
|
|
|
|
idProperty: 'uuid',
|
|
|
|
properties: [
|
|
|
|
'email',
|
|
|
|
'password',
|
|
|
|
'email_confirmed',
|
|
|
|
'time_registered',
|
|
|
|
'time_email_confirmed'
|
|
|
|
],
|
|
|
|
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_'}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|