Last active 1 week ago
0
0
1
| 1 | #!/bin/bash |
| 2 | |
| 3 | DB_FILE="/path/to/your/database.sqlite3" |
| 4 | |
| 5 | # Function to initialize the database |
| 6 | function initialize_db() { |
| 7 | sqlite3 "$DB_FILE" "CREATE TABLE IF NOT EXISTS users ( |
| 8 | id INTEGER PRIMARY KEY AUTOINCREMENT, |
| 9 | username TEXT NOT NULL UNIQUE, |
| 10 | password TEXT NOT NULL, |