PCの登録を追加
This commit is contained in:
parent
585ddf8cf1
commit
7129a08508
1 changed files with 3 additions and 0 deletions
|
@ -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のとき文字列はシングルクォーテーションで囲む!!!
|
Loading…
Reference in a new issue