mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-04 16:12:39 +01:00
# WARNING: head commit changed in the meantime
Clean code
This commit is contained in:
@@ -16,15 +16,15 @@
|
||||
-- ============================================================================
|
||||
|
||||
CREATE TABLE llx_oauth_token (
|
||||
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
||||
service varchar(36), -- 'Google', 'Stripe', 'auth-public-key', ...
|
||||
token text, -- token in serialize() format, of an object StdOAuth2Token of library phpoauth2
|
||||
tokenstring text, -- token in text or json format. Value depends on 'service. For example for an OAUTH service: '{"access_token": "sk_test_cccc", "refresh_token": "rt_aaa", "token_type": "bearer", ..., "scope": "read_write"}
|
||||
fk_soc integer,
|
||||
fk_user integer, -- Id of user in llx_user
|
||||
fk_adherent integer,
|
||||
restricted_ips varchar(200), -- Restrict the authentication mode/token to some IPs
|
||||
datec datetime DEFAULT NULL, -- date creation project
|
||||
tms timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
||||
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
||||
service varchar(36), -- What king of key or token: 'Google', 'Stripe', 'auth-public-key', ...
|
||||
token text, -- token in serialize() format, of an object StdOAuth2Token of library phpoauth2
|
||||
tokenstring text, -- token in text or json format. Value depends on 'service'. For example for an OAUTH service: '{"access_token": "sk_test_cccc", "refresh_token": "rt_aaa", "token_type": "bearer", ..., "scope": "read_write"}
|
||||
fk_soc integer, -- Id of thirdparty in llx_societe
|
||||
fk_user integer, -- Id of user in llx_user
|
||||
fk_adherent integer, -- Id of member in llx_adherent
|
||||
restricted_ips varchar(200), -- Restrict the authentication mode/token to some IPs
|
||||
datec datetime DEFAULT NULL, -- date creation project
|
||||
tms timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
||||
entity integer DEFAULT 1
|
||||
)ENGINE=innodb;
|
||||
|
||||
Reference in New Issue
Block a user