This is a simple database template for recording allergic reactions and meals.
The "*.db" file was created in SQLite.
アレルギー反応と食事を記録するためのシンプルなデータベースの雛形です。
SQLiteで「*.db」ファイルを作成しています。
Example of recording a database with "DB Browser for SQLite".1
「DB Browser for SQLite」を使ってデータベースを記録した例です。2
We have made it as simple as possible to manage the presence or absence of allergy symptoms first.
できるだけシンプルかつ、アレルギー症状の有無をまずは管理できるようにつくりました。
name テーブル名 |
Description 説明 |
---|---|
allergens | Allergy Causes アレルギーの原因 |
diagnoses | diagnoses 診断内容 |
diagnosticians | diagnostician 診断した者 |
meals | What you ate 食事内容 |
reactions | Allergic reactions アレルギー反応の有無 |
sqlite_sequence | autoincrement of siagnostician siagnosticianのautoincrement |
cid | name | type | notnull | dflt_value | pk | hidden |
---|---|---|---|---|---|---|
0 | id | INTEGER | 1 | 1 | 0 | |
1 | allergen | TEXT | 0 | 0 | 0 | |
2 | diagnostician_id | INTEGER | 0 | 0 | 0 |
- id(Primary key)
- allergen
- Foods to which you are allergic (e.g., cherries)
- アレルギーの原因となる食材(例:さくらんぼ)
- diagnostician_id
- Diagnosed (see diagnostician table)
- 診断した者(diagnostician table 参照)
cid | name | type | notnull | dflt_value | pk | hidden |
---|---|---|---|---|---|---|
0 | id | INTEGER | 1 | 1 | 0 | |
1 | created_at | TEXT | 0 | datetime('now', 'localtime') | 0 | 0 |
2 | updated_at | TEXT | 0 | datetime('now', 'localtime') | 0 | 0 |
3 | reaction_id | INTEGER | 0 | 0 | 0 | |
4 | allergen_id | INTEGER | 0 | 0 | 0 | |
5 | meal_id | INTEGER | 0 | 0 | 0 | |
6 | diagnostician_id | INTEGER | 0 | 0 | 0 | |
7 | treatment | TEXT | 0 | 0 | 0 |
- id(Primary key)
- created_at
- Date and time the data was created(auto-date).
- データをつくった日時(自動作成)
- updated_at
- Date and time the data was updated(auto-date).
- データを更新した日時(自動作成)
- reaction_id
- Allergic reaction (yes or no, see reaction table).
- アレルギー反応(あり or なし,reaction table 参照)
- allergen_id
- Allergic reaction (yes or no, see reaction table).
- アレルゲンの名前(allergen table 参照)
- meal_id
- Meal table (see meal table).
- 食事内容(meal table 参照)
- deagnostician_id
- Persons diagnosed (see deagnostician table).
- 診断した者(deagnostician table 参照)
- treatment
- Notes on treatment methods, etc.
- 治療方法などのメモ
cid | name | type | notnull | dflt_value | pk | hidden |
---|---|---|---|---|---|---|
0 | id | INTEGER | 1 | 1 | 0 | |
1 | diagnostician | TEXT | 0 | 0 | 0 |
- id(Primary key)
- diagnostician
- Person who made the diagnosis (e.g., the person himself/herself, Doctor xx)
- 診断した者(例:本人,xx医師)
cid | name | type | notnull | dflt_value | pk | hidden |
---|---|---|---|---|---|---|
0 | id | INTEGER | 1 | 1 | 0 | |
1 | created_at | INTEGER | 0 | datetime('now', 'localtime') | 0 | 0 |
2 | url | TEXT | 0 | 0 | 0 | |
3 | memo | TEXT | 0 | 0 | 0 |
- id
- id(Primary key)
- created_at
- The date the data was created(auto-date).
- データを作成した日付(自動作成)
- url
- This is a path of images taken of the meal.
- It is assumed that the contents of the meal will be recorded using a service that manages images taken with a smartphone or other device in the cloud and records URLs and other links.
- 食事の内容を撮影した画像のパス(URL)
- 食事の内容はスマートフォンなどで撮影した画像をクラウドで管理するサービスなどを利用して、 URLなどリンク先を記録するように想定しています。
- This is a path of images taken of the meal.
- memo
- A brief note of the meal.
- 食事の内容の簡単なメモ書き
cid | name | type | notnull | dflt_value | pk | hidden |
---|---|---|---|---|---|---|
0 | id | INTEGER | 1 | 1 | 0 | |
1 | created_at | TEXT | 0 | datetime('now', 'localtime') | 0 | 0 |
2 | reaction | INTEGER | 0 | 0 | ||
3 | symptom | TEXT | 0 | 0 | 0 |
- id
- id(Primary key)
- created_at
- The date the data was created(auto-date).
- データを作成した日付(自動作成)
- reaction
- Presence of allergic symptoms (None: 0, Yes: 1)
- アレルギー症状の有無(なし:0、あり:1)
- symptom
- Description of allergy symptoms (e.g., nausea)
- アレルギー症状の内容(例:吐き気)
An environment that can operate SQLite is required.
SQLiteが動作する環境が必要です。
Unzip the zip file downloaded from "Release" and open the "allergic_reactions.db" file in the "allergic-reactions-database-0.1.0" folder with "DB Browser for SQLite".
Or, use SQLite from a command prompt.
「Release」からダウンロードしたzipファイルを解凍し、「allergic-reactions-database-0.1.0」フォルダの中の「allergic_reactions.db」ファイルを"DB Browser for SQLite"で開く、
もしくはコマンドプロンプトなどからSQLiteをお使いください。
- Katsutoshi Machida
- Machi Store
- [email protected]
"marionette_palettes" is under The MIT License(https://licenses.opensource.jp/MIT/MIT.html)
Copyright (c) 2022 Katsutoshi Machida