You've already forked gun-manager-backend
25 lines
467 B
SQL
25 lines
467 B
SQL
create table 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 photos
|
|
(
|
|
id integer
|
|
constraint id
|
|
primary key autoincrement,
|
|
gun_id integer,
|
|
photo blob,
|
|
filename text
|
|
);
|
|
|