Skip to content

Commit

Permalink
Add GDPR deletion processing queues
Browse files Browse the repository at this point in the history
  • Loading branch information
Brutus5000 committed Nov 10, 2023
1 parent 234f034 commit f4f28f7
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions migrations/V131__gdpr_delete_handling.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
create table account_deletion_requests
(
id varchar(36) null comment 'random uuid (as it''s also used for lookup of state by user)',
account_id mediumint not null,
state enum ('NEW', 'IN_PROCESS', 'FINISHED', 'ERROR') default 'NEW' not null,
full_delete boolean not null comment 'full_delete=true means the whole account was deleted. This requires no games to be played.',
processed_by mediumint null comment 'Refers to the admin manually processing. Should be null if automatically processed',
comment text null comment 'Allows manual comments for manual processing',
created_at timestamp null,
updated_at timestamp null,
constraint account_deletion_requests_pk
primary key (id),
constraint account_deletion_requests_account_unique_key
unique (account_id)
);

0 comments on commit f4f28f7

Please sign in to comment.