动网论坛,站长建站首选,国内使用量最多的论坛软件 动网论坛官方技术讨论区 站长工具 申请属于您自己的免费论坛
首页 | 新闻资讯 | 网站运营 | 网络编程 | 数据库 | 服务器 | 网页设计 | 图像媒体 | 网络应用 | 搜索优化 | 资源下载 | 动网主机 | DVBOX
    本站内  互联网 ASP论坛  ASP.Net论坛  PHP论坛
   Asp → 阅读文章

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

作者来源: 
阅读 数 234 人次 , 2000-11-12 

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.  
  
 
 收藏本文  打印本文  论坛讨论  关闭窗口
· 上一篇:制作我们自己的Ebay(拍卖系统EN) - Managing Bids - Page 5
· 下一篇:制作我们自己的Ebay(拍卖系统EN) - How do I start?
· ASP编码优化
· 最简洁的多重查询的解决方案
· 用Visual InterDev规划站点
· 通过数组给您的文件排序
· 用Visual C#来清空回收站(2)


关于本站 | 联系我们 | 业务合作 | 客户案例 | 诚聘英才 | 广告合作 | 收藏本站
海口动网先锋网络科技有限公司版权所有
Copyright © 2000 - 2006 Cndw.Com
中华人民共和国电信与信息服务业务经营许可证编号 琼 ICP 020077