2020-01-27 16:49:56 +01:00
|
|
|
|
|
|
|
users
|
2020-01-27 17:02:05 +01:00
|
|
|
- id int(11) K
|
2020-01-27 16:49:56 +01:00
|
|
|
- email varchar(191)
|
|
|
|
- password varchar(191)
|
|
|
|
- authkey varchar(40)
|
2020-01-27 17:02:05 +01:00
|
|
|
- role_id int(11) FK
|
|
|
|
- individual_id int(11) FK
|
2020-01-27 16:49:56 +01:00
|
|
|
|
|
|
|
individuals
|
|
|
|
- id tinyint(11) K
|
|
|
|
- first_name varchar(191)
|
|
|
|
- last_name varchar(191)
|
|
|
|
- email varchar(191)
|
|
|
|
- position text
|
|
|
|
|
2020-01-27 17:02:05 +01:00
|
|
|
alignments
|
|
|
|
- id int(11) K
|
|
|
|
- individual_id int(11) FK
|
|
|
|
- organisation_id int(11) FK
|
|
|
|
- type varchar(191) DEFAULT 'member'
|
|
|
|
|
|
|
|
alignment_tags
|
|
|
|
- id int(11) K
|
|
|
|
- alignment_id int(11) FK
|
2020-01-27 16:49:56 +01:00
|
|
|
|
|
|
|
organisations
|
2020-01-27 17:02:05 +01:00
|
|
|
- id int(11) K
|
2020-01-27 16:49:56 +01:00
|
|
|
- uuid varchar(40)
|
|
|
|
- name varchar(191)
|
|
|
|
- url varchar(191)
|
|
|
|
- nationality varchar(191)
|
|
|
|
- sector varchar(191)
|
|
|
|
- type varchar(191)
|
|
|
|
- contacts text
|
|
|
|
|
|
|
|
keys
|
2020-01-27 17:02:05 +01:00
|
|
|
- id int(11) K
|
2020-01-27 16:49:56 +01:00
|
|
|
- uuid varchar(40)
|
|
|
|
- type varchar(191)
|
|
|
|
- key text
|
2020-01-27 17:02:05 +01:00
|
|
|
- revoked int(1)
|
2020-01-27 16:49:56 +01:00
|
|
|
- expires datetime
|
|
|
|
|
|
|
|
user_keys
|
2020-01-27 17:02:05 +01:00
|
|
|
- id int(11) K
|
|
|
|
- user_id int(11) FK
|
|
|
|
- key_id int(11) FK
|
2020-01-27 16:49:56 +01:00
|
|
|
|
|
|
|
organisation_keys
|
2020-01-27 17:02:05 +01:00
|
|
|
- id int(11) K
|
|
|
|
- org_id ing(11) FK
|
|
|
|
- key_id ing(11) FK
|
2020-01-27 16:49:56 +01:00
|
|
|
|
|
|
|
broods
|
2020-01-27 17:02:05 +01:00
|
|
|
- id int(11) K
|
2020-01-27 16:49:56 +01:00
|
|
|
- uuid varchar(40)
|
|
|
|
- url text
|
2020-01-27 17:02:05 +01:00
|
|
|
- org_id int(11) FK
|
2020-01-27 16:49:56 +01:00
|
|
|
- name varchar(191)
|
|
|
|
- description text
|
|
|
|
- trusted tinyint(1)
|
2020-01-27 17:02:05 +01:00
|
|
|
- pull in(1)
|
2020-01-27 16:49:56 +01:00
|
|
|
- apikey varchar(40)
|
|
|
|
|
|
|
|
roles
|
2020-01-27 17:02:05 +01:00
|
|
|
- id int(11) K
|
2020-01-27 16:49:56 +01:00
|
|
|
- name varchar(191)
|
|
|
|
- default tinyint(1)
|
|
|
|
- perm_... tinyint(1)
|
|
|
|
- perm_... tinyint(1)
|
|
|
|
|