File tree Expand file tree Collapse file tree 4 files changed +17
-1
lines changed Expand file tree Collapse file tree 4 files changed +17
-1
lines changed Original file line number Diff line number Diff line change 60
60
"structures" : {
61
61
"comment" : " Main data structure tags" ,
62
62
"name" : " entity.name.type.dbml" ,
63
- "match" : " \\ b([pP]roject|[tT]able|[rR]ef|[eE]num|[iI]ndexes|[nN]ote)\\ b"
63
+ "match" : " \\ b([pP]roject|[tT]able([gG]roup)? |[rR]ef|[eE]num|[iI]ndexes|[nN]ote)\\ b"
64
64
},
65
65
"keywords" : {
66
66
"name" : " keyword.dbml" ,
Original file line number Diff line number Diff line change @@ -39,6 +39,11 @@ Table "orders" {
39
39
"created_at" varchar(255) [note: 'When order created']
40
40
}
41
41
42
+ TableGroup "order" [note: "Tables related to orders"] {
43
+ "orders"
44
+ "order_items"
45
+ }
46
+
42
47
Table "products" {
43
48
"id" int [pk]
44
49
"name" varchar(255)
Original file line number Diff line number Diff line change @@ -39,6 +39,11 @@ Table "orders" {
39
39
"created_at" varchar [note: 'When order created']
40
40
}
41
41
42
+ TableGroup "order" [note: "Tables related to orders"] {
43
+ "orders"
44
+ "order_items"
45
+ }
46
+
42
47
Table "products" {
43
48
"id" int [pk]
44
49
"name" varchar
Original file line number Diff line number Diff line change @@ -98,3 +98,9 @@ Table products {
98
98
}
99
99
100
100
Ref: products.merchant_id > merchants.id // many-to-one
101
+
102
+ // TableGroups: You can combine multiple tables in a TableGroup
103
+ TableGroup order {
104
+ orders
105
+ order_items
106
+ }
You can’t perform that action at this time.
0 commit comments