Skip to content

Commit a469250

Browse files
committed
Update package dependencies, modify Prisma configuration, and refine seed data
- Added `@types/node` and updated `ts-node` and `typescript` versions in `package.json`. - Updated Prisma configuration to include a seed script path. - Refined seed data by removing outdated entries and adding new requirements and tasks, enhancing the overall framework structure. - Adjusted relationships in seed data to reflect the latest changes in control templates and requirements.
1 parent fbf2472 commit a469250

11 files changed

+1177
-6470
lines changed

packages/db/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@
77
"dotenv": "^16.4.5"
88
},
99
"devDependencies": {
10+
"@types/node": "^24.2.0",
1011
"prisma": "^6.13.0",
11-
"typescript": "^5.8.3"
12+
"ts-node": "^10.9.2",
13+
"typescript": "^5.9.2"
1214
},
1315
"exports": {
1416
".": "./dist/index.js"

packages/db/prisma.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@ export default defineConfig({
66
schema: path.join('prisma'),
77
migrations: {
88
path: path.join('prisma', 'migrations'),
9+
seed: 'ts-node prisma/seed/seed.ts',
910
},
1011
});

packages/db/prisma/seed/primitives/FrameworkEditorControlTemplate.json

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,6 @@
3434
"createdAt": "2025-06-04 16:12:11.272",
3535
"updatedAt": "2025-06-04 19:41:05.205"
3636
},
37-
{
38-
"id": "frk_ct_684072e06f4a49ee669076cc",
39-
"name": "Malware Protection",
40-
"description": "Protect Systems Against Malware",
41-
"createdAt": "2025-06-04 16:22:56.279",
42-
"updatedAt": "2025-06-04 19:41:06.033"
43-
},
4437
{
4538
"id": "frk_ct_6840738800f98fa3c0f3a3ae",
4639
"name": "Configuration & Patch Management",
@@ -49,11 +42,11 @@
4942
"updatedAt": "2025-06-04 19:41:06.507"
5043
},
5144
{
52-
"id": "frk_ct_684075c692439e38c753c95d",
53-
"name": "Physical Access Control",
54-
"description": "Control Physical Entry to Facilities",
55-
"createdAt": "2025-06-04 16:35:17.828",
56-
"updatedAt": "2025-06-04 19:41:07.120"
45+
"id": "frk_ct_684072e06f4a49ee669076cc",
46+
"name": "Endpoint Protection",
47+
"description": "Protect Systems Against Malware",
48+
"createdAt": "2025-06-04 16:22:56.279",
49+
"updatedAt": "2025-06-09 02:50:51.955"
5750
},
5851
{
5952
"id": "frk_ct_684070831cc83c4ab4c2c4d8",
@@ -90,6 +83,13 @@
9083
"createdAt": "2025-06-04 17:04:20.799",
9184
"updatedAt": "2025-06-04 19:41:07.258"
9285
},
86+
{
87+
"id": "frk_ct_6849ba93636ff0155eb89158",
88+
"name": "Utility Tool monitoring",
89+
"description": "Audits the execution of privileged program",
90+
"createdAt": "2025-06-11 17:19:15.284",
91+
"updatedAt": "2025-06-11 17:19:15.284"
92+
},
9393
{
9494
"id": "frk_ct_683f4a410cf5bf6d40bf3583",
9595
"name": "Access Rights",
@@ -125,20 +125,6 @@
125125
"createdAt": "2025-06-03 19:27:24.623",
126126
"updatedAt": "2025-06-04 19:41:03.972"
127127
},
128-
{
129-
"id": "frk_ct_683f4cf6afd7a19be2d4432c",
130-
"name": "Configuration management",
131-
"description": "Implement Secure Configuration Management",
132-
"createdAt": "2025-06-03 19:28:54.395",
133-
"updatedAt": "2025-06-04 19:41:04.126"
134-
},
135-
{
136-
"id": "frk_ct_683f4d7360a876b972aba39a",
137-
"name": "Vulnerability Disclosure",
138-
"description": "Public CVD channel; triage",
139-
"createdAt": "2025-06-03 19:30:59.173",
140-
"updatedAt": "2025-06-04 19:41:04.258"
141-
},
142128
{
143129
"id": "frk_ct_683f4dd564057a97ae323c9f",
144130
"name": "Disaster Recovery Planning",
@@ -181,13 +167,6 @@
181167
"createdAt": "2025-06-04 16:13:52.979",
182168
"updatedAt": "2025-06-04 19:41:05.484"
183169
},
184-
{
185-
"id": "frk_ct_684070f0b4f6c2036306e23c",
186-
"name": "Network Security",
187-
"description": "Enforce segmentation and firewalls",
188-
"createdAt": "2025-06-04 16:14:40.321",
189-
"updatedAt": "2025-06-04 19:41:05.635"
190-
},
191170
{
192171
"id": "frk_ct_68407122565b1968676d93db",
193172
"name": "Physical Access Control",
@@ -202,6 +181,13 @@
202181
"createdAt": "2025-06-04 16:27:49.808",
203182
"updatedAt": "2025-06-04 19:41:06.874"
204183
},
184+
{
185+
"id": "frk_ct_683f4d7360a876b972aba39a",
186+
"name": "Vulnerability Management",
187+
"description": "Manage both software and code vulnerabilities",
188+
"createdAt": "2025-06-03 19:30:59.173",
189+
"updatedAt": "2025-06-09 03:19:38.679"
190+
},
205191
{
206192
"id": "frk_ct_683f3ecd42e62fde624c59c1",
207193
"name": "Policy Compliance",
@@ -292,5 +278,19 @@
292278
"description": "Ensure Security in Supplier Relationships",
293279
"createdAt": "2025-06-03 19:11:41.449",
294280
"updatedAt": "2025-06-04 19:41:03.278"
281+
},
282+
{
283+
"id": "frk_ct_684070f0b4f6c2036306e23c",
284+
"name": "Architecture Diagram",
285+
"description": "Enforce segmentation and firewalls",
286+
"createdAt": "2025-06-04 16:14:40.321",
287+
"updatedAt": "2025-06-11 16:02:01.899"
288+
},
289+
{
290+
"id": "frk_ct_6849c343d7fbe4e71446ce78",
291+
"name": "Data Masking",
292+
"description": "Hide sensitive fields",
293+
"createdAt": "2025-06-11 17:56:19.307",
294+
"updatedAt": "2025-06-11 17:56:19.307"
295295
}
296-
]
296+
]

