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.
16 * @file DTapps2SqlData.cpp
17 * @brief Database tables.
20 #include "drm_intf_tapps.h"
22 #define DTAPPS_TABLE_NAME(name) name "\0"
23 #define DTAPPS_TABLE_CONTINUE "\0\1"
24 #define DTAPPS_TABLE_END "\0",
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,"
33 #ifdef DTAPPS_STORE_CEK_IN_DB
34 "cek VARCHAR(128) DEFAULT NULL,"
35 "cek_hash VARCHAR(64) DEFAULT NULL,"
37 "constraint_buffer VARCHAR(512) DEFAULT NULL,"
38 "constraint_hash VARCHAR(64) DEFAULT NULL"
42 NULL// empty do not delete this line