apply FSL(Flora Software License)
[apps/core/preloaded/libslp-alarm.git] / include / db-schema.h
1 /*
2   * Copyright 2012  Samsung Electronics Co., Ltd
3   * 
4   * Licensed under the Flora License, Version 1.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
7   * 
8   *     http://www.tizenopensource.org/license
9   * 
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.
15   */
16
17 #ifndef __ALARM_SCHEMA_H__
18 #define __ALARM_SCHEMA_H__
19
20 #include <db-util.h>
21
22 #define CREATE_ALARM_TABLE " \
23     create table if not exists alarm ( \
24             id INTEGER PRIMARY KEY autoincrement, \
25             magic INTEGER, \
26             alarm_mgr_id INTEGER, \
27             enable INTEGER, \
28             missed INTEGER, \
29             author INTEGER, \
30             name TEXT, \
31             stime INTEGER, \
32             atime INTEGER, \
33             etime INTEGER, \
34             sdate INTEGER, \
35             edate INTEGER, \
36             timezone TEXT, \
37             repeat_once INTEGER, \
38             repeat_every INTEGER, \
39             repeat_weekly INTEGER, \
40             snooze_enable INTEGER, \
41             snooze_min INTEGER, \
42             snooze_times INTEGER, \
43             count INTEGER, \
44             type INTEGER, \
45             tone TEXT, \
46             volume INTEGER, \
47             auto_power_on INTEGER \
48     );"
49
50 #endif                          /* __ALARM_SCHEMA_H__ */