refactor(proposal): drop the expired status, enforce expiry on every vote

This commit is contained in:
CleverWild
2026-08-26 12:49:11 +02:00
committed by Skipper
parent f13c1cf9d1
commit f881102f0a
4 changed files with 35 additions and 59 deletions

View File

@@ -225,7 +225,7 @@ create table if not exists proposal (
created_at integer not null default(unixepoch('now')),
expires_at integer not null,
status text not null default 'pending'
check (status in ('pending', 'approved', 'rejected', 'expired'))
check (status in ('pending', 'approved', 'rejected'))
) STRICT;
create table if not exists proposal_vote (