-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtemplate.json
More file actions
22 lines (22 loc) · 927 Bytes
/
template.json
File metadata and controls
22 lines (22 loc) · 927 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{
"table": "name of db table",
"sql": "sql for population, example: select * from game where id=?",
"columns": {
"name of column": {
"db": "definition, example: int auto_increment not null primary key",
"access": "access to file, example: rw, w or rw",
"references": "constraints: example: database(id) on delete cascade"
},
"other_column": "simple definition, example: int",
"external column": {
"class": "Moves",
"fk": "property of this class used to instantiate Moves class, example: id"
}
},
"data": [
{ "column name": "column value", "other column": "other column value"},
{ "column name": "column value", "other column": "other column value"},
{ "column name": "column value", "other column": "other column value"}
],
"indexes": ["column to index", "column to index"]
}