-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path02-types.sql
More file actions
36 lines (31 loc) · 886 Bytes
/
02-types.sql
File metadata and controls
36 lines (31 loc) · 886 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
drop type if exists aybee_dashboard.jwt_token cascade;
drop type if exists aybee_dashboard.authenticate_select_response cascade;
create type aybee_dashboard.jwt_token as (
role text,
person_id uuid,
organization_id uuid,
admin integer
);
create type aybee_dashboard.authenticate_select_response as (
role text,
person_id uuid,
organization_id uuid,
password_hash text,
admin integer
);
create type aybee_dashboard.id_percent_range as (
id uuid,
percent_range numrange
);
create type aybee_dashboard.config as (
track text,
salt uuid,
area text,
identifier text,
experiment text,
variant text,
percent numeric,
variables jsonb,
ranges numrange[]
);
CREATE TYPE aybee_dashboard.metric_storage_type AS ENUM ('influxdb', 'postgresql');