presences/queries/schema.sql

5 lines
149 B
SQL

-- Schema
CREATE TABLE IF NOT EXISTS presences (
at TIMESTAMP DEFAULT current_timestamp,
id VARCHAR(7) PRIMARY KEY CHECK (length(id) > 0)
);