summaryrefslogtreecommitdiffstats
path: root/servers/slapd/back-sql/rdbms_depend/timesten/testdb_create.sql
blob: 768aec81c10eacc7dbd02b16711479586cd49e63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
CREATE TABLE persons (
	id int NOT NULL primary key,
	name varchar(255) NOT NULL
) 
unique hash on (id) pages=100;

CREATE TABLE institutes (
	id int NOT NULL primary key,
	name varchar(255)
)
unique hash on (id) pages=100;

CREATE TABLE documents (
	id int NOT NULL primary key,
	title varchar(255) NOT NULL,
	abstract varchar(255)
)
unique hash on (id) pages=100;

CREATE TABLE authors_docs (
	pers_id int NOT NULL,
	doc_id int NOT NULL,
	PRIMARY KEY  
	(
		pers_id,
		doc_id
	)
) unique hash on (pers_id, doc_id) pages=100;

CREATE TABLE phones (
	id int NOT NULL primary key,
	phone varchar(255) NOT NULL ,
	pers_id int NOT NULL 
)
unique hash on (id) pages=100;