Migrate to openssl3
[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  * @file    DTapps2SqlData.cpp
17  * @brief   Database tables.
18  */
19
20 #include "drm_intf_tapps.h"
21
22 #define DTAPPS_TABLE_NAME(name) name "\0"
23 #define DTAPPS_TABLE_CONTINUE        "\0\1"
24 #define DTAPPS_TABLE_END             "\0",
25
26 const char *dtappsCreateTableSQLData[] = {
27         DTAPPS_TABLE_NAME("dtapps2rights")
28         "CREATE TABLE dtapps2rights ("
29         "r_id INTEGER PRIMARY KEY AUTOINCREMENT,"
30         "name VARCHAR(512) DEFAULT NULL,"
31         "cid VARCHAR(1024) DEFAULT NULL,"
32         "time_t DATETIME,"
33 #ifdef DTAPPS_STORE_CEK_IN_DB
34         "cek VARCHAR(128) DEFAULT NULL,"
35         "cek_hash VARCHAR(64) DEFAULT NULL,"
36 #endif
37         "constraint_buffer VARCHAR(512) DEFAULT NULL,"
38         "constraint_hash VARCHAR(64) DEFAULT NULL"
39         ");"
40
41         DTAPPS_TABLE_END
42         NULL// empty do not delete this line
43 };