7 lines
247 B
SQL
7 lines
247 B
SQL
-- 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)
|
|
);
|