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:
Avinash Lingaloo
2022-04-07 17:56:40 +04:00
committed by GitHub
parent 0950dbd21b
commit b5c53d769f
10 changed files with 97 additions and 7 deletions

View File

@@ -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},
],
}),
],

View File

@@ -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';

View File

@@ -17,3 +17,4 @@ export default tableSchema({
{name: 'identifier', type: 'string', isIndexed: true},
],
});

View File

@@ -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},
],
},
},