unique_feedback_per_auction
unique_bid_per_user_per_auction
Documentation for project XDM - auction
Report
Generated
11/7/2026 | 12:44:18 AM
tables
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
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
updated_at
timestamp without time zone
Yes
Indexes
idx_auction_user_id
Column name
user_id
Using
btree
idx_auction_status
Column name
status
Using
btree
idx_auction_end_time
Column name
end_time
Using
btree
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
is_auto_bid
boolean
Yes
auto_bid_max
numeric
12,2
Indexes
idx_bid_auction_id
Column name
auction_id
Using
btree
idx_bid_user_id
Column name
user_id
Using
btree
idx_bid_amount
Column name
amount
Using
btree
Keys
bid_pkey
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
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
Indexes
idx_feedback_auction_id
Column name
auction_id
Using
btree
idx_feedback_to_user_id
Column name
to_user_id
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
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
Keys
item_pkey
item_auction_id_key
Column in item_auction_id_key
auction_id
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
is_read
boolean
Yes
Indexes
idx_message_from_user_id
Column name
from_user_id
Using
btree
idx_message_to_user_id
Column name
to_user_id
Using
btree
idx_message_auction_id
Column name
auction_id
Using
btree
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
Indexes
idx_payment_user_id
Column name
user_id
Using
btree
idx_payment_auction_id
Column name
auction_id
Using
btree
idx_payment_status
Column name
status
Using
btree
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
Indexes
idx_shipping_user_id
Column name
user_id
Using
btree
idx_shipping_auction_id
Column name
auction_id
Using
btree
Keys
shipping_pkey
Column in shipping_pkey
id
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
created_at
timestamp without time zone
Yes
updated_at
timestamp without time zone
Yes
Keys
user_pkey
user_email_key
Column in user_email_key
email
user_username_key
Column in user_username_key
username
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
Indexes
idx_watchlist_user_id
Column name
user_id
Using
btree
idx_watchlist_auction_id
Column name
auction_id
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
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
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
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
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
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