paradigm-channels
Version:
64 lines (63 loc) • 1.33 kB
JavaScript
module.exports = {
tables: [
{
action: 'create',
table: 'channels',
indexes: [
'applicationId',
'organizationId',
'slug'
],
compoundIndexes: [
{
name: 'link_channel_applicationId',
indexes: ['id', 'applicationId']
},
{
name: 'link_channelSlug_applicationId',
indexes: ['slug', 'applicationId']
},
{
name: 'link_organization_channelId',
indexes: ['organizationId', 'id']
},
{
name: 'link_organization_channelSlug',
indexes: ['organizationId', 'slug']
}
]
},
{
action: 'create',
table: 'channel_cache'
},
{
action: 'create',
table: 'link_channels_channels',
indexes: [
'channelParentId',
'channelChildId'
],
compoundIndexes: [
{
name: 'link_channel_channel',
indexes: ['channelParentId', 'channelChildId']
}
]
},
{
action: 'create',
table: 'link_channels_documents',
indexes: [
'channelId',
'documentId'
],
compoundIndexes: [
{
name: 'link_channel_document',
indexes: ['channelId', 'documentId']
}
]
},
]
}