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.

70 lines
1.4 KiB
JavaScript

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: 'sessions', mapId: 'sessionMap', columnPrefix: 'session_'}
]
},{
mapId: 'emailLinkMap',
idProperty: 'uuid',
properties: [
'time_created',
'timeout_length',
'login_hash',
'time_used',
'user_uuid'
]
},{
mapId: 'sessionMap',
idProperty: 'uuid',
properties: [
'time_created',
'time_last_active',
'timeout_length',
'ip_address',
'user_agent',
'referer'
],
associations: [
{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_'}
]
}
]