GithubHelp home page GithubHelp logo

06-23-catering's Introduction

Catering Finance Manager

The catering finance manager helps keep track of employees' wages.

For example - I have 5 employees in my company. In the last week my company has catered 8 events. Each event has one employee as the manager and at least one other employee. Given that each event has its own length of time, base hourly pay, and possibly a gratuity (to be split), I want to be able to write each employee their checks at the end of a week. I also want to make sure that I didn't make any errors such as paying two people to manage one event.

Description

employees table

    • id (primary key)
    • name (text)
    • age (integer)

events table

    • id (primary key)
    • date (text?)
    • length (number)
    • hourly pay (number)
    • gratuity (number)
    • serving alcohol? (boolean)

distributions table

    • id (primary key)
    • employee_id (foreign key)
    • event_id (foreign key)
    • manager? (boolean)

What we should be able to do

    • add an employee
    • delete an employee
    • modify an employee
    • add an event
    • delete an event
    • modify an event
    • attach one or many events to one or many employees
    • calculate how much an employee earned (possibly over a given time period)
    • calculate how many hours an employee worked (possibly over a given time period)

What we should not be able to do

    • add an employee who is under 19 to an alcohol serving event
    • have more than one manager attached to a event
    • split tips with a manager

06-23-catering's People

Contributors

larshollingsed avatar patmando73 avatar

Watchers

James Cloos avatar  avatar

06-23-catering's Issues

models and tables

Tables -

employees table

id (primary key) name (text) age (integer)
1 April 33
2 Jarad 35
3 Lars 18

events table

id (primary key) date (text) hours (number) hourly_wage (number) gratuity (number) alcohol (text)
1 06-11 5.5 10.50 30 true
2 06-12 7 9.75 50 true
3 06-13 4 15.00 0 false

distributions table

id (primary key) employee_id (foreign key) event_id (foreign key) manager (text)
1 1 1 true
2 1 2 false
3 2 1 false
4 3 1 false

Refactoring

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.