MarseyWorld/sql/20220913-transactions.sql

10 lines
307 B
MySQL
Raw Normal View History

2022-09-13 15:22:18 +00:00
CREATE TABLE public.transactions (
2022-09-13 16:53:19 +00:00
id character varying(36) PRIMARY KEY,
2022-09-13 15:22:18 +00:00
created_utc integer NOT NULL,
type character varying(12) NOT NULL,
amount integer NOT NULL,
email character varying(255) NOT NULL
);
2022-09-14 08:29:44 +00:00
CREATE INDEX transactions_email_idx ON public.transactions USING btree (email);