SELECT sql FROM sqlite_master WHERE UPPER(name) = 'CASHES' AND type = 'table'
CREATE TABLE "cashes" (
"id" INTEGER PRIMARY KEY NOT NULL,
"nmcl_id" INT(10) NOT NULL,
"group" INT(11) NOT NULL,
"cash_type_id" INT(10) NOT NULL,
"price" DECIMAL(10,2) NOT NULL,
"cur_id" INT(10) NOT NULL DEFAULT ('1'),
"qnt" INT(11) NOT NULL DEFAULT ('1'),
"date" DATE NOT NULL,
"org_id" INT(10) NOT NULL,
"file" VARCHAR(250) NOT NULL,
"bd_id" INT(10) NOT NULL DEFAULT ('1'),
"uid" INT(10) NOT NULL DEFAULT ('1'),
"type" TINYINT(4) NOT NULL DEFAULT ('0'),
"note" TEXT NOT NULL,
"date_edit" TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
"visible" TINYINT(4) NOT NULL DEFAULT ('1')
)