File tree Expand file tree Collapse file tree 3 files changed +75
-29
lines changed Expand file tree Collapse file tree 3 files changed +75
-29
lines changed Original file line number Diff line number Diff line change 1+ # Exclude tests folder from releases
2+ tests / export-ignore
3+ tests /** export-ignore
Original file line number Diff line number Diff line change 55import json
66import os
77
8- PORT = 3000
8+ PORT = 8000
99ALLOWED_FILES = {"test.json" , "solution.json" } # ← add
1010
1111class Handler (SimpleHTTPRequestHandler ):
Original file line number Diff line number Diff line change 11{
2- "name" : " Untitled schema" ,
2+ "version" : " 1.0" ,
3+ "name" : " ShopDB" ,
34 "tables" : [
45 {
5- "id" : " tbl_users_5jfh90d " ,
6+ "id" : " tbl_users " ,
67 "name" : " users" ,
78 "columns" : [
89 {
9- "id" : " col_id_tp7z9eh " ,
10+ "id" : " u_id " ,
1011 "name" : " id" ,
1112 "type" : " int" ,
1213 "nullable" : false ,
1314 "default" : null
15+ },
16+ {
17+ "id" : " u_email" ,
18+ "name" : " email" ,
19+ "type" : " varchar(255)" ,
20+ "nullable" : false ,
21+ "default" : null
22+ },
23+ {
24+ "id" : " u_name" ,
25+ "name" : " name" ,
26+ "type" : " varchar(255)" ,
27+ "nullable" : false ,
28+ "default" : null
1429 }
1530 ],
1631 "primaryKey" : [
17- " col_id_tp7z9eh "
32+ " u_id "
1833 ],
1934 "uniqueConstraints" : [
2035 {
21- "id" : " uq_obntuki " ,
36+ "id" : " uq_users_email " ,
2237 "columns" : [
23- " col_id_tp7z9eh "
38+ " u_email "
2439 ]
2540 }
2641 ],
2742 "indexes" : [],
2843 "position" : {
29- "x" : 656 ,
30- "y" : 133
31- },
32- "color" : " white"
44+ "x" : 821 ,
45+ "y" : 342
46+ }
3347 },
3448 {
35- "id" : " tbl_wow_ntv1bum " ,
36- "name" : " peep " ,
49+ "id" : " tbl_orders " ,
50+ "name" : " orders**** " ,
3751 "columns" : [
3852 {
39- "id" : " col_id_w4l8ea5 " ,
53+ "id" : " o_id " ,
4054 "name" : " id" ,
4155 "type" : " int" ,
4256 "nullable" : false ,
4357 "default" : null
4458 },
4559 {
46- "id" : " col_user_id_v0cqfey " ,
60+ "id" : " o_user_id " ,
4761 "name" : " user_id" ,
4862 "type" : " int" ,
4963 "nullable" : false ,
5064 "default" : null
65+ },
66+ {
67+ "id" : " o_total" ,
68+ "name" : " total" ,
69+ "type" : " decimal(10,2)" ,
70+ "nullable" : false ,
71+ "default" : " 0.00"
5172 }
5273 ],
5374 "primaryKey" : [
54- " col_id_w4l8ea5"
55- ],
56- "uniqueConstraints" : [
57- {
58- "id" : " uq_54xxf1u" ,
59- "columns" : [
60- " col_id_w4l8ea5"
61- ]
62- }
75+ " o_id"
6376 ],
77+ "uniqueConstraints" : [],
6478 "indexes" : [],
6579 "position" : {
66- "x" : 304 ,
67- "y" : 223
68- },
69- "color" : " red"
80+ "x" : 400 ,
81+ "y" : 383
82+ }
83+ },
84+ {
85+ "id" : " tbl_meow_jp8fv68" ,
86+ "name" : " meow" ,
87+ "columns" : [],
88+ "primaryKey" : [],
89+ "uniqueConstraints" : [],
90+ "indexes" : [],
91+ "position" : {
92+ "x" : 484 ,
93+ "y" : 262
94+ }
7095 }
7196 ],
72- "foreignKeys" : []
97+ "foreignKeys" : [
98+ {
99+ "id" : " fk_orders_user" ,
100+ "from" : {
101+ "table" : " tbl_orders" ,
102+ "columns" : [
103+ " o_user_id"
104+ ]
105+ },
106+ "to" : {
107+ "table" : " tbl_users" ,
108+ "columns" : [
109+ " u_id"
110+ ]
111+ },
112+ "onDelete" : " CASCADE" ,
113+ "onUpdate" : " NO ACTION"
114+ }
115+ ]
73116}
You can’t perform that action at this time.
0 commit comments