Update edit_user form page and also minor updates to Form and ArraIO
login_user_id is unique if not null (as index, constraint only with PostgreSQL 15) login_user_id_revalidate_after is not longer not null and default set, no need for this DB\Extended\ArrayIO: add sql_read for datetime fields to change amount of data (eg only up to minute) with to_char() method. sample: YYYY-MM-DD HH24:MI Add date/datetime/emptynull for setting empty fields to null and not empty string Output\From\Generate: Remove all fill for spacer and change them to placeholder html types. Add datetime check next to date, time only checks edit_user Admin Form: add all new columns there
This commit is contained in:
@@ -599,12 +599,15 @@ CREATE TABLE edit_user (
|
||||
login_user_id_set_date TIMESTAMP WITHOUT TIME ZONE, -- when above uid was set
|
||||
login_user_id_valid_from TIMESTAMP WITHOUT TIME ZONE, -- if set, from when the above uid is valid
|
||||
login_user_id_valid_until TIMESTAMP WITHOUT TIME ZONE, -- if set, until when the above uid is valid
|
||||
login_user_id_revalidate_after INTERVAL DEFAULT '0 days', -- user must login to revalidated login id after set days, 0 for forever
|
||||
login_user_id_revalidate_after INTERVAL, -- user must login to revalidated login id after set days, 0 for forever
|
||||
login_user_id_locked SMALLINT DEFAULT 0, -- lock for login user id, but still allow normal login
|
||||
-- additional ACL json block
|
||||
additional_acl JSONB -- additional ACL as JSON string (can be set by other pages)
|
||||
) INHERITS (edit_generic) WITHOUT OIDS;
|
||||
|
||||
-- create unique index
|
||||
CREATE UNIQUE INDEX edit_user_login_user_id_key ON edit_user (login_user_id) WHERE login_user_id IS NOT NULL;
|
||||
|
||||
COMMENT ON COLUMN edit_user.username IS 'Login username, must set';
|
||||
COMMENT ON COLUMN edit_user.password IS 'Login password, must set';
|
||||
COMMENT ON COLUMN edit_user.enabled IS 'Login is enabled (master switch)';
|
||||
|
||||
Reference in New Issue
Block a user