From ec2f3e313e516ad875018a2816a5dd07e3f32d3d Mon Sep 17 00:00:00 2001 From: xfy Date: Thu, 11 Jun 2026 13:24:00 +0800 Subject: [PATCH] refactor(comments): remove consented_at column from migration and model --- migrations/004_comments.sql | 1 - src/models/comment.rs | 1 - 2 files changed, 2 deletions(-) diff --git a/migrations/004_comments.sql b/migrations/004_comments.sql index d58ef13..c46db6e 100644 --- a/migrations/004_comments.sql +++ b/migrations/004_comments.sql @@ -12,7 +12,6 @@ CREATE TABLE IF NOT EXISTS comments ( status TEXT NOT NULL DEFAULT 'pending', ip_address VARCHAR(45), user_agent VARCHAR(500), - consented_at TIMESTAMPTZ, approved_at TIMESTAMPTZ, created_at TIMESTAMPTZ NOT NULL DEFAULT NOW(), updated_at TIMESTAMPTZ NOT NULL DEFAULT NOW(), diff --git a/src/models/comment.rs b/src/models/comment.rs index f3d1125..d1379a3 100644 --- a/src/models/comment.rs +++ b/src/models/comment.rs @@ -47,7 +47,6 @@ pub struct Comment { pub status: CommentStatus, pub ip_address: Option, pub user_agent: Option, - pub consented_at: Option>, pub approved_at: Option>, pub created_at: DateTime, pub updated_at: DateTime,