制作我们自己的Ebay(拍卖系统EN) - The Auction Database

Based on the information in the previous section, we have a good understanding of what our database schema should look like. The following tables list our database structure:

tblAuctions tblAuctionItems
AID Unique ID to keep track of records Autonumber IID Unique ID to keep track of records Autonumber
StartDate Date the auction started Date/Time AID Which auction does this item belong to? (Foreign key to Auctions table) Integer
EndDate Date the auction is to end Date/Time Name Name of the item being sold Text
SellerID The ID of the seller. (Foreign key to user table) Integer Description Description of the item being sold Text
MinPrice Minimum price to sell (specified by the seller) Money
tblAuctionBids Increment Value to increment proxy bids by (specified by the seller) Money
BID Unique ID to keep track of records Autonumber Available Number of items available to sell Integer
IID Unique ID to keep track of items (foreign key to AuctionItem table) Integer
UID Unique ID to keep track of bidders (foreign key to AuctionUsers table) Integer tblAuctionUsers
WinPrice Current price for a user (calculated by application) Money UID Unique ID to keep track of records Autonumber
MaxBid Maximum price for a user Money Name Name of user Text
BidItems The number of items this user bid for Integer
WinItems The number of items this user would win if the auction ended immediately Integer
Time The last time this bid was updated Date/Time

Note that the above tables are simply used for example. You may decide to store more information for your purposes (i.e., you may store more than just a name in the user table). Already, however, the schema is getting kind of complex - each table has foreign keys to one or more other tables.

NOTE: You can use a pre-existing user table if you wish. We simply provide the tblAuctionUsers table definition for completeness sake.

时间: 2024-11-01 17:46:22

制作我们自己的Ebay(拍卖系统EN) - The Auction Database的相关文章

制作我们自己的Ebay(拍卖系统EN) - 1

Chris Payne September 11, 2000 Everyone knows Ebay is raking in the big bucks. Peer to peer networking is where it's at, and auctions can make some serious money. While finding items to sell and attracting people to your auction is up to you, this ar

制作我们自己的Ebay(拍卖系统EN) - How do I start?

Chris Payne September 11, 2000 Before we go jumping into code and databases, let's take a moment and examine the needs and strategies, as well as the different types of auctions. First of all, there are many different types of auctions (which we'll d

制作我们自己的Ebay(拍卖系统EN) - Managing Bids - Page 5

This is the complex part - you must make sure everyone's bids are correct, update those that have proxy bids, reallocate lots to winners, notify buyers who have been outbid, and perform some upkeep. First let's look at the code to add a bid. Function

制作我们自己的Ebay(拍卖系统EN) - Resolving Bids - Page 6

Resolving Bids - Page 6 Chris Payne September 11, 2000 Function ResolveBids(ItemID) 'Set variables and create objectsdim monIncrement, monHighPrice, intAvailable, intTotItems, flgQuitdim blnResolved 'Assume bids are resolvedblnResolved = TruestrConne

制作我们自己的Ebay(拍卖系统)(1)

Chris Payne September 11, 2000 Everyone knows Ebay is raking in the big bucks. Peer to peer networking is where it's at, and auctions can make some serious money. While finding items to sell and attracting people to your auction is up to you, this ar

制作我们自己的Ebay(拍卖系统)(9)

Chris Payne September 11, 2000 Hopefully this article showed you that creating something as complex as an auction isn't impossible, but just takes some forethought and imagination. You're probably not ready to take on Ebay yet, but if you have need t

制作我们自己的Ebay(拍卖系统)(7)

Chris Payne September 11, 2000 Well, now your auction can run for an indefinite time. People can keep placing bids until you decide to stop them (good for the seller, but makes bidders kind of unhappy, to say the least). Let's discuss the mechanisms

制作我们自己的Ebay(拍卖系统)(2)

Chris Payne September 11, 2000 Before we go jumping into code and databases, let's take a moment and examine the needs and strategies, as well as the different types of auctions. First of all, there are many different types of auctions (which we'll d

制作我们自己的Ebay(拍卖系统)(3)

Based on the information in the previous section, we have a good understanding of what our database schema should look like. The following tables list our database structure: tblAuctionsAID:Unique ID to keep track of records AutonumberStartDate:Date