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.5 KiB
JavaScript

module.exports = [
{
mapId: 'userMap',
idProperty: 'uuid',
properties: [
'email',
5 years ago
'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_'},
5 years ago
{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_'}
]
}
]