feat(datamart): intial foundation of the datamart setup
this will allow for faster datamart addtions and updates
This commit is contained in:
22
backend/src/datamart/datamartSync.controller.ts
Normal file
22
backend/src/datamart/datamartSync.controller.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
/**
|
||||
* If we are running in client mode we want to periodically check the SERVER_NAME for new/updates queries
|
||||
* this will be on a cronner job, we will check 2 times a day for new data, we will also have a route we can trigger to check this manually incase we have
|
||||
* queries we make for one plant but will eventually go to all plants.
|
||||
* in client mode we will not be able to add, update, or delete
|
||||
*
|
||||
* if we are running on server mode we will provide all queries.
|
||||
* allow for new queries to be added
|
||||
* allow for queries to be updated by id
|
||||
* table will be
|
||||
* id
|
||||
* name
|
||||
* description
|
||||
* query
|
||||
* version
|
||||
* active
|
||||
* options (string ie start,end)
|
||||
* add_date
|
||||
* add_user
|
||||
* upd_date
|
||||
* upd_user
|
||||
*/
|
||||
Reference in New Issue
Block a user