Skip to content

Commit 0d648b9

Browse files
committed
feat: added all bank job datasets
1 parent 125cbc5 commit 0d648b9

8 files changed

Lines changed: 188 additions & 13 deletions

File tree

src/config/databases/the-bank-job/edges.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,5 +68,26 @@
6868
"target": "interpol.criminal_aliases",
6969
"targetKey": "criminal_id",
7070
"relation": "hasMany"
71+
},
72+
{
73+
"source": "fake.art_works",
74+
"sourceKey": "id",
75+
"target": "fake.transactions",
76+
"targetKey": "art_work_id",
77+
"relation": "hasMany"
78+
},
79+
{
80+
"source": "fake.transactions",
81+
"sourceKey": "id",
82+
"target": "fake.transactions",
83+
"targetKey": "prev_transaction_id",
84+
"relation": "hasMany"
85+
},
86+
{
87+
"source": "penn_station.storage_units",
88+
"sourceKey": "id",
89+
"target": "penn_station.storage_units_log",
90+
"targetKey": "unit_id",
91+
"relation": "hasMany"
7192
}
7293
]
Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
{
2-
"bank": "#91C4F2",
3-
"interpol": "#BEB8EB",
2+
"DEFAULT": "#91C4F2",
3+
"bank": "#BEB8EB",
4+
"interpol": "#AFA2FF",
45
"sellmycar_com": "#75C9C8",
5-
"nyc_dot": "#F6BDD1"
6+
"nyc_dot": "#F6BDD1",
7+
"penn_station": "#FFD791",
8+
"fake": "#FFA07A"
69
}

src/config/databases/the-bank-job/tablePositions.json

Lines changed: 25 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
"x": 100,
44
"y": 100
55
},
6+
"bank.authorized_vehicles": {
7+
"x": 1200,
8+
"y": 384
9+
},
610
"bank.employees": {
711
"x": 912,
812
"y": 384
@@ -19,17 +23,13 @@
1923
"x": 100,
2024
"y": 500
2125
},
22-
"bank.authorized_vehicles": {
23-
"x": 1200,
24-
"y": 384
25-
},
26-
"sellmycar_com.vehicles": {
27-
"x": 1200,
26+
"fake.art_works": {
27+
"x": 1120,
2828
"y": 800
2929
},
30-
"nyc_dot.road_camera_events": {
31-
"x": 1200,
32-
"y": 1200
30+
"fake.transactions": {
31+
"x": 864,
32+
"y": 816
3333
},
3434
"interpol.cases": {
3535
"x": 100,
@@ -54,5 +54,21 @@
5454
"interpol.criminals": {
5555
"x": 560,
5656
"y": 1104
57+
},
58+
"nyc_dot.road_camera_events": {
59+
"x": 1744,
60+
"y": 384
61+
},
62+
"penn_station.storage_units": {
63+
"x": 1072,
64+
"y": 48
65+
},
66+
"penn_station.storage_units_log": {
67+
"x": 768,
68+
"y": 48
69+
},
70+
"sellmycar_com.vehicles": {
71+
"x": 1472,
72+
"y": 384
5773
}
5874
}

src/config/databases/the-bank-job/tables.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ import casesCrimeTypesTable from "./tables/cases_crime_types.json";
1414
import casesCriminalsTable from "./tables/cases_criminals.json";
1515
import vehiclesTable from "./tables/vehicles.json";
1616
import roadCameraEventsTable from "./tables/road_camera_events.json";
17+
import storageUnitsTable from "./tables/storage_units.json";
18+
import storageUnitsLogTable from "./tables/storage_units_log.json";
19+
import artWorksTable from "./tables/art_works.json";
20+
import transactionsTable from "./tables/transactions.json";
1721

1822
const tables: TableConfig[] = [
1923
accountsTable,
@@ -29,7 +33,11 @@ const tables: TableConfig[] = [
2933
casesCrimeTypesTable,
3034
casesCriminalsTable,
3135
vehiclesTable,
32-
roadCameraEventsTable
36+
roadCameraEventsTable,
37+
storageUnitsTable,
38+
storageUnitsLogTable,
39+
artWorksTable,
40+
transactionsTable
3341
];
3442

3543
export default tables;
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"schema": "fake",
3+
"name": "art_works",
4+
"description": "Fake art works database.",
5+
"columns": [
6+
{
7+
"name": "id",
8+
"key": true,
9+
"description": "Unique identifier of an art work.",
10+
"type": "integer"
11+
},
12+
{
13+
"name": "author",
14+
"description": "Author(s) of the art work.",
15+
"type": "text"
16+
},
17+
{
18+
"name": "creation_date",
19+
"description": "Date when the art work was created.",
20+
"type": "date"
21+
}
22+
]
23+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"schema": "penn_station",
3+
"name": "storage_units",
4+
"description": "Storage units at Penn Station.",
5+
"columns": [
6+
{
7+
"name": "id",
8+
"key": true,
9+
"description": "Unique identifier of a storage unit.",
10+
"type": "integer"
11+
},
12+
{
13+
"name": "width",
14+
"description": "Width of the storage unit.",
15+
"type": "integer"
16+
},
17+
{
18+
"name": "height",
19+
"description": "Height of the storage unit.",
20+
"type": "integer"
21+
},
22+
{
23+
"name": "depth",
24+
"description": "Depth of the storage unit.",
25+
"type": "integer"
26+
}
27+
]
28+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"schema": "penn_station",
3+
"name": "storage_units_log",
4+
"description": "Log entries for storage unit events at Penn Station.",
5+
"columns": [
6+
{
7+
"name": "id",
8+
"key": true,
9+
"description": "Unique identifier of a storage unit log entry.",
10+
"type": "integer"
11+
},
12+
{
13+
"name": "unit_id",
14+
"description": "ID of the storage unit.",
15+
"type": "integer"
16+
},
17+
{
18+
"name": "name",
19+
"description": "Event name.",
20+
"type": "text"
21+
},
22+
{
23+
"name": "created_at",
24+
"description": "Timestamp when the log entry was created.",
25+
"type": "datetime"
26+
}
27+
]
28+
}
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"schema": "fake",
3+
"name": "transactions",
4+
"description": "Transactions of fake art works.",
5+
"columns": [
6+
{
7+
"name": "id",
8+
"key": true,
9+
"description": "Unique identifier of a transaction.",
10+
"type": "integer"
11+
},
12+
{
13+
"name": "art_work_id",
14+
"description": "ID of the art work involved in the transaction.",
15+
"type": "integer"
16+
},
17+
{
18+
"name": "code",
19+
"description": "Unique code of the transaction.",
20+
"type": "text"
21+
},
22+
{
23+
"name": "prev_code",
24+
"description": "Code of the previous transaction in the chain.",
25+
"type": "text"
26+
},
27+
{
28+
"name": "from_party",
29+
"description": "Party that the art work was transferred from (e.g. \"John Doe\").",
30+
"type": "text"
31+
},
32+
{
33+
"name": "to_party",
34+
"description": "Party that the art work was transferred to (e.g. \"Jane Doe\").",
35+
"type": "text"
36+
},
37+
{
38+
"name": "kind",
39+
"description": "Type or kind of the transaction (e.g. \"Purchase\").",
40+
"type": "text"
41+
},
42+
{
43+
"name": "year",
44+
"description": "Year when the transaction occurred.",
45+
"type": "integer"
46+
}
47+
]
48+
}

0 commit comments

Comments
 (0)