{"name":"taxonomy.sqlite","desc":"","tables":[{"name":"division","type":"table","comment":"","columns":[{"name":"id","type":"INTEGER","nullable":false,"default":null,"comment":""},{"name":"division","type":"VARCHAR (50)","nullable":false,"default":null,"comment":""}],"indexes":[],"constraints":[{"name":"id","type":"PRIMARY KEY","def":"PRIMARY KEY (id)","table":"division","referenced_table":null,"columns":["id"],"referenced_columns":null,"comment":""}],"triggers":[],"def":"CREATE TABLE division (\n id INTEGER NOT NULL\n PRIMARY KEY,\n division VARCHAR (50) NOT NULL\n)"},{"name":"node","type":"table","comment":"","columns":[{"name":"tax_id","type":"INTEGER","nullable":false,"default":null,"comment":""},{"name":"parent_tax_id","type":"INTEGER","nullable":true,"default":null,"comment":""},{"name":"rank","type":"VARCHAR (25)","nullable":false,"default":null,"comment":""},{"name":"division_id","type":"INTEGER","nullable":false,"default":null,"comment":""},{"name":"comment","type":"TEXT","nullable":true,"default":null,"comment":""}],"indexes":[{"name":"idx_node_parent_id","def":"CREATE INDEX idx_node_parent_id ON node(parent_tax_id)","table":"node","columns":["parent_tax_id"],"comment":""}],"constraints":[{"name":"tax_id","type":"PRIMARY KEY","def":"PRIMARY KEY (tax_id)","table":"node","referenced_table":null,"columns":["tax_id"],"referenced_columns":null,"comment":""},{"name":"- (Foreign key ID: 0)","type":"FOREIGN KEY","def":"FOREIGN KEY (division_id) REFERENCES division (id) ON UPDATE NO ACTION ON DELETE NO ACTION MATCH NONE","table":"node","referenced_table":"division","columns":["division_id"],"referenced_columns":["id"],"comment":""}],"triggers":[],"def":"CREATE TABLE node (\n tax_id INTEGER NOT NULL\n PRIMARY KEY,\n parent_tax_id INTEGER,\n rank VARCHAR (25) NOT NULL,\n division_id INTEGER NOT NULL,\n comment TEXT,\n FOREIGN KEY (\n division_id\n )\n REFERENCES division (id)\n)"},{"name":"name","type":"table","comment":"","columns":[{"name":"id","type":"INTEGER","nullable":false,"default":null,"comment":""},{"name":"tax_id","type":"INTEGER","nullable":false,"default":null,"comment":""},{"name":"name","type":"VARCHAR (50)","nullable":false,"default":null,"comment":""},{"name":"name_class","type":"VARCHAR (50)","nullable":false,"default":null,"comment":""}],"indexes":[{"name":"idx_name_name","def":"CREATE INDEX idx_name_name ON name(name)","table":"name","columns":["name"],"comment":""},{"name":"idx_name_tax_id","def":"CREATE INDEX idx_name_tax_id ON name(tax_id)","table":"name","columns":["tax_id"],"comment":""}],"constraints":[{"name":"id","type":"PRIMARY KEY","def":"PRIMARY KEY (id)","table":"name","referenced_table":null,"columns":["id"],"referenced_columns":null,"comment":""}],"triggers":[],"def":"CREATE TABLE name (\n id INTEGER NOT NULL\n PRIMARY KEY,\n tax_id INTEGER NOT NULL,\n name VARCHAR (50) NOT NULL,\n name_class VARCHAR (50) NOT NULL\n)"}],"relations":[{"table":"node","columns":["division_id"],"parent_table":"division","parent_columns":["id"],"def":"FOREIGN KEY (division_id) REFERENCES division (id) ON UPDATE NO ACTION ON DELETE NO ACTION MATCH NONE","virtual":false}],"functions":null,"driver":{"name":"sqlite","database_version":"3.39.4","meta":{}}}