nottinghack / database Goto Github PK
View Code? Open in Web Editor NEWDatabase schema and stored procedures used by hms and instrumentation projects
Database schema and stored procedures used by hms and instrumentation projects
The rfid tag table has a last seen column which is updated via gatekeeper usage and the sp_check_rfid procedure
-- Update the last used time set against the card
update rfid_tags
set last_used = sysdate()
where rfid_tags.rfid_serial = rfid_serial;
For new HMS RIFD access page we would like this number to also be updated when a card is used by a tool or vending machine,
Quick look shows that it needs changing in at least 3 other files
sp_tool_sign_off.sql
sp_tool_sign_on.sql
sp_vend_check_rfid.sql
Alex suggested that this might need a refactor so its only need changes like this in one place in the future
database/procedures/fn_tool_in_maintenance_slot.sql
Lines 25 to 26 in 067d018
GTE and LTE are the wrong way round and should be flipped
HMS 2.0 stores everything in the database as UTC
SP's need updating to do the same
any dates used for display should be converted back to Europe/London (for the most part)
Laser statistics don't consider new laser cutter:
https://hms.nottinghack.org.uk/statistics/laser-usage
Probably need to update the tool id's in views/vw_laser_usage.sql
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.