An environmental database for high-rate data, individual data points, and everything in between.
Many of the design decisions for this database were inspired by the paper Towards a water quality database for raw and validated data with emphasis on structured metadata.
To install the application:
That should do it. Most likely issue is with the user; make sure the user you create & use has permission to read, write, and delete for every table in the database.
You'll need Node 12 and NPM 6. On Windows, highly recommended you start by installing git bash, if you haven't already.
npm install
to install all the dependencies. npm run build
to execute webpack and bundle the javascript code. npm start
to run the Electron app. npm run make
to create an Electron project.Tables are singular. So are columns. Pascal casing (all first words upper, no spaces or underscores). Many-to-many tables include the names of both tables. Dtm means datetime. IDs get unique names (unique throughout the database). Foreign key columns have the exact same name as the primary key of the joined table. No prefixes or suffixes on tables or columns. The following suffixes on other things:
Mostly this is cribbed from https://stackoverflow.com/questions/4702728/relational-table-naming-convention/4703155#4703155. By convention, names are varchar(100), and descriptions are varchar(255).
VueJS components are translated into valid HTML and back. HTML doesn't recognize cases, so CamelCase is not great. For components we've been using just flatvariablenames, which isn't great. Kebob-case is a possible alternative, but not how we're doing things right now.