6.23.0: Архивация досок желаний и товаров
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m26s
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m26s
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1 @@
|
||||
DROP TABLE IF EXISTS board_archives;
|
||||
10
play-life-backend/migrations/000033_board_archives.up.sql
Normal file
10
play-life-backend/migrations/000033_board_archives.up.sql
Normal file
@@ -0,0 +1,10 @@
|
||||
CREATE TABLE board_archives (
|
||||
id SERIAL PRIMARY KEY,
|
||||
user_id INTEGER NOT NULL REFERENCES users(id),
|
||||
board_type VARCHAR(20) NOT NULL, -- 'wishlist' or 'shopping'
|
||||
board_id INTEGER NOT NULL,
|
||||
archived_at TIMESTAMP NOT NULL DEFAULT NOW(),
|
||||
UNIQUE(user_id, board_type, board_id)
|
||||
);
|
||||
|
||||
CREATE INDEX idx_board_archives_user_type ON board_archives(user_id, board_type);
|
||||
Reference in New Issue
Block a user