-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit adds a table for profiles so that we can reference controls, and results to a parent profile. This table is not designed, at least initially, to store more than just a profile name and some metadata. This area will be tricky to navigate moving forward since it would be idea to rely on OSCAL defintions for profiles, and use OSCAL profiles distributed by standards bodies, and not maintain them in a service. This approach is being discussed in issue #84. Fixes #32
- Loading branch information
Showing
3 changed files
with
11 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
DROP TABLE IF EXISTS profiles; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
CREATE TABLE IF NOT EXISTS profiles ( | ||
id uuid PRIMARY KEY, | ||
name VARCHAR(255), | ||
metadata_id UUID, | ||
catalog_id UUID, | ||
CONSTRAINT fk_profiles_metadata_id FOREIGN KEY (metadata_id) REFERENCES metadata(id), | ||
CONSTRAINT fk_profiles_catalog_id FOREIGN KEY (catalog_id) REFERENCES catalogs(id) | ||
); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters