experiment api, fixing userId, deviceId, flexible rollout strategy

Signed-off-by: chandresh pancholi <chandresh.pancholi@navi.com>
This commit is contained in:
chandresh pancholi
2021-10-07 01:40:59 +05:30
parent 47ddd6c20a
commit 3c5bacbcee
36 changed files with 525 additions and 281 deletions

View File

@@ -0,0 +1,23 @@
--liquibase formatted sql
--changeset author:chandresh id:202110061546
CREATE TABLE experiments (
id SERIAL PRIMARY KEY,
experiment_id varchar(36) NOT NULL,
name varchar(100) NOT NULL,
description text NOT NULL,
enabled boolean,
archived boolean,
strategies jsonb,
variants jsonb,
experiment_type varchar(100) NOT NULL,
start_time timestamp,
end_time timestamp,
version BIGINT,
created_at timestamp,
updated_at timestamp
);
CREATE INDEX idx_experiment_id ON experiments(experiment_id);
CREATE INDEX idx_experiment_name ON experiments(name);