diff --git a/db/.gitignore b/db/.gitignore new file mode 100644 index 0000000..98e6ef6 --- /dev/null +++ b/db/.gitignore @@ -0,0 +1 @@ +*.db diff --git a/db/README.md b/db/README.md new file mode 100644 index 0000000..eecfa86 --- /dev/null +++ b/db/README.md @@ -0,0 +1,5 @@ +### ここにaccount.dbを入れる +* dbファイルをgitに載せないために.gitignoreをこのディレクトリの直下に作る +* dbディレクトリに移動し、ターミナル上で以下のコマンドを実行する +`% sqlite3 account.db` +`sqlite> .read schema.sql` diff --git a/db/schema.sql b/db/schema.sql new file mode 100644 index 0000000..741a3d1 --- /dev/null +++ b/db/schema.sql @@ -0,0 +1,8 @@ +create table users( + id integer primary key not null, + user_id text, + password_digest text, + salt text, + created_at, + updated_at +);