-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add options and preferences assistants (#432)
* Add module enable fields to site info table * Add active module fields for all modules * Use panel for options assistant
- Loading branch information
1 parent
254d4b2
commit d854cf4
Showing
24 changed files
with
883 additions
and
398 deletions.
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
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
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 |
---|---|---|
@@ -1,14 +1,10 @@ | ||
DROP DATABASE IF EXISTS ramstk_common_ramstk; | ||
CREATE DATABASE ramstk_common_ramstk; | ||
\c ramstk_common_ramstk; | ||
|
||
CREATE TABLE IF NOT EXISTS ramstk_user ( | ||
fld_user_id INTEGER NOT NULL, | ||
fld_user_lname VARCHAR ( 256 ), | ||
fld_user_fname VARCHAR ( 256 ), | ||
fld_user_email VARCHAR ( 256 ), | ||
fld_user_phone VARCHAR ( 256 ), | ||
fld_user_group_id VARCHAR ( 256 ), | ||
fld_user_lname VARCHAR ( 256 ), | ||
fld_user_fname VARCHAR ( 256 ), | ||
fld_user_email VARCHAR ( 256 ), | ||
fld_user_phone VARCHAR ( 256 ), | ||
fld_user_group_id VARCHAR ( 256 ), | ||
PRIMARY KEY(fld_user_id) | ||
); | ||
INSERT INTO ramstk_user VALUES (1,'Tester','Johnny','[email protected]','+1.269.867.5309','1'); | ||
|
@@ -256,16 +252,29 @@ INSERT INTO ramstk_stakeholders VALUES (4,'Management'); | |
|
||
CREATE TABLE IF NOT EXISTS ramstk_site_info ( | ||
fld_site_id INTEGER NOT NULL, | ||
fld_product_key VARCHAR ( 512 ), | ||
fld_expire_on DATE, | ||
fld_function_enabled INTEGER, | ||
fld_requirement_enabled INTEGER, | ||
fld_hardware_enabled INTEGER, | ||
fld_vandv_enabled INTEGER, | ||
fld_fmea_enabled INTEGER, | ||
fld_site_name VARCHAR(512), | ||
fld_product_key VARCHAR(512), | ||
fld_expire_on DATE, | ||
fld_function_enabled INTEGER, | ||
fld_requirement_enabled INTEGER, | ||
fld_hardware_enabled INTEGER, | ||
fld_software_enabled INTEGER, | ||
fld_rcm_enabled INTEGER, | ||
fld_testing_enabled INTEGER, | ||
fld_incident_enabled INTEGER, | ||
fld_survival_enabled INTEGER, | ||
fld_vandv_enabled INTEGER, | ||
fld_hazard_enabled INTEGER, | ||
fld_stakeholder_enabled INTEGER, | ||
fld_allocation_enabled INTEGER, | ||
fld_similar_item_enabled INTEGER, | ||
fld_fmea_enabled INTEGER, | ||
fld_pof_enabled INTEGER, | ||
fld_rbd_enabled INTEGER, | ||
fld_fta_enabled INTEGER, | ||
PRIMARY KEY(fld_site_id) | ||
); | ||
INSERT INTO ramstk_site_info VALUES (1,'0000','2019-08-20',0,0,0,0,0); | ||
INSERT INTO ramstk_site_info VALUES (1,'DEMO SITE','DEMO',CURRENT_DATE + 30,1,1,1,0,0,0,0,0,1,1,1,1,1,1,1,0,0); | ||
|
||
CREATE TABLE IF NOT EXISTS ramstk_rpn ( | ||
fld_rpn_id INTEGER NOT NULL, | ||
|
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
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
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
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
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
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
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,35 @@ | ||
# Standard Library Imports | ||
from typing import Any | ||
|
||
# RAMSTK Package Imports | ||
from ramstk.db import RAMSTK_BASE as RAMSTK_BASE | ||
from ramstk.models import RAMSTKBaseTable as RAMSTKBaseTable | ||
|
||
class RAMSTKSiteInfo(RAMSTK_BASE, RAMSTKBaseTable): | ||
__defaults__: Any = ... | ||
__tablename__: str = ... | ||
__table_args__: Any = ... | ||
site_id: Any = ... | ||
site_name: Any = ... | ||
product_key: Any = ... | ||
expire_on: Any = ... | ||
function_enabled: Any = ... | ||
requirement_enabled: Any = ... | ||
hardware_enabled: Any = ... | ||
software_enabled: Any = ... | ||
rcm_enabled: Any = ... | ||
testing_enabled: Any = ... | ||
incident_enabled: Any = ... | ||
survival_enabled: Any = ... | ||
vandv_enabled: Any = ... | ||
hazard_enabled: Any = ... | ||
stakeholder_enabled: Any = ... | ||
allocation_enabled: Any = ... | ||
similar_item_enabled: Any = ... | ||
fmea_enabled: Any = ... | ||
pof_enabled: Any = ... | ||
rbd_enabled: Any = ... | ||
fta_enabled: Any = ... | ||
|
||
def get_attributes(self): | ||
... |
Oops, something went wrong.