I am building a pto (paid time off) module for my company, and I’m not sure that my database schema is a sound one. I’m using MySQL.
users are employees,
pto_requests are the requests they make for time off, and
pto_balances is their time off balances in the form of a balance sheet with negative values for hours used and positive values for hours added. The user’s pto balance is figured by summing their pto_balance records for the current
pto_type is basically Vacation, Sick, Compensation, etc. Balance line items could be spawned by a request the user made, a manual adjustment by an admin, or the system giving them the year’s vacation hours.
Compensation time needs to be used within 30 days, so I added an expires_on date.
I’ve noticed a couple of problems so far:
- Vacation time that spans from December to January can’t be counted in both years, only one.
- There’s no way to know if they “used” time that was going to expire. So excluding it from my calculation will just leave them with a negative balance if they did.
- Getting the “base hours” an employee gets will require selecting a specific balance sheet item that they system added at the beginning of the year. The system automatically inserts 96 hours for each employee at the start of the year.
Is this a sound data model?
✓ Extra quality
ExtraProxies brings the best proxy quality for you with our private and reliable proxies
✓ Extra anonymity
Top level of anonymity and 100% safe proxies – this is what you get with every proxy package
✓ Extra speed
1,ooo mb/s proxy servers speed – we are way better than others – just enjoy our proxies!
USA proxy location
We offer premium quality USA private proxies – the most essential proxies you can ever want from USA
Our proxies have TOP level of anonymity + Elite quality, so you are always safe and secure with your proxies
Use your proxies as much as you want – we have no limits for data transfer and bandwidth, unlimited usage!
Superb fast proxy servers with 1,000 mb/s speed – sit back and enjoy your lightning fast private proxies!
99,9% servers uptime
Alive and working proxies all the time – we are taking care of our servers so you can use them without any problems
No usage restrictions
You have freedom to use your proxies with every software, browser or website you want without restrictions
Perfect for SEO
We are 100% friendly with all SEO tasks as well as internet marketing – feel the power with our proxies
Buy more proxies and get better price – we offer various proxy packages with great deals and discounts
We are working 24/7 to bring the best proxy experience for you – we are glad to help and assist you!