1810c3c8467373631ac00919de6108cc937bd1c8
[platform/core/security/cert-svc.git] / etc / cert_svc_store_db.sql
1
2 PRAGMA foreign_keys = ON;
3
4 BEGIN TRANSACTION;
5
6 CREATE TABLE ssl (
7     gname               TEXT not null,
8     certificate         TEXT not null,
9     file_hash           TEXT not null,
10     subject_hash        TEXT not null,
11     common_name         TEXT not null,
12     enabled             INT not null,
13     is_root_app_enabled INT not null);
14
15 CREATE TABLE wifi (
16     gname               TEXT PRIMARY KEY not null,
17     common_name         TEXT not null,
18     private_key_gname   TEXT,
19     associated_gname    TEXT,
20     is_root_cert        INT,
21     enabled             INT not null,
22     is_root_app_enabled INT not null);
23
24 CREATE TABLE vpn (
25     gname               TEXT PRIMARY KEY not null,
26     common_name         TEXT not null,
27     private_key_gname   TEXT,
28     associated_gname    TEXT,
29     is_root_cert        INT,
30     enabled             INT not null,
31     is_root_app_enabled INT not null);
32
33 CREATE TABLE email (
34     gname               TEXT PRIMARY KEY not null,
35     common_name         TEXT not null,
36     private_key_gname   TEXT,
37     associated_gname    TEXT,
38     is_root_cert        INT,
39     enabled             INT not null,
40     is_root_app_enabled INT not null);
41
42 CREATE TABLE disabled_certs (
43     gname               TEXT PRIMARY KEY not null,
44     certificate         TEXT not null);
45
46 COMMIT;
47