fix up capitalisation of bOOLEAN, and removed fields from PA_USER_STATE, no longer needed with new viewing logic
This commit is contained in:
12
tables.sql
12
tables.sql
@@ -27,7 +27,7 @@ INSERT INTO ai_model VALUES ( 2, 'CNN', 'MORE ACCURATE / MUCH SLOWER' );
|
|||||||
CREATE TABLE settings(
|
CREATE TABLE settings(
|
||||||
id INTEGER,
|
id INTEGER,
|
||||||
base_path VARCHAR, import_path VARCHAR, storage_path VARCHAR, recycle_bin_path VARCHAR, metadata_path VARCHAR,
|
base_path VARCHAR, import_path VARCHAR, storage_path VARCHAR, recycle_bin_path VARCHAR, metadata_path VARCHAR,
|
||||||
auto_rotate bOOLEAN,
|
auto_rotate BOOLEAN,
|
||||||
default_refimg_model INTEGER, default_scan_model INTEGER, default_threshold FLOAT,
|
default_refimg_model INTEGER, default_scan_model INTEGER, default_threshold FLOAT,
|
||||||
face_size_limit INTEGER,
|
face_size_limit INTEGER,
|
||||||
scheduled_import_scan INTEGER, scheduled_storage_scan INTEGER,
|
scheduled_import_scan INTEGER, scheduled_storage_scan INTEGER,
|
||||||
@@ -46,17 +46,15 @@ CREATE TABLE pa_user(
|
|||||||
default_grouping VARCHAR(16),
|
default_grouping VARCHAR(16),
|
||||||
default_how_many INTEGER,
|
default_how_many INTEGER,
|
||||||
default_size INTEGER,
|
default_size INTEGER,
|
||||||
default_import_folders bOOLEAN,
|
default_import_folders BOOLEAN,
|
||||||
default_storage_folders bOOLEAN,
|
default_storage_folders BOOLEAN,
|
||||||
CONSTRAINT pk_pa_user_id PRIMARY KEY(id) );
|
CONSTRAINT pk_pa_user_id PRIMARY KEY(id) );
|
||||||
|
|
||||||
-- this is totally not 3rd normal form, but when I made it that, it was so complex, it was stupid
|
-- this is totally not 3rd normal form, but when I made it that, it was so complex, it was stupid
|
||||||
-- so for the little data here, I'm deliberately doing a redundant data structure
|
-- so for the little data here, I'm deliberately doing a redundant data structure
|
||||||
CREATE TABLE pa_user_state ( id INTEGER, pa_user_dn VARCHAR(128), path_type VARCHAR(16),
|
CREATE TABLE pa_user_state ( id INTEGER, pa_user_dn VARCHAR(128), path_type VARCHAR(16),
|
||||||
noo VARCHAR(16), grouping VARCHAR(16), how_many INTEGER, st_offset INTEGER, size INTEGER, folders bOOLEAN,
|
noo VARCHAR(16), grouping VARCHAR(16), how_many INTEGER, size INTEGER, folders BOOLEAN,
|
||||||
root VARCHAR, cwd VARCHAR,
|
root VARCHAR, cwd VARCHAR, search_term VARCHAR,
|
||||||
orig_ptype VARCHAR, orig_search_term VARCHAR, orig_url VARCHAR,
|
|
||||||
view_eid INTEGER, current INTEGER, first_eid INTEGER, last_eid INTEGER, num_entries INTEGER, last_used TIMESTAMPTZ,
|
|
||||||
CONSTRAINT fk_pa_user_dn FOREIGN KEY (pa_user_dn) REFERENCES pa_user(dn),
|
CONSTRAINT fk_pa_user_dn FOREIGN KEY (pa_user_dn) REFERENCES pa_user(dn),
|
||||||
CONSTRAINT pk_pa_user_states_id PRIMARY KEY(id ) );
|
CONSTRAINT pk_pa_user_states_id PRIMARY KEY(id ) );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user