migrations

This commit is contained in:
2025-07-29 12:14:57 -04:00
parent 5ac3032a16
commit 61a31a6977
6 changed files with 81 additions and 2 deletions

View File

@@ -0,0 +1,2 @@
drop table photos;
drop table guns;

View File

@@ -0,0 +1,23 @@
create table if not exists guns
(
id integer
constraint id
primary key autoincrement,
make text,
model text,
serial_number text,
purchase_amount integer,
value_amount integer,
date_purchased text,
notes text
);
create table if not exists photos
(
id integer
constraint id
primary key autoincrement,
gun_id integer,
photo blob,
filename text
);