MM_36721 : Restructure Entities - Global & System (#5504)

This commit is contained in:
Avinash Lingaloo
2021-07-02 13:08:12 +04:00
committed by GitHub
parent 10bfc9d604
commit 7ff119fdc1
28 changed files with 57 additions and 83 deletions

View File

@@ -279,7 +279,7 @@ export type ProcessRecordResults = {
}
export type RawGlobal = {
name: string;
id: string;
value: string;
};
@@ -343,12 +343,14 @@ export type RawChannel = {
id: string;
last_post_at: number;
name: string;
policy_id: string;
props: Record<string, any> | null;
purpose: string;
scheme_id: string | null;
shared: boolean | null;
team_id: string;
total_msg_count: number;
total_msg_count_root: number;
type: ChannelType;
update_at: number;
};
@@ -580,8 +582,7 @@ export type RawSlashCommand = {
};
export type RawSystem = {
id?: string;
name: string;
id: string;
value: string;
};

View File

@@ -11,9 +11,6 @@ export default class Global extends Model {
/** table (name) : global */
static table: string;
/** name : The label/key to use to retrieve the special 'value' */
name: string;
/** value : The value part of the key-value combination */
/** value : The value part of the key-value combination and whose key will be the id column */
value: any;
}

View File

@@ -12,9 +12,6 @@ export default class System extends Model {
/** table (name) : System */
static table: string;
/** name : The name or key value for the config */
name: string;
/** value : The value for that config/information */
/** value : The value for that config/information and whose key will be the id column */
value: any;
}