feature: Initial commit

This commit is contained in:
Keith Solomon
2025-02-08 11:53:31 -06:00
commit a28cf6a713
14 changed files with 1970 additions and 0 deletions

17
includes/db.php Normal file
View File

@@ -0,0 +1,17 @@
<?php
class DB {
public static function connect() {
$db = new PDO('sqlite:'.__DIR__.'/../data/bills.db');
$db->exec("CREATE TABLE IF NOT EXISTS bills (
id INTEGER PRIMARY KEY,
billDate TEXT NOT NULL,
billName TEXT NOT NULL,
amount REAL NOT NULL,
paymentId TEXT,
year INTEGER NOT NULL
)");
return $db;
}
}