mirror of
https://gitlab.com/jrmiller82/pathfinder-2-sqlite.git
synced 2026-10-12 22:29:44 -04:00
working on gear import from CSV need to get rid of a column
This commit is contained in:
1 parent
5d578c5b79
commit
94d1273265
3 files changed
+142
-3
No files matched your search
@@ -0,0 +1,22 @@
|
||||
CREATE TABLE gear(
|
||||
"gear_id" INTEGER PRIMARY KEY,
|
||||
"name" TEXT NOT NULL UNIQUE,
|
||||
"level" INTEGER,
|
||||
"price" REAL,
|
||||
"bulk" REAL,
|
||||
"traits_to_drop" TEXT, -- TODO need to drop this column eventually
|
||||
"hands" INTEGER,
|
||||
"sources_id" INTEGER,
|
||||
"sources_pages" TEXT,
|
||||
"descr" TEXT NOT NULL,
|
||||
FOREIGN KEY (sources_id) REFERENCES sources(sources_id)
|
||||
);
|
||||
|
||||
CREATE TABLE gear_traits(
|
||||
id INTEGER PRIMARY KEY,
|
||||
gear_id INTEGER NOT NULL,
|
||||
trait_id INTEGER NOT NULL,
|
||||
FOREIGN KEY (gear_id) REFERENCES gear(gear_id),
|
||||
FOREIGN KEY (trait_id) REFERENCES traits(trait_id)
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user