Created
June 19, 2018 17:08
-
-
Save kagemusha/b97db366ccec0fe11995c77755319295 to your computer and use it in GitHub Desktop.
Create postgres table with auto-incrementing primary key
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// id SERIAL primary key | |
CREATE TABLE public.user_events | |
( | |
id serial primary key, | |
campaign_id bigint NOT NULL, | |
user_uuid bigint NOT NULL, | |
reward integer NOT NULL | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment