23 lines
493 B
SQL
23 lines
493 B
SQL
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
|
|
); |