CREATE SCHEMA Stats;

CREATE TABLE Stats.WeightLog (
    id SERIAL PRIMARY KEY,
    userId INT NOT NULL REFERENCES Accounts.Users(id),
    value DECIMAL NOT NULL,
    recordedTs TIMESTAMP NOT NULL DEFAULT NOW(),
    UNIQUE(userId)
);


