diff --git a/docs/adr/adr-008-field-names.md b/docs/adr/adr-008-field-names.md new file mode 100644 index 000000000..d4668bd04 --- /dev/null +++ b/docs/adr/adr-008-field-names.md @@ -0,0 +1,11 @@ +### ADR - 008: Field Names + +We are changing the schema to reflect the way the data is stored in CORE. +This is due to the SPSS queries that are being performed by ADD and the complexity that would come with changing them. + +The field names are saved lowercase as opposed to the uppercase versions we see in CORE. +This is due to Ruby expecting the uppercase parameters to be constants and database fields are expected to be lower case. +These fields could be mapped to their uppercase versions during the replication if needed. + +A lot of the values are now also being stored as enums. +This gives as some validation by default as the values not defined in the enums will fail to save.