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

2016-01-29 17:21 0 1 收藏

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

【 tulaoshi.com - ASP 】

  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
AID:Unique ID to keep track of records Autonumber
StartDate:Date the auction started Date/Time
EndDate:Date the auction is to end Date/Time
SellerID:The ID of the seller. (Foreign key to user table) Integer

tblAuctionItems
IID:Unique ID to keep track of records Autonumber
AID:Which auction does this item belong to? (Foreign key to Auctions table) Integer
Name: Name of the item being sold Text
Description: Description of the item being sold Text
MinPrice: Minimum price to sell (specified by the seller) Money
Increment: Value to increment proxy bids by (specified by the seller) Money
Available: Number of items available to sell Integer

tblAuctionBids
BID: Unique ID to keep track of records Autonumber
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
WinPrice :Current price for a user (calculated by application) Money
MaxBid: Maximum price for a user Money
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   

tblAuctionUsers
UID :Unique ID to keep track of records Autonumber
Name :Name of user Text

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.  

 

来源:https://www.tulaoshi.com/n/20160129/1501065.html

延伸阅读
标签: 暗黑3
《暗黑3》拍卖不能拍卖物品的解决方案 本人今天下午第一次遇到这个情况,开始以为是AH繁忙。后来发现可能是物品本身的问题,因为不是所有东西都不可以拍卖。于是baidu,google 了很久,在官网的论坛上,也有很多人遇到。但是没有找到好的方案。 已知可行的有2个。 1.如果是有孔的,请卸掉宝石就可以,本人没有遇到这种物品,但是有玩家成功。 2....
标签: 暗黑破坏神3
《暗黑破坏神3》拍卖行系统dh平民攻略本人美服小小猎魔一只,平时没有什么时间玩,只好白天上班的时候在拍卖行偷偷扫扫货,低卖高卖什么的,赚些小钱,也顺便提升一下自己的装备,晚上也没什么时间玩,现在进度A2刚过,进军A3中。。。从来没有卡过进度,踢过罐子,刷过箱子,挂过柱子。。。更没有买过金,卖过金。。。 先说说为什么不去踢罐子刷...
标签: 脱毛
问答 图钉提问: 夏天最好的脱毛方法是什么??哪位达人帮忙解决一下 图老师解答: 病情分析:       您好,最好是采用激光脱毛,激光脱毛方式具有一定的高科技含量和强大的物理学基础,主要原理是应用了一个物理学的概念,即某一颜色的物质,一定对某一特殊波长的光吸收率最强。     &nbs...
标签: windows系统
Win8怎样自己制作系统主题?   Windows 8主题是一组由图片和声音定制而成的桌面元素集合,可以给人们以视听享受。我们可以通过自定义主题的方式来实现你的要求。 右击桌面空白处,选择快捷菜单中的个(图老师整理)性化命令。 在弹出的个性化窗口中,任意选择一组主题。选择之后,下面的桌面背景相应就变成了该主题所使用...
婴儿期心理发育 1、2个月婴儿心理发育     这个时期的孩子与外界接触很少,是以自我为中心地生活着,只关心自己的满足。当他们的生活需求得到满足时,就非常平静,而当饥饿、消化不良或疲劳的刺激时,就会不停地啼哭。孩子的注意力有了一定的发展,发亮的或彩色鲜艳的物体出现在视野内时,他会发出愉...

经验教程

987

收藏

47
微博分享 QQ分享 QQ空间 手机页面 收藏网站 回到头部