2 * Copyright (c) 2000 - 2016 Samsung Electronics Co., Ltd. All rights reserved.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 #ifndef __RUA_SCHEMA_H__
18 #define __RUA_SCHEMA_H__
20 #define CREATE_RUA_HISTORY_TABLE " \
21 PRAGMA journal_mode = OFF; \
23 CREATE TABLE IF NOT EXISTS rua_history ( \
27 launch_time INTEGER, \
34 PRIMARY KEY(pkg_name, comp_id, instance_id) \
37 #define CREATE_RUA_STAT_TABLE " \
38 PRAGMA journal_mode = OFF; \
40 CREATE TABLE if not exists rua_panel_stat ( \
41 caller_panel TEXT NOT NULL, \
42 rua_stat_tag TEXT NOT NULL, \
43 score INTEGER DEFAULT 0, \
44 PRIMARY KEY(rua_stat_tag, caller_panel) \
54 RUA_COL_INSTANCE_NAME,
62 RUA_STAT_COL_CALLER_PANEL = 0x00,
63 RUA_STAT_COL_RUA_STAT_TAG,
67 #endif /* __RUA_SCHEMA_H__ */