Skip to content

Commit 6cd0964

Browse files
fixed cms.sql
1 parent eed75fe commit 6cd0964

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

infra/schema/cms/cms.sql

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ CREATE TABLE cms_cus_purchase (
3838
relation_id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
3939
cms_cus_id UUID NOT NULL,
4040
system_name system_type NOT NULL,
41-
page_request_id UUID,
4241
purchase_date TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
4342
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
4443
CONSTRAINT fk_cms_purchase_user
@@ -158,8 +157,7 @@ SELECT
158157
u.cms_user_name,
159158
u.cms_user_email,
160159
p.system_name,
161-
p.purchase_date,
162-
p.page_request_id
160+
p.purchase_date
163161
FROM cms_cus_purchase p
164162
JOIN cms_user u ON p.cms_cus_id = u.cms_user_id
165163
ORDER BY p.purchase_date DESC;

0 commit comments

Comments
 (0)