feedback
PK
id  
FK
auction_id  
FK
from_user_id  
FK
to_user_id  
rating  
comment  
created_at  
KEY
feedback_pkey
KEY
unique_feedback_per_auction
IX
idx_feedback_auction_id
IX
idx_feedback_to_user_id
bid
PK
id  
FK
auction_id  
FK
user_id  
AK
amount  
AK
bid_time  
is_auto_bid  
auto_bid_max  
KEY
bid_pkey
KEY
unique_bid_per_user_per_auction
IX
idx_bid_auction_id
IX
idx_bid_user_id
IX
idx_bid_amount
payment
PK
id  
FK
user_id  
FK
auction_id  
amount  
payment_method  
payment_time  
status  
transaction_id  
created_at  
KEY
payment_pkey
IX
idx_payment_user_id
IX
idx_payment_auction_id
IX
idx_payment_status
shipping
PK
id  
FK
auction_id  
FK
user_id  
address  
shipped_at  
delivered_at  
tracking_number  
carrier  
status  
created_at  
KEY
shipping_pkey
IX
idx_shipping_user_id
IX
idx_shipping_auction_id
auction
PK
id  
FK
user_id  
FK
winner_id  
title  
description  
starting_price  
reserve_price  
current_price  
min_increment  
start_time  
end_time  
status  
created_at  
updated_at  
KEY
auction_pkey
IX
idx_auction_user_id
IX
idx_auction_status
IX
idx_auction_end_time
watchlist
PK
id  
FK
user_id  
FK
auction_id  
added_at  
KEY
watchlist_pkey
KEY
unique_watchlist
IX
idx_watchlist_user_id
IX
idx_watchlist_auction_id
message
PK
id  
FK
from_user_id  
FK
to_user_id  
FK
auction_id  
subject  
body  
sent_at  
is_read  
KEY
message_pkey
IX
idx_message_from_user_id
IX
idx_message_to_user_id
IX
idx_message_auction_id
item
PK
id  
FK
auction_id  
name  
description  
category  
condition  
brand  
model  
year  
image_url  
created_at  
KEY
item_pkey
KEY
item_auction_id_key
user
PK
id  
AK
username  
AK
email  
password_hash  
first_name  
last_name  
phone  
address  
is_active  
created_at  
updated_at  
KEY
user_pkey
KEY
user_email_key
KEY
user_username_key

Auction

