2 * Copyright (c) 2000-2015 Samsung Electronics Co., Ltd.
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
8 * http://floralicense.org/license/
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.
18 * @file DTapps2SqlData.cpp
19 * @brief This file contains all the Database tables.
22 #include "drm_intf_tapps.h"
24 #define DTAPPS_TABLE_NAME(name) name "\0"
25 #define DTAPPS_TABLE_CONTINUE "\0\1"
26 #define DTAPPS_TABLE_END "\0",
28 const char* dtappsCreateTableSQLData[] =
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,"
36 #ifdef DTAPPS_STORE_CEK_IN_DB
37 "cek VARCHAR(128) DEFAULT NULL,"
38 "cek_hash VARCHAR(64) DEFAULT NULL,"
40 "constraint_buffer VARCHAR(512) DEFAULT NULL,"
41 "constraint_hash VARCHAR(64) DEFAULT NULL"
45 NULL// empty do not delete this line