Tizen 2.1 base
[apps/home/libslp-alarm.git] / include / db-schema.h
1 /*
2 *
3 * Copyright 2012  Samsung Electronics Co., Ltd
4 *
5 * Licensed under the Flora License, Version 1.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 *    http://floralicense.org/license/
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 *
17 */
18 #ifndef __ALARM_SCHEMA_H__
19 #define __ALARM_SCHEMA_H__
20
21 #include <db-util.h>
22
23 #define CREATE_ALARM_TABLE " \
24     create table if not exists alarm ( \
25             id INTEGER PRIMARY KEY autoincrement, \
26             magic INTEGER, \
27             alarm_mgr_id INTEGER, \
28             enable INTEGER, \
29             missed INTEGER, \
30             author INTEGER, \
31             name TEXT, \
32             stime INTEGER, \
33             atime INTEGER, \
34             etime INTEGER, \
35             sdate INTEGER, \
36             edate INTEGER, \
37             timezone TEXT, \
38             repeat_once INTEGER, \
39             repeat_every INTEGER, \
40             repeat_weekly INTEGER, \
41             snooze_enable INTEGER, \
42             snooze_min INTEGER, \
43             snooze_times INTEGER, \
44             count INTEGER, \
45             type INTEGER, \
46             tone TEXT, \
47             volume INTEGER, \
48             auto_power_on INTEGER \
49     );"
50
51 #endif                          /* __ALARM_SCHEMA_H__ */