forked from Ivasoft/mattermost-mobile
Gekidou - Updated App Database Diagrams/Schema/Models (#6133)
* app database - schema md file * exported docs * proper refactor of file name
This commit is contained in:
@@ -29,9 +29,9 @@ export const schema: AppSchema = appSchema({
|
||||
columns: [
|
||||
{name: 'db_path', type: 'string'},
|
||||
{name: 'display_name', type: 'string'},
|
||||
{name: 'url', type: 'string', isIndexed: true},
|
||||
{name: 'last_active_at', type: 'number', isIndexed: true},
|
||||
{name: 'identifier', type: 'string', isIndexed: true},
|
||||
{name: 'last_active_at', type: 'number', isIndexed: true},
|
||||
{name: 'url', type: 'string', isIndexed: true},
|
||||
],
|
||||
}),
|
||||
],
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
||||
// See LICENSE.txt for license information.
|
||||
|
||||
export {default as app} from './app';
|
||||
export {default as info} from './info';
|
||||
export {default as global} from './global';
|
||||
export {default as servers} from './servers';
|
||||
|
||||
@@ -17,3 +17,4 @@ export default tableSchema({
|
||||
{name: 'identifier', type: 'string', isIndexed: true},
|
||||
],
|
||||
});
|
||||
|
||||
|
||||
@@ -39,16 +39,16 @@ describe('*** Test schema for APP database ***', () => {
|
||||
columns: {
|
||||
db_path: {name: 'db_path', type: 'string'},
|
||||
display_name: {name: 'display_name', type: 'string'},
|
||||
url: {name: 'url', type: 'string', isIndexed: true},
|
||||
last_active_at: {name: 'last_active_at', type: 'number', isIndexed: true},
|
||||
identifier: {name: 'identifier', type: 'string', isIndexed: true},
|
||||
last_active_at: {name: 'last_active_at', type: 'number', isIndexed: true},
|
||||
url: {name: 'url', type: 'string', isIndexed: true},
|
||||
},
|
||||
columnArray: [
|
||||
{name: 'db_path', type: 'string'},
|
||||
{name: 'display_name', type: 'string'},
|
||||
{name: 'url', type: 'string', isIndexed: true},
|
||||
{name: 'last_active_at', type: 'number', isIndexed: true},
|
||||
{name: 'identifier', type: 'string', isIndexed: true},
|
||||
{name: 'last_active_at', type: 'number', isIndexed: true},
|
||||
{name: 'url', type: 'string', isIndexed: true},
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user