GithubHelp home page GithubHelp logo

rbs's People

Contributors

ad-t avatar dependabot[bot] avatar he-lium avatar lecafard avatar qantas94heavy avatar robustprogram avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

rbs's Issues

Add Ticket Schema

Think we should create a table for individual tickets which can be linked to orders. Tickets will be generated when the order is marked as complete.

{
    id: uuid,
    showId: int,
    orderId: uuid,
    seat: string,
    // code for checking admissions
    code: string,
    used: boolean
}

Allow booking multiple ticket types with one order

At the moment, from what I can see only one ticket type can be set per order reservation (/shows/{id}/seats).

This technically might not be necessary for MVP but it makes ordering more complicated and currently results in more PayPal transactions than necessary.

Show Night Schema

Change schema for show so that it follows the following format

{
  - time : ???
  - seats : number
  - name : string
  - ticket_type : Array<ITicketType>
}

Add Ticket Type Schema

Add Ticket Type Schema

{
  - id : number
  - description : string
  - cost : number
  - min_tickets : number // This means the minimum amount of this particular ticket you can buy. For example for group tickets, you need to have a minimum of 5 people to buy it.
}

Delete 'reserved' tickets after expiry date

Currently any ticket reserved through /shows/X/seats will remain reserved until manually removed from the database. To avoid the same problems as the old RBS, the server should invalidate/remove old reservations which haven't been paid.

Frontend: handle use of back button

Currently the user will lose all progress if the back button is (accidentally) clicked. We should either (crudely) prevent use of back button or (properly) implement client session history.

Note: Currently frontend work is in the feature/frontend branch.

Production Schema

Change schema for production so that it follows the following format,

{
  - id : number
  - title : string
  - subtitle : string
  - year : number
  - location : string
  - show_image : ???
  - show_nights: Array<IShowNight>
}

Edit 1: Changed from ticket_type to show_nights. Typo

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.