Synchronize with tizen 2.4
[platform/core/security/drm-service-core-tizen.git] / tappsd / src / db / DTapps2SqlData.cpp
1 /*
2  * Copyright (c) 2000-2015 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Flora License, Version 1.1 (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://floralicense.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 /**
18  * @file        DTapps2SqlData.cpp
19  * @brief       This file contains all the Database tables.
20  */
21
22 #include "drm_intf_tapps.h"
23
24 #define DTAPPS_TABLE_NAME(name) name "\0"
25 #define DTAPPS_TABLE_CONTINUE        "\0\1"
26 #define DTAPPS_TABLE_END             "\0",
27
28 const char* dtappsCreateTableSQLData[] =
29 {
30         DTAPPS_TABLE_NAME("dtapps2rights")
31                 "CREATE TABLE dtapps2rights ("
32                 "r_id INTEGER PRIMARY KEY AUTOINCREMENT,"
33                 "name VARCHAR(512) DEFAULT NULL,"
34                 "cid VARCHAR(1024) DEFAULT NULL,"
35                 "time_t DATETIME,"
36                 #ifdef DTAPPS_STORE_CEK_IN_DB
37                 "cek VARCHAR(128) DEFAULT NULL,"
38                 "cek_hash VARCHAR(64) DEFAULT NULL,"
39                 #endif
40                 "constraint_buffer VARCHAR(512) DEFAULT NULL,"
41                 "constraint_hash VARCHAR(64) DEFAULT NULL"
42         ");"
43
44         DTAPPS_TABLE_END
45         NULL// empty do not delete this line
46 };