learn-request-queue/db/00-states.sql

12 lines
283 B
MySQL
Raw Normal View History

2020-06-24 21:34:53 +00:00
CREATE TABLE states (
state varchar UNIQUE NOT NULL,
2020-08-08 04:32:06 +00:00
active bool NOT NULL DEFAULT TRUE, -- Whether request can be considered "active"
2020-06-24 21:34:53 +00:00
PRIMARY KEY(state)
);
2020-08-08 04:32:06 +00:00
INSERT INTO states (state,active) VALUES
('Requested',TRUE),
('Rejected',FALSE),
('Accepted',TRUE),
('Learned',FALSE);