~singpolyma/jmp-schemas

ref: 8cafb6f6d06dc12847f064c2964617bc1cfec16d jmp-schemas/deploy/plan_log.sql -rw-r--r-- 244 bytes
8cafb6f6Stephen Paul Weber Give plan_log a primary key 1 year, 11 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
-- Deploy jmp:plan_log to pg

BEGIN;

CREATE TABLE plan_log (
	customer_id TEXT      NOT NULL,
	plan_name   TEXT      NOT NULL,
	starts_at   TIMESTAMP NOT NULL,
	expires_at  TIMESTAMP NOT NULL,
	PRIMARY KEY (customer_id, starts_at)
);

COMMIT;