-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.grn
30 lines (21 loc) · 1.09 KB
/
schema.grn
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
# "paper" or "book"
table_create Types TABLE_HASH_KEY ShortText
table_create Authors TABLE_HASH_KEY ShortText
table_create PaperPublishers TABLE_HASH_KEY ShortText
table_create Magazines TABLE_HASH_KEY ShortText
column_create Magazines publisher COLUMN_SCALAR PaperPublishers
table_create Volumes TABLE_PAT_KEY ShortText
column_create Volumes magazine COLUMN_SCALAR Magazines
table_create BookPublishers TABLE_HASH_KEY ShortText
table_create ParentCategories TABLE_HASH_KEY ShortText
table_create ChildCategories TABLE_HASH_KEY ShortText
column_create ChildCategories parent COLUMN_SCALAR ParentCategories
table_create Series TABLE_HASH_KEY ShortText
table_create Literature TABLE_HASH_KEY ShortText
column_create Literature type COLUMN_SCALAR Types
column_create Literature title COLUMN_SCALAR ShortText
column_create Literature authors COLUMN_VECTOR Authors
column_create Literature volume COLUMN_SCALAR Volumes
column_create Literature book_publisher COLUMN_SCALAR BookPublishers
column_create Literature child_category COLUMN_SCALAR ChildCategories
column_create Literature series COLUMN_SCALAR Series