国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 開發設計 > 正文

制作我們自己的Ebay(拍賣系統)(3)

2019-11-18 22:02:21
字體:
來源:轉載
供稿:網友
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.  


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 博罗县| 肥乡县| 龙陵县| 汶川县| 桐乡市| 五家渠市| 托里县| 铁力市| 烟台市| 阿巴嘎旗| 成武县| 竹溪县| 九龙坡区| 堆龙德庆县| 曲周县| 闻喜县| 肥乡县| 淅川县| 通化市| 高陵县| 延庆县| 周口市| 西青区| 广德县| 田林县| 阿拉善右旗| 潮安县| 乌拉特前旗| 肥乡县| 大连市| 遂川县| 肥城市| 寻乌县| 高青县| 花莲县| 峨眉山市| 原阳县| 白沙| 红桥区| 香河县| 抚远县|