This is a Python-based system that tracks RFID tags using SQLite as the database. It allows users to track their cards with Auto RFID UUID Checking.
- Python 3.x
- SQLite 3.x
- Python SQLite3 module
- Clone or download the repository.
- Install Python if it's not already installed on your system.
- Install SQLite if it's not already installed on your system.
- Install the Python SQLite3 module if it's not already installed on your system. You can install it using pip:
pip install pysqlite3
- Create a new SQLite database using the provided schema file
rfid_db_schema.sql
. - Modify the database configuration in the
config.py
file to match your database configuration.
- Run the
main.py
script to start the program. - Follow the on-screen instructions to perform CRUD operations on the database.
- Use the
quit
command to exit the program.
The database schema consists of two tables:
Column Name | Data Type | Description |
---|---|---|
id | INTEGER | Unique identifier for the tag. |
tag_uid | TEXT | Unique identifier for the tag. |
name | TEXT | Name of the tag owner. |
description | TEXT | Description of the tag. |
created_at | TEXT | Timestamp of when the tag was created. |
updated_at | TEXT | Timestamp of when the tag was last updated. |
Column Name | Data Type | Description |
---|---|---|
id | INTEGER | Unique identifier for the log entry. |
tag_id | INTEGER | Foreign key referencing the id column of the rfid_tags table. |
timestamp | TEXT | Timestamp of when the RFID tag was detected. |
direction | TEXT | Direction of the RFID tag (in or out). |
This system is released under the MIT License. See LICENSE file for details.