Documentation for project XDM - auction
XDM - auction
Project
Name
XDM - auction
Diagram
Name
Main Diagram
Report
Generated
11/7/2026 | 12:44:18 AM
tables
Name
auction
Properties
Schema
public
Columns
Name
Data type
Param
Key
Not Null
id
serial
Yes
Yes
user_id
integer
Yes
winner_id
integer
title
character varying
255
Yes
description
text
starting_price
numeric
12,2
Yes
reserve_price
numeric
12,2
current_price
numeric
12,2
Yes
min_increment
numeric
12,2
Yes
Default value
1.00
start_time
timestamp without time zone
Yes
end_time
timestamp without time zone
Yes
status
character varying
20
Yes
Default value
'active'::character varying
created_at
timestamp without time zone
Yes
Default value
now()
updated_at
timestamp without time zone
Yes
Default value
now()
Indexes
idx_auction_user_id
Column name
user_id
Nulls last
Yes
Using
btree
idx_auction_status
Column name
status
Nulls last
Yes
Using
btree
idx_auction_end_time
Column name
end_time
Nulls last
Yes
Using
btree
Keys
auction_pkey
Column in auction_pkey
id
Name
bid
Properties
Schema
public
Columns
Name
Data type
Param
Key
Not Null
id
serial
Yes
Yes
auction_id
integer
Yes
user_id
integer
Yes
amount
numeric
12,2
Yes
bid_time
timestamp without time zone
Yes
Default value
now()
is_auto_bid
boolean
Yes
Default value
false
auto_bid_max
numeric
12,2
Indexes
idx_bid_auction_id
Column name
auction_id
Nulls last
Yes
Using
btree
idx_bid_user_id
Column name
user_id
Nulls last
Yes
Using
btree
idx_bid_amount
Column name
amount
Nulls last
Yes
Using
btree
Keys
bid_pkey
Column in bid_pkey
id
unique_bid_per_user_per_auction
Column in unique_bid_per_user_per_auction
auction_id
Column in unique_bid_per_user_per_auction
user_id
Column in unique_bid_per_user_per_auction
amount
Column in unique_bid_per_user_per_auction
bid_time
Name
feedback
Properties
Schema
public
Columns
Name
Data type
Param
Key
Not Null
id
serial
Yes
Yes
auction_id
integer
Yes
from_user_id
integer
Yes
to_user_id
integer
Yes
rating
integer
Yes
comment
text
created_at
timestamp without time zone
Yes
Default value
now()
Indexes
idx_feedback_auction_id
Column name
auction_id
Nulls last
Yes
Using
btree
idx_feedback_to_user_id
Column name
to_user_id
Nulls last
Yes
Using
btree
Keys
feedback_pkey
Column in feedback_pkey
id
unique_feedback_per_auction
Column in unique_feedback_per_auction
auction_id
Column in unique_feedback_per_auction
from_user_id
Column in unique_feedback_per_auction
to_user_id
Name
item
Properties
Schema
public
Columns
Name
Data type
Param
Key
Not Null
id
serial
Yes
Yes
auction_id
integer
Yes
name
character varying
255
Yes
description
text
category
character varying
100
condition
character varying
50
brand
character varying
100
model
character varying
100
year
integer
image_url
character varying
255
created_at
timestamp without time zone
Yes
Default value
now()
Keys
item_pkey
Column in item_pkey
id
item_auction_id_key
Column in item_auction_id_key
auction_id
Relationships
Name
message
Properties
Schema
public
Columns
Name
Data type
Param
Key
Not Null
id
serial
Yes
Yes
from_user_id
integer
Yes
to_user_id
integer
Yes
auction_id
integer
subject
character varying
255
body
text
Yes
sent_at
timestamp without time zone
Yes
Default value
now()
is_read
boolean
Yes
Default value
false
Indexes
idx_message_from_user_id
Column name
from_user_id
Nulls last
Yes
Using
btree
idx_message_to_user_id
Column name
to_user_id
Nulls last
Yes
Using
btree
idx_message_auction_id
Column name
auction_id
Nulls last
Yes
Using
btree
Keys
message_pkey
Column in message_pkey
id
Name
payment
Properties
Schema
public
Columns
Name
Data type
Param
Key
Not Null
id
serial
Yes
Yes
user_id
integer
Yes
auction_id
integer
Yes
amount
numeric
12,2
Yes
payment_method
character varying
50
payment_time
timestamp without time zone
status
character varying
20
Yes
Default value
'pending'::character varying
transaction_id
character varying
100
created_at
timestamp without time zone
Yes
Default value
now()
Indexes
idx_payment_user_id
Column name
user_id
Nulls last
Yes
Using
btree
idx_payment_auction_id
Column name
auction_id
Nulls last
Yes
Using
btree
idx_payment_status
Column name
status
Nulls last
Yes
Using
btree
Keys
payment_pkey
Column in payment_pkey
id
Name
shipping
Properties
Schema
public
Columns
Name
Data type
Param
Key
Not Null
id
serial
Yes
Yes
auction_id
integer
Yes
user_id
integer
Yes
address
text
Yes
shipped_at
timestamp without time zone
delivered_at
timestamp without time zone
tracking_number
character varying
100
carrier
character varying
50
status
character varying
20
Yes
Default value
'pending'::character varying
created_at
timestamp without time zone
Yes
Default value
now()
Indexes
idx_shipping_user_id
Column name
user_id
Nulls last
Yes
Using
btree
idx_shipping_auction_id
Column name
auction_id
Nulls last
Yes
Using
btree
Keys
shipping_pkey
Column in shipping_pkey
id
Name
user
Properties
Schema
public
Columns
Name
Data type
Param
Key
Not Null
id
serial
Yes
Yes
username
character varying
50
Yes
email
character varying
100
Yes
password_hash
character varying
255
Yes
first_name
character varying
50
last_name
character varying
50
phone
character varying
20
address
text
is_active
boolean
Yes
Default value
true
created_at
timestamp without time zone
Yes
Default value
now()
updated_at
timestamp without time zone
Yes
Default value
now()
Keys
user_pkey
Column in user_pkey
id
user_email_key
Column in user_email_key
email
user_username_key
Column in user_username_key
username
Name
watchlist
Properties
Schema
public
Columns
Name
Data type
Param
Key
Not Null
id
serial
Yes
Yes
user_id
integer
Yes
auction_id
integer
Yes
added_at
timestamp without time zone
Yes
Default value
now()
Indexes
idx_watchlist_user_id
Column name
user_id
Nulls last
Yes
Using
btree
idx_watchlist_auction_id
Column name
auction_id
Nulls last
Yes
Using
btree
Keys
watchlist_pkey
Column in watchlist_pkey
id
unique_watchlist
Column in unique_watchlist
user_id
Column in unique_watchlist
auction_id
relationships
Name
auction_user_id_fkey
Name
Source
Target
Cardinality type:
One to
many
Ordinality:
Mandatory
Mandatory
Key and columns
Key name
Column in user
Column in auction
user_pkey
id
user_id
Properties
Rerefential integrity - parent delete
Cascade
Referential integrity - parent update
No action
Name
auction_winner_id_fkey
Name
Source
Target
Cardinality type:
One to
many
Ordinality:
Mandatory
Optional
Key and columns
Key name
Column in user
Column in auction
user_pkey
id
winner_id
Properties
Rerefential integrity - parent delete
No action
Referential integrity - parent update
No action
Name
bid_auction_id_fkey
Name
Source
Target
Cardinality type:
One to
many
Ordinality:
Mandatory
Mandatory
Key and columns
Key name
Column in auction
Column in bid
auction_pkey
id
auction_id
Properties
Rerefential integrity - parent delete
Cascade
Referential integrity - parent update
No action
Name
bid_user_id_fkey
Name
Source
Target
Cardinality type:
One to
many
Ordinality:
Mandatory
Mandatory
Key and columns
Key name
Column in user
Column in bid
user_pkey
id
user_id
Properties
Rerefential integrity - parent delete
No action
Referential integrity - parent update
No action
Name
feedback_auction_id_fkey
Name
Source
Target
Cardinality type:
One to
many
Ordinality:
Mandatory
Mandatory
Key and columns
Key name
Column in auction
Column in feedback
auction_pkey
id
auction_id
Properties
Rerefential integrity - parent delete
No action
Referential integrity - parent update
No action
Name
feedback_from_user_id_fkey
Name
Source
Target
Cardinality type:
One to
many
Ordinality:
Mandatory
Mandatory
Key and columns
Key name
Column in user
Column in feedback
user_pkey
id
from_user_id
Properties
Rerefential integrity - parent delete
No action
Referential integrity - parent update
No action
Name
feedback_to_user_id_fkey
Name
Source
Target
Cardinality type:
One to
many
Ordinality:
Mandatory
Mandatory
Key and columns
Key name
Column in user
Column in feedback
user_pkey
id
to_user_id
Properties
Rerefential integrity - parent delete
No action
Referential integrity - parent update
No action
Name
item_auction_id_fkey
Name
Source
Target
Cardinality type:
One to
one
Ordinality:
Mandatory
Mandatory
Key and columns
Key name
Column in auction
Column in item
auction_pkey
id
auction_id
Properties
Rerefential integrity - parent delete
Cascade
Referential integrity - parent update
No action
Name
message_auction_id_fkey
Name
Source
Target
Cardinality type:
One to
many
Ordinality:
Mandatory
Optional
Key and columns
Key name
Column in auction
Column in message
auction_pkey
id
auction_id
Properties
Rerefential integrity - parent delete
No action
Referential integrity - parent update
No action
Name
message_from_user_id_fkey
Name
Source
Target
Cardinality type:
One to
many
Ordinality:
Mandatory
Mandatory
Key and columns
Key name
Column in user
Column in message
user_pkey
id
from_user_id
Properties
Rerefential integrity - parent delete
No action
Referential integrity - parent update
No action
Name
message_to_user_id_fkey
Name
Source
Target
Cardinality type:
One to
many
Ordinality:
Mandatory
Mandatory
Key and columns
Key name
Column in user
Column in message
user_pkey
id
to_user_id
Properties
Rerefential integrity - parent delete
No action
Referential integrity - parent update
No action
Name
payment_auction_id_fkey
Name
Source
Target
Cardinality type:
One to
many
Ordinality:
Mandatory
Mandatory
Key and columns
Key name
Column in auction
Column in payment
auction_pkey
id
auction_id
Properties
Rerefential integrity - parent delete
No action
Referential integrity - parent update
No action
Name
payment_user_id_fkey
Name
Source
Target
Cardinality type:
One to
many
Ordinality:
Mandatory
Mandatory
Key and columns
Key name
Column in user
Column in payment
user_pkey
id
user_id
Properties
Rerefential integrity - parent delete
No action
Referential integrity - parent update
No action
Name
shipping_auction_id_fkey
Name
Source
Target
Cardinality type:
One to
many
Ordinality:
Mandatory
Mandatory
Key and columns
Key name
Column in auction
Column in shipping
auction_pkey
id
auction_id
Properties
Rerefential integrity - parent delete
Cascade
Referential integrity - parent update
No action
Name
shipping_user_id_fkey
Name
Source
Target
Cardinality type:
One to
many
Ordinality:
Mandatory
Mandatory
Key and columns
Key name
Column in user
Column in shipping
user_pkey
id
user_id
Properties
Rerefential integrity - parent delete
No action
Referential integrity - parent update
No action
Name
watchlist_auction_id_fkey
Name
Source
Target
Cardinality type:
One to
many
Ordinality:
Mandatory
Mandatory
Key and columns
Key name
Column in auction
Column in watchlist
auction_pkey
id
auction_id
Properties
Rerefential integrity - parent delete
Cascade
Referential integrity - parent update
No action
Name
watchlist_user_id_fkey
Name
Source
Target
Cardinality type:
One to
many
Ordinality:
Mandatory
Mandatory
Key and columns
Key name
Column in user
Column in watchlist
user_pkey
id
user_id
Properties
Rerefential integrity - parent delete
Cascade
Referential integrity - parent update
No action
Notes
Name
Text1
Note

Auction