mirror of
https://codeberg.org/likwid/likwid.git
synced 2026-02-10 05:23:09 +00:00
- Backend: Rust/Axum with PostgreSQL, plugin architecture - Frontend: Astro with polished UI - Voting methods: Approval, Ranked Choice, Schulze, STAR, Quadratic - Features: Liquid delegation, transparent moderation, structured deliberation - Documentation: User and admin guides in /docs - Deployment: Docker/Podman compose files for production and demo - Demo: Seeded data with 3 communities, 13 users, 7 proposals License: AGPLv3
13 lines
640 B
SQL
13 lines
640 B
SQL
CREATE TABLE IF NOT EXISTS public_events (
|
|
id UUID PRIMARY KEY DEFAULT uuid_generate_v4(),
|
|
community_id UUID REFERENCES communities(id) ON DELETE CASCADE,
|
|
actor_user_id UUID REFERENCES users(id) ON DELETE SET NULL,
|
|
plugin_name VARCHAR(100),
|
|
event_type VARCHAR(100) NOT NULL,
|
|
payload JSONB NOT NULL DEFAULT '{}',
|
|
created_at TIMESTAMPTZ NOT NULL DEFAULT NOW()
|
|
);
|
|
|
|
CREATE INDEX IF NOT EXISTS idx_public_events_community ON public_events(community_id);
|
|
CREATE INDEX IF NOT EXISTS idx_public_events_created ON public_events(created_at);
|
|
CREATE INDEX IF NOT EXISTS idx_public_events_type ON public_events(event_type);
|