Revize 1036d66a
Přidáno uživatelem David Friesecký před asi 4 roky(ů)
SQLite_database.sql | ||
---|---|---|
1 | 1 |
/* ---------------------------------------------------- */ |
2 | 2 |
/* Generated by Enterprise Architect Version 13.5 */ |
3 |
/* Created On : 01-dub-2021 9:21:01 */
|
|
3 |
/* Created On : 01-dub-2021 15:16:53 */
|
|
4 | 4 |
/* DBMS : SQLite */ |
5 | 5 |
/* ---------------------------------------------------- */ |
6 | 6 |
|
... | ... | |
18 | 18 |
DROP TABLE IF EXISTS 'Certificates' |
19 | 19 |
; |
20 | 20 |
|
21 |
DROP TABLE IF EXISTS 'CertificatesUsages'
|
|
21 |
DROP TABLE IF EXISTS 'CertificateUsages' |
|
22 | 22 |
; |
23 | 23 |
|
24 | 24 |
/* Create Tables with Primary and Foreign Keys, Check and Unique Constraints */ |
... | ... | |
27 | 27 |
( |
28 | 28 |
'id' INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, |
29 | 29 |
'private_key' TEXT NOT NULL, |
30 |
'password' TEXT NOT NULL
|
|
30 |
'password' TEXT NULL |
|
31 | 31 |
) |
32 | 32 |
; |
33 | 33 |
|
... | ... | |
61 | 61 |
) |
62 | 62 |
; |
63 | 63 |
|
64 |
CREATE TABLE 'CertificatesUsages'
|
|
64 |
CREATE TABLE 'CertificateUsages' |
|
65 | 65 |
( |
66 | 66 |
'id' INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, |
67 |
'certificate_id' INTEGER NULL, |
|
68 |
'usage_type_id' INTEGER NULL, |
|
67 |
'certificate_id' INTEGER NOT NULL,
|
|
68 |
'usage_type_id' INTEGER NOT NULL,
|
|
69 | 69 |
CONSTRAINT 'FK_Certificates' FOREIGN KEY ('certificate_id') REFERENCES 'Certificates' ('id') ON DELETE Cascade ON UPDATE No Action, |
70 | 70 |
CONSTRAINT 'FK_UsageTypes' FOREIGN KEY ('usage_type_id') REFERENCES 'UsageTypes' ('id') ON DELETE No Action ON UPDATE No Action |
71 | 71 |
) |
Také k dispozici: Unified diff
Re: #8471 - Modified database
- password can be null
- FKs in CertificateUsages can not be null