MySQL5.5 code fix for .sql files; changed TYPE= to ENGINE=
[openemr.git] / contrib / forms / sports_fitness / table.sql
blob12ef417d3249b5e48dc593422c8910807726f02c
1 CREATE TABLE IF NOT EXISTS form_sports_fitness (
2  id          bigint(20)   NOT NULL auto_increment,
3  activity    tinyint(1)   NOT NULL DEFAULT 1, -- 0 if deleted
5  -- external
6  height_meters            float(4,2)      NOT NULL DEFAULT 0.00,
7  weight_kg                float(4,2)      NOT NULL DEFAULT 0.00,
9  -- body composition
10  skin_folds_9x            float(4,2)      NOT NULL DEFAULT 0.00,
11  skin_folds_5x            float(4,2)      NOT NULL DEFAULT 0.00,
12  pct_body_fat             float(4,2)      NOT NULL DEFAULT 0.00,
13  method_body_fat          enum('Caliper', 'Electronic', 'Hydrostatic'),
15  -- cardiovascular
16  pulse                    float(4,2)      NOT NULL DEFAULT 0.00,
17  bps                      float(4,2)      NOT NULL DEFAULT 0.00,
18  bpd                      float(4,2)      NOT NULL DEFAULT 0.00,
20  -- http://www.brianmac.demon.co.uk/beep.htm describes the beep test
21  beep_level               int(11)         NOT NULL DEFAULT 0,
22  beep_shuttles            int(11)         NOT NULL DEFAULT 0,
23  beep_vo2_max             float(4,2)      NOT NULL DEFAULT 0.00,
25  -- other tests
26  vertical_jump_meters     float(4,2)      NOT NULL DEFAULT 0.00,
27  agility_505              float(4,2)      NOT NULL DEFAULT 0.00,
28  sit_and_reach_cm         float(4,1)      NOT NULL DEFAULT 0.0,
29  other                    text            NOT NULL DEFAULT '',
31  PRIMARY KEY (id)
32 ) ENGINE=MyISAM;