Merge branch 'master' of git://github.com/openemr/openemr
[openemr.git] / contrib / forms / treatment_protocols / table.sql
blob1c8ffde96008c830f0287cfaff3c9e27b9991cd7
1 # id is the form ID. Negative form IDs are used for the templates.
2 # (rownbr, colnbr) start at (0, 0) for cell data.  (-1, -1) is used for the
3 # template name.
5 # datatype is one of:
6 # 0 = unused cell
7 # 1 = static text
8 # 2 = checkbox
9 # 3 = text input
11 CREATE TABLE IF NOT EXISTS form_treatment_protocols (
12  id                int          NOT NULL,
13  rownbr            int          NOT NULL DEFAULT 0,
14  colnbr            int          NOT NULL DEFAULT 0,
15  datatype          tinyint      NOT NULL DEFAULT 0,
16  value             varchar(255) DEFAULT NULL,
17  PRIMARY KEY (id, rownbr, colnbr)
18 ) TYPE=MyISAM;