1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-28 00:06:53 +01:00
unleash.unleash/unleash-server/migrations/sql/001-initial-schema.up.sql
2020-02-20 08:30:06 +01:00

19 lines
418 B
SQL

CREATE TABLE strategies (
created_at timestamp default now(),
name varchar(255) PRIMARY KEY NOT NULL,
description text
);
CREATE TABLE features (
created_at timestamp default now(),
name varchar(255) PRIMARY KEY NOT NULL,
strategy_name varchar(255) references strategies(name),
parameters json
);
CREATE TABLE events (
created_at timestamp default now(),
type varchar(255) NOT NULL,
data json
);