agendas/queries/schema.sql

8 lines
247 B
MySQL
Raw Permalink Normal View History

2024-12-30 19:13:05 -05:00
-- Schema
CREATE TABLE IF NOT EXISTS transactions (
given_at TIMESTAMP DEFAULT current_timestamp,
membre_id VARCHAR(7) NOT NULL CHECK (length(membre_id) > 0),
is_perpetual BOOLEAN NOT NULL,
PRIMARY KEY (membre_id, is_perpetual)
);