packages/db/prisma/seed/primitives/FrameworkEditorFramework.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,6 @@
88
"updatedAt": "2025-05-14 19:20:44.920",
99
"visible": false
1010
},
11-
{
12-
"id": "frk_681fdd150f59a1560a66c89a",
13-
"name": "HIPPA",
14-
"description": "Health Insurance Portability and Accountability Act\r\n\r\nCurrently sufficient for a pure HIPAA Security-Rule audit.*\r\n\r\nCurrently Missing: \r\n\r\n1. Privacy requirements\r\n2. Breach-Notification requirements\r\n3. Soon-to-be-mandatory NPRM items. ",
15-
"version": "2025",
16-
"createdAt": "2025-05-14 19:20:44.920",
17-
"updatedAt": "2025-05-14 19:20:44.920",
18-
"visible": false
19-
},
2011
{
2112
"id": "frk_681ef1952907deb7cb85896d",
2213
"name": "GDPR",
@@ -95,7 +86,16 @@
9586
"description": "ISO 27001",
9687
"version": "2022",
9788
"createdAt": "2025-05-14 19:20:44.920",
98-
"updatedAt": "2025-06-05 10:38:33.912",
99-
"visible": false
89+
"updatedAt": "2025-07-07 06:10:51.312",
90+
"visible": true
91+
},
92+
{
93+
"id": "frk_681fdd150f59a1560a66c89a",
94+
"name": "HIPAA",
95+
"description": "Health Insurance Portability and Accountability Act\r\n\r\n",
96+
"version": "2025",
97+
"createdAt": "2025-05-14 19:20:44.920",
98+
"updatedAt": "2025-07-29 01:20:39.551",
99+
"visible": true
100100
}
101-
]
101+
]

0 commit comments

Comments
 (0)