4 * Copyright (c) 2000 - 2012 Samsung Electronics Co., Ltd. All rights reserved.
6 * Contact: Jayoun Lee <airjany@samsung.com>
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
22 #ifndef __RUA_SCHEMA_H__
23 #define __RUA_SCHEMA_H__
25 #define CREATE_RUA_HISTORY_TABLE " \
26 PRAGMA journal_mode = PERSIST; \
28 CREATE TABLE IF NOT EXISTS rua_history ( \
29 id INTEGER PRIMARY KEY, \
37 #define CREATE_RUA_STAT_TABLE " \
38 CREATE TABLE if not exists rua_panel_stat ( \
39 caller_panel TEXT NOT NULL, \
40 rua_stat_tag TEXT NOT NULL, \
41 score INTEGER DEFAULT 0, \
42 PRIMARY KEY(rua_stat_tag, caller_panel) \
56 RUA_STAT_COL_CALLER_PANEL = 0x00,
57 RUA_STAT_COL_RUA_STAT_TAG,
63 #endif /* __RUA_SCHEMA_H__ */