From 144569acace6fe3342515c3d133220d224fc561a Mon Sep 17 00:00:00 2001 From: flykhan Date: Wed, 25 Oct 2023 11:38:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=95=B0=E6=8D=AE=E5=BA=93?= =?UTF-8?q?=E8=A1=A8=E7=BB=93=E6=9E=84:=20=E7=94=A8=E6=88=B7=E5=90=8D?= =?UTF-8?q?=E5=94=AF=E4=B8=80=E6=80=A7=E7=BA=A6=E6=9D=9F;=20=E5=90=91?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E7=99=BB=E5=BD=95=E8=A1=A8=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=9B=9B=E4=B8=AA=E6=B5=8B=E8=AF=95=E7=94=A8=E6=88=B7=E4=BF=A1?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sql_base/createtables.sql | 2 +- sql_base/green_house.db | Bin 4096 -> 5120 bytes ...insert_test_datas_to_login_users_table.sql | 24 ++++++++++++++++++ 3 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 sql_base/insert_test_datas_to_login_users_table.sql diff --git a/sql_base/createtables.sql b/sql_base/createtables.sql index ccb8912..82a2b53 100644 --- a/sql_base/createtables.sql +++ b/sql_base/createtables.sql @@ -1,7 +1,7 @@ -- 创建用户登录表 create table if not exists login_users ( userid integer primary key, - name varchar(50), + name varchar(50) unique, -- 用户名唯一 password varchar(50) ); -- 创建温湿度信息表 diff --git a/sql_base/green_house.db b/sql_base/green_house.db index 766003eaae5f9c84c78d8037e37e32ef0c1dee56..c65a5e6157f8242e8d40561e1af2aec116362199 100644 GIT binary patch literal 5120 zcmeH}J#P~+7{~3{<=T^4Aw}Yp%~FOYsF6S@I|XGx>Qd-#nVgfexbvkxA8j_8sY@k> z@*UV1=?b5LsS^W%2?-_`u`ey$MNP!o%GTNUJbv!w|NQ)N_iT4ZXif&HN|+`O00t0( zhlBtCJX2Rpy)4KW_|h?FSh5$H9_ai$TSvbEhHn76gFe)RFkT!rU4%&8^|LkM1Hb*xZDZ zdXban$%saILWLZp6$e+csDv)$>u8yHdxxczEA#p^H~ePG%*#Y5^tjTgBWfkmd9f|% z1@T3WWkRd1xNa&&9|8J- zKBG^@aK#aD1g;T*+ZcmJqaSfOjApHmFsRpKk(*KEg^7?w@~ delta 295 zcmZqBXi%6S&C1Ncz`!z5!Csh|LHFYhULcQ|Nr8d6mgy0b!e&91b&On%_RQ?!rlyQd zij(Iv>N2uSKFg@glwUA8mRZtRA-^ECD8959NaQ8vrYe*r7A0pS7HOCoXzGCF5=%1k z^WsxdOA<446iQMnN^~asGf8-AHcBwDi>s?MHs+TkCgr4-q~;dHXO!l~XXd5lqi~p= zgIpa$TopnboqSw@CLpO(&?w269M3F1`682upaM{LW=dvBr9w)6DbPfn$^V$dxHTIY r7}>>@l^Gk|Co3?UO^#-k)=