From 6c9f1f1994d8d98f9f60e040d53cf3d63e752129 Mon Sep 17 00:00:00 2001
From: Michelle.Chung <1242874891@qq.com>
Date: 星期三, 02 八月 2023 16:34:42 +0800
Subject: [PATCH] update 更新 sql, 优化客户端管理设备类型字典参数 ;

---
 script/sql/postgres/postgres_ry_vue_5.X.sql |   28 +++++++++++++++-------------
 1 files changed, 15 insertions(+), 13 deletions(-)

diff --git a/script/sql/postgres/postgres_ry_vue_5.X.sql b/script/sql/postgres/postgres_ry_vue_5.X.sql
index 610834a..4326f6a 100644
--- a/script/sql/postgres/postgres_ry_vue_5.X.sql
+++ b/script/sql/postgres/postgres_ry_vue_5.X.sql
@@ -14,7 +14,7 @@
     email              varchar(255)     default ''::varchar,
     avatar             varchar(500)     default ''::varchar,
     access_token       varchar(255)     not null,
-    expire_in          int8             default null::varchar,
+    expire_in          int8             default null,
     refresh_token      varchar(255)     default null::varchar,
     access_code        varchar(255)     default null::varchar,
     union_id           varchar(255)     default null::varchar,
@@ -39,9 +39,9 @@
 comment on column  sys_social.id                is '涓婚敭';
 comment on column  sys_social.user_id           is '鐢ㄦ埛ID';
 comment on column  sys_social.tenant_id         is '绉熸埛id';
-comment on column  sys_social.auth_id           is '鎺堟潈+鎺堟潈openid';
+comment on column  sys_social.auth_id           is '骞冲彴+骞冲彴鍞竴id';
 comment on column  sys_social.source            is '鐢ㄦ埛鏉ユ簮';
-comment on column  sys_social.open_id           is '鍘熺敓openid';
+comment on column  sys_social.open_id           is '骞冲彴缂栧彿鍞竴id';
 comment on column  sys_social.user_name         is '鐧诲綍璐﹀彿';
 comment on column  sys_social.nick_name         is '鐢ㄦ埛鏄电О';
 comment on column  sys_social.email             is '鐢ㄦ埛閭';
@@ -448,7 +448,7 @@
 insert into sys_menu values('115',  '浠g爜鐢熸垚',     '3',   '2', 'gen',              'tool/gen/index',               '', '1', '0', 'C', '0', '0', 'tool:gen:list',               'code',          103, 1, now(), null, null, '浠g爜鐢熸垚鑿滃崟');
 insert into sys_menu values('121',  '绉熸埛绠$悊',     '6',   '1', 'tenant',           'system/tenant/index',          '', '1', '0', 'C', '0', '0', 'system:tenant:list',          'list',          103, 1, now(), null, null, '绉熸埛绠$悊鑿滃崟');
 insert into sys_menu values('122',  '绉熸埛濂楅绠$悊', '6',   '2', 'tenantPackage',    'system/tenantPackage/index',   '', '1', '0', 'C', '0', '0', 'system:tenantPackage:list',   'form',          103, 1, now(), null, null, '绉熸埛濂楅绠$悊鑿滃崟');
-insert into sys_menu values('123',  '瀹㈡埛绔鐞�',   '1',   '1', 'client',           'system/client/index',          '', '1', '0', 'C', '0', '0', 'system:client:list',          'international', 103, 1, now(), null, null, '瀹㈡埛绔鐞嗚彍鍗�');
+insert into sys_menu values('123',  '瀹㈡埛绔鐞�',   '1',   '11', 'client',           'system/client/index',          '', '1', '0', 'C', '0', '0', 'system:client:list',          'international', 103, 1, now(), null, null, '瀹㈡埛绔鐞嗚彍鍗�');
 
 -- springboot-admin鐩戞帶
 insert into sys_menu values('117',  'Admin鐩戞帶',   '2',   '5',  'Admin',            'monitor/admin/index',         '', '1', '0', 'C', '0', '0', 'monitor:admin:list',          'dashboard',     103, 1, now(), null, null, 'Admin鐩戞帶鑿滃崟');
@@ -893,8 +893,10 @@
 insert into sys_dict_data values(32, '000000', 0,  '閭欢璁よ瘉', 'email',      'sys_grant_type',   '',   'default', 'N', '0', 103, 1, now(), null, null, '閭欢璁よ瘉');
 insert into sys_dict_data values(33, '000000', 0,  '灏忕▼搴忚璇�', 'xcx',      'sys_grant_type',   '',   'default', 'N', '0', 103, 1, now(), null, null, '灏忕▼搴忚璇�');
 insert into sys_dict_data values(34, '000000', 0,  '涓夋柟鐧诲綍璁よ瘉', 'social', 'sys_grant_type',   '',   'default', 'N', '0', 103, 1, now(), null, null, '涓夋柟鐧诲綍璁よ瘉');
-insert into sys_dict_data values(35, '000000', 0,  'PC绔�', 'pc',            'sys_device_type',   '',   'default', 'N', '0', 103, 1, now(), null, null, 'PC绔�');
-insert into sys_dict_data values(36, '000000', 0,  'APP绔�', 'app',          'sys_device_type',   '',   'default', 'N', '0', 103, 1, now(), null, null, 'APP绔�');
+insert into sys_dict_data values(35, '000000', 0,  'PC', 'pc',              'sys_device_type',   '',   'default', 'N', '0', 103, 1, now(), null, null, 'PC');
+insert into sys_dict_data values(36, '000000', 0,  '瀹夊崜', 'android',       'sys_device_type',   '',   'default', 'N', '0', 103, 1, now(), null, null, '瀹夊崜');
+insert into sys_dict_data values(37, '000000', 0,  'iOS', 'ios',            'sys_device_type',   '',   'default', 'N', '0', 103, 1, now(), null, null, 'iOS');
+insert into sys_dict_data values(38, '000000', 0,  '灏忕▼搴�', 'xcx',         'sys_device_type',   '',   'default', 'N', '0', 103, 1, now(), null, null, '灏忕▼搴�');
 
 
 -- ----------------------------
@@ -1225,11 +1227,11 @@
 drop table if exists sys_client;
 create table sys_client (
     id                  int8,
-    client_id           varchar(64)   ''::varchar,
-    client_key          varchar(32)   ''::varchar,
-    client_secret       varchar(255)  ''::varchar,
-    grant_type          varchar(255)  ''::varchar,
-    device_type         varchar(32)   ''::varchar,
+    client_id           varchar(64)   default ''::varchar,
+    client_key          varchar(32)   default ''::varchar,
+    client_secret       varchar(255)  default ''::varchar,
+    grant_type          varchar(255)  default ''::varchar,
+    device_type         varchar(32)   default ''::varchar,
     active_timeout      int4          default 1800,
     timeout             int4          default 604800,
     status              char(1)       default '0'::bpchar,
@@ -1240,7 +1242,7 @@
     update_by           int8,
     update_time         timestamp,
     constraint sys_client_pk primary key (id)
-)
+);
 
 comment on table sys_client                         is '绯荤粺鎺堟潈琛�';
 comment on column sys_client.id                     is '涓诲缓';
@@ -1260,7 +1262,7 @@
 comment on column sys_client.update_time            is '鏇存柊鏃堕棿';
 
 insert into sys_client values (1, 'e5cd7e4891bf95d1d19206ce24a7b32e', 'pc', 'pc123', 'password,social', 'pc', 1800, 604800, 0, 0, 103, 1, now(), 1, now());
-insert into sys_client values (2, '428a8310cd442757ae699df5d894f051', 'app', 'app123', 'password,sms,social', 'app', 1800, 604800, 0, 0, 103, 1, now(), 1, now());
+insert into sys_client values (2, '428a8310cd442757ae699df5d894f051', 'app', 'app123', 'password,sms,social', 'android', 1800, 604800, 0, 0, 103, 1, now(), 1, now());
 
 -- 瀛楃涓茶嚜鍔ㄨ浆鏃堕棿 閬垮厤妗嗘灦鏃堕棿鏌ヨ鎶ラ敊闂
 create or replace function cast_varchar_to_timestamp(varchar) returns timestamptz as $$

--
Gitblit v1.9.3