Code Monkey home page Code Monkey logo

auction_project's Introduction

==============================================================================
Part B

------------------------------------------------------------------------------
List of Relations
- Item (id, name, buyPrice, firstPrice, started, ends, sellerId, description)
    - key: {id}
- ItemCategory (itemId, category)
    - key: {itemId, category}
- AuctionUser (id, isSeller, isBidder, rating, location, country)
    - key: {id}
- Bid (itemId, bidderId, bidTime, price)
    - key: {itemId, bidderId, bidTime}
    -- one bidder can only bid for one item at each given time
    -- however, the document does not rule out the possiblity that a user
       account bid on different item at the same time

------------------------------------------------------------------------------
List of completely nontrivial functional dependencies
- Item
    - none if excluding {id}->{all other attributes}
- ItemCategory
    - none, since all attributes combined forms key
- AuctionUser
    - none if excluding {id}->{all other attributes}
- Bid
    - none if excluding {itemId, bidderId, bidTime} -> {price}

------------------------------------------------------------------------------
BCNF
- All the relations are in BCNF.

------------------------------------------------------------------------------
List of nontrivial multivalued dependencies
- Item
    - none
- ItemCategory
    - none
- AuctionUser
    - none
- Bid
    - none

------------------------------------------------------------------------------
4NF
- All the relations are in 4NF.


------------------------------------------------------------------------------
For coming project parts: extension approach once online
- Enter bids on items
    - require bidder id
    - check Item about auction end time
    - insert new entry in Bid
- Close auction
    - identify bidder id and item id
    - determine bid winner
    - design scheme to automatically close auction upon end time
    - maybe allow seller optionally close auction before end time
- Add new user
    - insert new entry in AuctionUser, make sure no duplicate id
    - ask user's interest in being seller/bidder/both
    - initialize rating to 0
- Add new auction
    - auto generate auction id
    - require user to fill in necessary information

auction_project's People

Contributors

qin avatar

Watchers

Danny Sun avatar James Cloos avatar Yinghui Xia avatar

Forkers

danielsha91

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.