Skip to content

Instantly share code, notes, and snippets.

@andri-sudarmawijaya
Created February 21, 2018 15:08
Show Gist options
  • Save andri-sudarmawijaya/b5a628ebff733cef3fc8d3866dbb425c to your computer and use it in GitHub Desktop.
Save andri-sudarmawijaya/b5a628ebff733cef3fc8d3866dbb425c to your computer and use it in GitHub Desktop.
CREATE TABLE ref.negara
(
negara_id character(2) NOT NULL,
nama character varying(45) NOT NULL,
luar_negeri numeric(1,0) NOT NULL,
create_date timestamp(0) without time zone NOT NULL,
last_update timestamp(0) without time zone NOT NULL,
expired_date timestamp(0) without time zone,
last_sync timestamp(0) without time zone NOT NULL,
CONSTRAINT negara_pkey PRIMARY KEY (negara_id)
)
WITH (
OIDS=FALSE
);
ALTER TABLE ref.negara
OWNER TO postgres;
GRANT ALL ON TABLE ref.negara TO postgres;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment