From 7129a08508fb0812349406e065c1b810fe6c7ee9 Mon Sep 17 00:00:00 2001 From: suti7yk5032 Date: Sat, 20 Jul 2024 20:12:19 +0900 Subject: [PATCH] =?UTF-8?q?PC=E3=81=AE=E7=99=BB=E9=8C=B2=E3=82=92=E8=BF=BD?= =?UTF-8?q?=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/データベースセットアップ.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/データベースセットアップ.txt b/docs/データベースセットアップ.txt index affbd63..44c603b 100644 --- a/docs/データベースセットアップ.txt +++ b/docs/データベースセットアップ.txt @@ -5,4 +5,7 @@ CREATE TABLE club_member (id SERIAL NOT NULL, name VARCHAR(30) NOT NULL, discord CREATE TABLE pc_list (pc_number INTEGER NOT NULL, using_user_id INTEGER, password_hash VARCHAR(32), PRIMARY KEY (pc_number), FOREIGN KEY (using_user_id) REFERENCES club_member(id)); CREATE TABLE pc_usage_history (id SERIAL NOT NULL, member_id INTEGER NOT NULL, pc_number INTEGER NOT NULL, device_number INTEGER NOT NULL, start_use_time TIMESTAMP NOT NULL, end_use_time TIMESTAMP, use_detail VARCHAR(30), PRIMARY KEY (id), FOREIGN KEY (member_id) REFERENCES club_member(id), FOREIGN KEY (pc_number) REFERENCES pc_list(pc_number)); +# PC登録 +INSERT INTO pc_list (pc_number) VALUES (PC番号をいれる); + INSERTのとき文字列はシングルクォーテーションで囲む!!! \ No newline at end of file