Advertisement
Guest User

default.sql in pt_BR for ClinicCases 7.1.3/_INSTALL

a guest
Dec 22nd, 2014
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 23.00 KB | None | 0 0
  1. -- phpMyAdmin SQL Dump
  2. -- version 3.4.5deb1
  3. -- http://www.phpmyadmin.net
  4. --
  5. -- Host: localhost
  6. -- Generation Time: Jul 19, 2012 at 11:40 AM
  7. -- Server version: 5.1.63
  8. -- PHP Version: 5.3.6-13ubuntu3.8
  9.  
  10. SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
  11. SET time_zone = "+00:00";
  12.  
  13. --
  14. -- Database: `default`
  15. --
  16.  
  17. -- --------------------------------------------------------
  18.  
  19. --
  20. -- Table structure for table `cm`
  21. --
  22.  
  23. CREATE TABLE IF NOT EXISTS `cm` (
  24.   `id` INT(10) NOT NULL AUTO_INCREMENT,
  25.   `clinic_id` VARCHAR(255) NOT NULL,
  26.   `first_name` VARCHAR(100) NOT NULL DEFAULT '',
  27.   `middle_name` VARCHAR(100) NOT NULL DEFAULT '',
  28.   `last_name` VARCHAR(100) NOT NULL DEFAULT '',
  29.   `organization` VARCHAR(250) NOT NULL,
  30.   `date_open` VARCHAR(100) NOT NULL DEFAULT '',
  31.   `date_close` VARCHAR(100) NOT NULL DEFAULT '',
  32.   `case_type` VARCHAR(100) NOT NULL DEFAULT '',
  33.   `clinic_type` VARCHAR(200) NOT NULL,
  34.   `professor` VARCHAR(100) NOT NULL DEFAULT '',
  35.   `address1` VARCHAR(200) NOT NULL DEFAULT '',
  36.   `address2` VARCHAR(200) NOT NULL DEFAULT '',
  37.   `city` VARCHAR(100) NOT NULL DEFAULT '',
  38.   `state` VARCHAR(100) NOT NULL DEFAULT '',
  39.   `zip` VARCHAR(10) NOT NULL DEFAULT '',
  40.   `phone` text NOT NULL,
  41.   `email` text NOT NULL,
  42.   `ssn` VARCHAR(15) NOT NULL DEFAULT '',
  43.   `dob` VARCHAR(15) NOT NULL DEFAULT '',
  44.   `age` VARCHAR(10) NOT NULL DEFAULT '',
  45.   `gender` VARCHAR(10) NOT NULL DEFAULT '',
  46.   `race` VARCHAR(10) NOT NULL DEFAULT '',
  47.   `income` INT(50) DEFAULT NULL,
  48.   `per` VARCHAR(15) NOT NULL,
  49.   `judge` VARCHAR(200) NOT NULL DEFAULT '',
  50.   `pl_or_def` VARCHAR(100) NOT NULL DEFAULT '',
  51.   `court` VARCHAR(200) NOT NULL DEFAULT '',
  52.   `section` VARCHAR(100) NOT NULL DEFAULT '',
  53.   `ct_case_no` VARCHAR(100) NOT NULL DEFAULT '',
  54.   `case_name` VARCHAR(250) NOT NULL DEFAULT '',
  55.   `adverse_parties` text NOT NULL,
  56.   `notes` text NOT NULL,
  57.   `dispo` VARCHAR(100) NOT NULL DEFAULT '',
  58.   `close_notes` text NOT NULL,
  59.   `referral` VARCHAR(100) NOT NULL DEFAULT '',
  60.   `assigned_users` text NOT NULL,
  61.   `opened_by` VARCHAR(50) NOT NULL,
  62.   `time_opened` datetime NOT NULL,
  63.   `closed_by` VARCHAR(50) NOT NULL,
  64.   `time_closed` datetime NOT NULL,
  65.   PRIMARY KEY (`id`),
  66.   FULLTEXT KEY `professor` (`professor`)
  67. ) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
  68.  
  69.  
  70. -- --------------------------------------------------------
  71.  
  72. --
  73. -- Table structure for table `cm_adverse_parties`
  74. --
  75.  
  76. CREATE TABLE IF NOT EXISTS `cm_adverse_parties` (
  77.   `id` INT(7) NOT NULL AUTO_INCREMENT,
  78.   `case_id` VARCHAR(100) NOT NULL DEFAULT '',
  79.   `name` VARCHAR(250) NOT NULL DEFAULT '',
  80.   PRIMARY KEY (`id`),
  81.   FULLTEXT KEY `name` (`name`)
  82. ) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='used to check for conflicts' AUTO_INCREMENT=1 ;
  83.  
  84. -- --------------------------------------------------------
  85.  
  86. --
  87.  
  88.  
  89. --
  90. -- Table structure for table `cm_case_assignees`
  91. --
  92.  
  93. CREATE TABLE IF NOT EXISTS `cm_case_assignees` (
  94.   `id` INT(100) NOT NULL AUTO_INCREMENT,
  95.   `username` VARCHAR(100) NOT NULL DEFAULT '',
  96.   `case_id` VARCHAR(100) NOT NULL DEFAULT '',
  97.   `status` VARCHAR(50) NOT NULL DEFAULT '',
  98.   `date_assigned` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
  99.   `date_removed` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  100.   PRIMARY KEY (`id`)
  101. ) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Determine which students assigned to a case' AUTO_INCREMENT=1 ;
  102.  
  103. -- --------------------------------------------------------
  104.  
  105. --
  106. -- Table structure for table `cm_case_notes`
  107. --
  108.  
  109. CREATE TABLE IF NOT EXISTS `cm_case_notes` (
  110.   `id` INT(90) NOT NULL AUTO_INCREMENT,
  111.   `case_id` VARCHAR(100) NOT NULL DEFAULT '',
  112.   `date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  113.   `time` FLOAT NOT NULL DEFAULT '0',
  114.   `description` text NOT NULL,
  115.   `username` VARCHAR(100) NOT NULL DEFAULT '',
  116.   `prof` VARCHAR(100) NOT NULL DEFAULT '',
  117.   `datestamp` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
  118.   PRIMARY KEY (`id`)
  119. ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
  120.  
  121. -- --------------------------------------------------------
  122.  
  123. --
  124. -- Table structure for table `cm_case_types`
  125. --
  126.  
  127. CREATE TABLE IF NOT EXISTS `cm_case_types` (
  128.   `id` INT(7) NOT NULL AUTO_INCREMENT,
  129.   `type` VARCHAR(200) NOT NULL DEFAULT '',
  130.   `case_type_code` VARCHAR(200) NOT NULL,
  131.   PRIMARY KEY (`id`)
  132. ) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
  133.  
  134. --
  135. -- Dumping data for table `cm_case_types`
  136. --
  137.  
  138. INSERT INTO `cm_case_types` (`id`, `type`, `case_type_code`) VALUES
  139. (1, 'Criminal', 'CRM'),
  140. (2, 'Personalidade', 'PRS'),
  141. (3, 'Indenizacao', 'IND'),
  142. (4, 'Divorcio', 'DIV');
  143.  
  144. -- --------------------------------------------------------
  145.  
  146. --
  147. -- Table structure for table `cm_clinic_type`
  148. --
  149.  
  150. CREATE TABLE IF NOT EXISTS `cm_clinic_type` (
  151.   `id` INT(11) NOT NULL AUTO_INCREMENT,
  152.   `clinic_name` text NOT NULL,
  153.   `clinic_code` VARCHAR(3) NOT NULL,
  154.   PRIMARY KEY (`id`)
  155. ) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
  156.  
  157. --
  158. -- Dumping data for table `cm_clinic_type`
  159. --
  160.  
  161. INSERT INTO `cm_clinic_type` (`id`, `clinic_name`, `clinic_code`) VALUES
  162. (1, 'Familia', 'FAM'),
  163. (2, 'Consumidor', 'CON'),
  164. (3, 'Saude', 'SDE'),
  165. (4, 'Criminal', 'CRM');
  166.  
  167. -- --------------------------------------------------------
  168.  
  169. --
  170. -- Table structure for table `cm_columns`
  171. --
  172.  
  173. CREATE TABLE IF NOT EXISTS `cm_columns` (
  174.   `id` INT(7) NOT NULL AUTO_INCREMENT,
  175.   `db_name` VARCHAR(50) NOT NULL,
  176.   `display_name` VARCHAR(50) NOT NULL,
  177.   `include_in_case_table` VARCHAR(10) NOT NULL COMMENT 'Should this column be included into the data sent to the main case table?',
  178.   `input_type` VARCHAR(10) NOT NULL,
  179.   `select_options` text NOT NULL,
  180.   `display_by_default` VARCHAR(10) NOT NULL COMMENT 'Should this column be displayed to the case table user by default?',
  181.   `required` INT(11) NOT NULL DEFAULT '0' COMMENT 'ClinicCases cannot function without this field',
  182.   `display_order` INT(11) NOT NULL,
  183.   PRIMARY KEY (`id`),
  184.   UNIQUE KEY `id` (`id`)
  185. ) ENGINE=MyISAM  DEFAULT CHARSET=latin1 COMMENT='Defines the columns to be used in ClinicCases cases table' AUTO_INCREMENT=45 ;
  186.  
  187. --
  188. -- Dumping data for table `cm_columns`
  189. --
  190.  
  191. INSERT INTO `cm_columns` (`id`, `db_name`, `display_name`, `include_in_case_table`, `input_type`, `select_options`, `display_by_default`, `required`, `display_order`) VALUES
  192. (2, 'id', 'Id', 'true', 'text', '', 'false', 1, 2),
  193. (3, 'clinic_id', 'Caso numero', 'true', 'text', '', 'false', 1, 3),
  194. (4, 'first_name', 'Primeiro nome', 'true', 'text', '', 'true', 1, 4),
  195. (5, 'middle_name', 'Nome do meio', 'true', 'text', '', 'false', 1, 5),
  196. (6, 'last_name', 'Sobrenome', 'true', 'text', '', 'true', 1, 6),
  197. (7, 'organization', 'Organizacao', 'true', 'text', '', 'false', 1, 7),
  198. (8, 'date_open', 'Data de abertura', 'true', 'date', '', 'true', 1, 8),
  199. (9, 'date_close', 'Data de encerramento', 'true', 'date', '', 'true', 1, 41),
  200. (10, 'case_type', 'Tipo do caso', 'true', 'text', '', 'true', 1, 10),
  201. (44, 'assigned_users', 'Usuarios', 'true', 'text', '', 'false', 0, 41),
  202. (41, 'adverse_parties', 'Parte adversa', 'true', 'multi-text', '', 'false', 1, 33),
  203. (11, 'clinic_type', 'Tipo do caso', 'true', 'text', '', 'false', 0, 11),
  204. (12, 'address1', 'Endereco 1', 'false', 'text', '', 'false', 0, 12),
  205. (13, 'address2', 'Endereco 2', 'false', 'text', '', 'false', 0, 13),
  206. (14, 'city', 'Cidade', 'false', 'text', '', 'false', 0, 14),
  207. (15, 'state', 'Estado', 'false', 'text', '', 'false', 0, 15),
  208. (16, 'zip', 'CEP', 'false', 'text', '', 'false', 0, 16),
  209. (17, 'phone', 'Telefone', 'true', 'dual', 'a:5:{s:4:"home";s:4:"Casa";s:4:"work";s:8:"Trabalho";s:6:"mobile";s:7:"Celular";s:3:"fax";s:3:"Fax";s:5:"other";s:5:"Outro";}', 'false', 1, 17),
  210. (19, 'email', 'E-mail', 'true', 'dual', 'a:3:{s:4:"Home";s:4:"Casa";s:4:"Work";s:8:"Trabalho";s:5:"Other";s:5:"Other";}', 'false', 1, 19),
  211. (20, 'ssn', 'PIS', 'true', 'text', '', 'false', 0, 20),
  212. (21, 'dob', 'Nascimento', 'true', 'text', '', 'false', 0, 21),
  213. (22, 'age', 'Idade', 'true', 'text', '', 'false', 0, 22),
  214. (23, 'gender', 'Genero', 'true', 'select', 'a:2:{s:1:"M";s:5:"Homem";s:1:"F";s:6:"Mulher";}', 'false', 0, 23),
  215. (24, 'race', 'Etnia', 'true', 'select', 'a:4:{s:2:"NE";s:5:"Negro";s:1:"B";s:9:"Caucasiano";s:1:"A";s:8:"Asiatico";s:1:"O";s:5:"Outro";}', 'false', 0, 24),
  216. (25, 'income', 'Renda', 'false', 'text', '', 'false', 0, 25),
  217. (26, 'per', 'Por', 'false', 'select', 'a:4:{s:3:"day";s:3:"Dia";s:4:"week";s:6:"Semana";s:5:"month";s:3:"Mes";s:4:"year";s:3:"Ano";}', 'false', 0, 26),
  218. (27, 'judge', 'Julgador', 'false', 'text', '', 'false', 0, 27),
  219. (28, 'pl_or_def', 'Autor ou Reu', 'false', 'select', 'a:3:{s:9:"plaintiff";s:5:"Autor";s:9:"defendant";s:3:"Reu";s:5:"other";s:5:"Outro";}', 'false', 0, 28),
  220. (29, 'court', 'Juizo', 'true', 'text', '', 'false', 0, 29),
  221. (30, 'section', 'Vara/Camara', 'false', 'text', '', 'false', 0, 30),
  222. (31, 'ct_case_no', 'Numero dos autos', 'false', 'text', '', 'false', 0, 31),
  223. (32, 'case_name', 'Nome do caso', 'false', 'text', '', 'false', 0, 32),
  224. (33, 'notes', 'Anotacoes', 'false', 'textarea', '', 'false', 0, 33),
  225. (36, 'Como acabou', 'Disposition', 'true', 'text', '', 'true', 0, 42),
  226. (38, 'close_notes', 'Anotacoes de encerramento', 'false', 'textarea', '', 'false', 0, 44),
  227. (39, 'referral', 'Veio a nos por', 'true', 'text', '', 'false', 0, 39),
  228. (40, 'opened_by', 'Atendido por', 'true', 'text', '', 'true', 1, 40);
  229.  
  230. -- --------------------------------------------------------
  231.  
  232. --
  233. -- Table structure for table `cm_contacts`
  234. --
  235.  
  236. CREATE TABLE IF NOT EXISTS `cm_contacts` (
  237.   `id` INT(10) NOT NULL AUTO_INCREMENT,
  238.   `first_name` VARCHAR(100) NOT NULL DEFAULT '',
  239.   `last_name` VARCHAR(100) NOT NULL DEFAULT '',
  240.   `organization` VARCHAR(200) NOT NULL,
  241.   `type` VARCHAR(50) NOT NULL DEFAULT '',
  242.   `address` text NOT NULL,
  243.   `city` VARCHAR(100) NOT NULL DEFAULT '',
  244.   `state` CHAR(2) NOT NULL DEFAULT '',
  245.   `zip` VARCHAR(10) NOT NULL DEFAULT '',
  246.   `phone` text NOT NULL,
  247.   `email` text NOT NULL,
  248.   `url` text NOT NULL,
  249.   `notes` text NOT NULL,
  250.   `assoc_case` VARCHAR(10) NOT NULL DEFAULT '',
  251.   PRIMARY KEY (`id`)
  252. ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
  253.  
  254. -- --------------------------------------------------------
  255.  
  256. --
  257. -- Table structure for table `cm_contacts_types`
  258. --
  259.  
  260. CREATE TABLE IF NOT EXISTS `cm_contacts_types` (
  261.   `id` INT(7) NOT NULL AUTO_INCREMENT,
  262.   `type` VARCHAR(100) NOT NULL DEFAULT '',
  263.   PRIMARY KEY (`id`)
  264. ) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=7 ;
  265.  
  266. --
  267. -- Dumping data for table `cm_contacts_types`
  268. --
  269.  
  270. INSERT INTO `cm_contacts_types` (`id`, `type`) VALUES
  271. (1, 'Testemunha'),
  272. (2, 'Advogado da parte adversa'),
  273. (3, 'Parte adversa'),
  274. (4, 'Parente ou amigo do cliente'),
  275. (5, 'Perito'),
  276. (6, 'Outro');
  277.  
  278. -- --------------------------------------------------------
  279.  
  280. --
  281. -- Table structure for table `cm_courts`
  282. --
  283.  
  284. CREATE TABLE IF NOT EXISTS `cm_courts` (
  285.   `id` INT(7) NOT NULL AUTO_INCREMENT,
  286.   `court` VARCHAR(200) NOT NULL DEFAULT '',
  287.   PRIMARY KEY (`id`)
  288. ) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
  289.  
  290. --
  291. -- Dumping data for table `cm_courts`
  292. --
  293.  
  294. INSERT INTO `cm_courts` (`id`, `court`) VALUES
  295. (1, 'Justica Comum'),
  296. (2, 'Juizado Especial ');
  297.  
  298. -- --------------------------------------------------------
  299.  
  300. --
  301. -- Table structure for table `cm_dispos`
  302. --
  303.  
  304. CREATE TABLE IF NOT EXISTS `cm_dispos` (
  305.   `id` INT(10) NOT NULL AUTO_INCREMENT,
  306.   `dispo` VARCHAR(200) NOT NULL DEFAULT '',
  307.   PRIMARY KEY (`id`)
  308. ) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=6 ;
  309.  
  310. --
  311. -- Dumping data for table `cm_dispos`
  312. --
  313.  
  314. INSERT INTO `cm_dispos` (`id`, `dispo`) VALUES
  315. (1, 'Apenas aconselhamento'),
  316. (2, 'Julgado'),
  317. (3, 'Exito'),
  318. (4, 'Reves'),
  319. (5, 'Cliente desistiu');
  320.  
  321. -- --------------------------------------------------------
  322.  
  323. --
  324. -- Table structure for table `cm_documents`
  325. --
  326.  
  327. CREATE TABLE IF NOT EXISTS `cm_documents` (
  328.   `id` INT(100) NOT NULL AUTO_INCREMENT,
  329.   `name` VARCHAR(200) NOT NULL DEFAULT '',
  330.   `local_file_name` VARCHAR(200) NOT NULL DEFAULT '',
  331.   `extension` VARCHAR(10) NOT NULL,
  332.   `folder` VARCHAR(100) NOT NULL DEFAULT '',
  333.   `containing_folder` VARCHAR(100) NOT NULL,
  334.   `text` text NOT NULL,
  335.   `write_permission` VARCHAR(500) NOT NULL,
  336.   `username` VARCHAR(100) NOT NULL DEFAULT '',
  337.   `case_id` VARCHAR(100) NOT NULL DEFAULT '',
  338.   `date_modified` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
  339.   PRIMARY KEY (`id`)
  340. ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
  341.  
  342. -- --------------------------------------------------------
  343.  
  344. --
  345. -- Table structure for table `cm_events`
  346. --
  347.  
  348. CREATE TABLE IF NOT EXISTS `cm_events` (
  349.   `id` INT(10) NOT NULL AUTO_INCREMENT,
  350.   `case_id` VARCHAR(100) NOT NULL DEFAULT '',
  351.   `set_by` VARCHAR(100) NOT NULL DEFAULT '',
  352.   `task` VARCHAR(225) NOT NULL DEFAULT '',
  353.   `date_set` DATE NOT NULL DEFAULT '0000-00-00',
  354.   `start` datetime NOT NULL,
  355.   `start_text` VARCHAR(200) NOT NULL,
  356.   `end_text` VARCHAR(200) NOT NULL,
  357.   `end` datetime DEFAULT NULL,
  358.   `all_day` tinyint(1) NOT NULL,
  359.   `status` VARCHAR(100) NOT NULL DEFAULT '',
  360.   `notes` text NOT NULL,
  361.   `location` text NOT NULL,
  362.   `prof` VARCHAR(200) NOT NULL DEFAULT '',
  363.   `archived` VARCHAR(10) NOT NULL DEFAULT 'n',
  364.   `time_added` datetime NOT NULL,
  365.   PRIMARY KEY (`id`)
  366. ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
  367.  
  368. -- --------------------------------------------------------
  369.  
  370. --
  371. -- Table structure for table `cm_events_responsibles`
  372. --
  373.  
  374. CREATE TABLE IF NOT EXISTS `cm_events_responsibles` (
  375.   `id` INT(10) NOT NULL AUTO_INCREMENT,
  376.   `event_id` VARCHAR(100) NOT NULL DEFAULT '',
  377.   `username` VARCHAR(100) NOT NULL DEFAULT '',
  378.   `time_added` datetime NOT NULL,
  379.   PRIMARY KEY (`id`)
  380. ) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Linked to cm_events; who is responsible for each event' AUTO_INCREMENT=1 ;
  381.  
  382. -- --------------------------------------------------------
  383.  
  384. --
  385. -- Table structure for table `cm_groups`
  386. --
  387.  
  388. CREATE TABLE IF NOT EXISTS `cm_groups` (
  389.   `id` INT(10) NOT NULL AUTO_INCREMENT,
  390.   `group_name` VARCHAR(50) NOT NULL,
  391.   `group_title` VARCHAR(100) NOT NULL,
  392.   `group_description` text NOT NULL,
  393.   `allowed_tabs` VARCHAR(500) NOT NULL COMMENT 'An object which controls which tabs the user is allowed to see.',
  394.   `add_cases` INT(2) NOT NULL,
  395.   `delete_cases` INT(2) NOT NULL,
  396.   `edit_cases` INT(2) NOT NULL,
  397.   `close_cases` INT(2) NOT NULL,
  398.   `view_all_cases` INT(2) NOT NULL COMMENT 'User can view all cases or only cases to which they are assigned',
  399.   `assign_cases` INT(2) NOT NULL COMMENT 'Can the user assign cases to users?',
  400.   `view_users` INT(2) NOT NULL,
  401.   `add_users` INT(2) NOT NULL,
  402.   `delete_users` INT(2) NOT NULL,
  403.   `edit_users` INT(2) NOT NULL,
  404.   `activate_users` INT(2) NOT NULL,
  405.   `add_case_notes` INT(2) NOT NULL,
  406.   `edit_case_notes` INT(2) NOT NULL,
  407.   `delete_case_notes` INT(2) NOT NULL,
  408.   `documents_upload` INT(2) NOT NULL,
  409.   `documents_modify` INT(2) NOT NULL,
  410.   `add_events` INT(2) NOT NULL,
  411.   `edit_events` INT(2) NOT NULL,
  412.   `delete_events` INT(2) NOT NULL,
  413.   `add_contacts` INT(2) NOT NULL,
  414.   `edit_contacts` INT(2) NOT NULL,
  415.   `delete_contacts` INT(2) NOT NULL,
  416.   `post_in_board` INT(2) NOT NULL,
  417.   `view_board` INT(2) NOT NULL,
  418.   `edit_posts` INT(2) NOT NULL,
  419.   `reads_journals` INT(2) NOT NULL,
  420.   `writes_journals` INT(2) NOT NULL,
  421.   `change_permissions` INT(2) NOT NULL,
  422.   `can_configure` INT(2) NOT NULL,
  423.   `supervises` INT(2) NOT NULL COMMENT 'The user has other users under him who he supervises, e.g, students, associates',
  424.   `is_supervised` INT(2) NOT NULL COMMENT 'This user works on cases,but is supervised by another user',
  425.   PRIMARY KEY (`id`)
  426. ) ENGINE=MyISAM  DEFAULT CHARSET=latin1 COMMENT='Allows admin to create user groups and set definitions' AUTO_INCREMENT=5 ;
  427.  
  428. --
  429. -- Dumping data for table `cm_groups`
  430. --
  431.  
  432. INSERT INTO `cm_groups` (`id`, `group_name`, `group_title`, `group_description`, `allowed_tabs`, `add_cases`, `delete_cases`, `edit_cases`, `close_cases`, `view_all_cases`, `assign_cases`, `view_users`, `add_users`, `delete_users`, `edit_users`, `activate_users`, `add_case_notes`, `edit_case_notes`, `delete_case_notes`, `documents_upload`, `documents_modify`, `add_events`, `edit_events`, `delete_events`, `add_contacts`, `edit_contacts`, `delete_contacts`, `post_in_board`, `view_board`, `edit_posts`, `reads_journals`, `writes_journals`, `change_permissions`, `can_configure`, `supervises`, `is_supervised`) VALUES
  433. (1, 'super', 'Super User', 'The super user can access all ClinicCases functions and add, edit, and delete all data.  Most importantly, only the super user can change permissions for all users.\r\nSuper User access should be restricted to a limited number of users.', 'a:8:{i:0;s:4:"Home";i:1;s:5:"Cases";i:2;s:5:"Group";i:3;s:5:"Users";i:4;s:8:"Journals";i:5;s:5:"Board";i:6;s:9:"Utilities";i:7;s:8:"Messages";}', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0),
  434. (2, 'admin', 'Administrador', 'The administrator can access all ClinicCases functions and view,edit, and delete all data.  By default, the administrator is the only user who can add new files or authorize new users.\r\n\r\nThe administrator cannot change group permissions.', 'a:6:{i:0;s:4:"Home";i:1;s:5:"Cases";i:2;s:5:"Users";i:3;s:5:"Board";i:4;s:9:"Utilities";i:5;s:8:"Messages";}', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0),
  435. (3, 'student', 'Aluno', 'Students can only access the cases to which they have been assigned by a professor.', 'a:6:{i:0;s:4:"Home";i:1;s:5:"Cases";i:2;s:8:"Journals";i:3;s:5:"Board";i:4;s:9:"Utilities";i:5;s:8:"Messages";}', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 0, 0, 1),
  436. (4, 'prof', 'Professor', 'Professors supervise students.  By default, they can assign students to cases and view, edit, and delete all data in cases to which they are assigned.', 'a:7:{i:0;s:4:"Home";i:1;s:5:"Cases";i:2;s:5:"Group";i:3;s:8:"Journals";i:4;s:5:"Board";i:5;s:9:"Utilities";i:6;s:8:"Messages";}', 0, 0, 1, 1, 0, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 0);
  437.  
  438. -- --------------------------------------------------------
  439.  
  440. --
  441. -- Table structure for table `cm_journals`
  442. --
  443.  
  444. CREATE TABLE IF NOT EXISTS `cm_journals` (
  445.   `id` INT(10) NOT NULL AUTO_INCREMENT,
  446.   `username` VARCHAR(100) NOT NULL DEFAULT '',
  447.   `reader` text NOT NULL,
  448.   `text` text NOT NULL,
  449.   `date_added` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  450.   `archived` text NOT NULL,
  451.   `read` text NOT NULL,
  452.   `commented` VARCHAR(10) NOT NULL DEFAULT '',
  453.   `comments` text NOT NULL,
  454.   PRIMARY KEY (`id`)
  455. ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
  456.  
  457. -- --------------------------------------------------------
  458.  
  459. --
  460. -- Table structure for table `cm_logs`
  461. --
  462.  
  463. CREATE TABLE IF NOT EXISTS `cm_logs` (
  464.   `id` INT(10) NOT NULL AUTO_INCREMENT,
  465.   `username` VARCHAR(100) NOT NULL DEFAULT '',
  466.   `timestamp` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
  467.   `ip` VARCHAR(20) NOT NULL DEFAULT '',
  468.   `session_id` VARCHAR(200) NOT NULL DEFAULT '',
  469.   `type` VARCHAR(200) NOT NULL DEFAULT '',
  470.   `last_msg_check` datetime NOT NULL,
  471.   PRIMARY KEY (`id`)
  472. ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
  473.  
  474. -- --------------------------------------------------------
  475.  
  476. --
  477. -- Table structure for table `cm_messages`
  478. --
  479.  
  480. CREATE TABLE IF NOT EXISTS `cm_messages` (
  481.   `id` INT(10) NOT NULL AUTO_INCREMENT,
  482.   `thread_id` VARCHAR(100) NOT NULL DEFAULT '',
  483.   `to` text NOT NULL,
  484.   `from` VARCHAR(100) NOT NULL DEFAULT '',
  485.   `ccs` text,
  486.   `subject` VARCHAR(100) NOT NULL DEFAULT '',
  487.   `body` text NOT NULL,
  488.   `assoc_case` VARCHAR(100) NOT NULL DEFAULT '',
  489.   `time_sent` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
  490.   `read` text NOT NULL,
  491.   `archive` text NOT NULL,
  492.   `starred` text NOT NULL,
  493.   `to_text` text NOT NULL,
  494.   `cc_text` text NOT NULL,
  495.   `assoc_case_text` text NOT NULL,
  496.   `time_sent_text` text NOT NULL,
  497.   PRIMARY KEY (`id`)
  498. ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
  499.  
  500. -- --------------------------------------------------------
  501.  
  502. --
  503. -- Table structure for table `cm_referral`
  504. --
  505.  
  506. CREATE TABLE IF NOT EXISTS `cm_referral` (
  507.   `id` INT(7) NOT NULL AUTO_INCREMENT,
  508.   `referral` VARCHAR(200) NOT NULL DEFAULT '',
  509.   PRIMARY KEY (`id`)
  510. ) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=4;
  511.  
  512. -- --------------------------------------------------------
  513.  
  514. --
  515. -- Table structure for table `cm_users`
  516. --
  517.  
  518. CREATE TABLE IF NOT EXISTS `cm_users` (
  519.   `id` INT(10) NOT NULL AUTO_INCREMENT,
  520.   `first_name` VARCHAR(100) NOT NULL DEFAULT '',
  521.   `last_name` VARCHAR(100) NOT NULL DEFAULT '',
  522.   `email` VARCHAR(100) NOT NULL DEFAULT '',
  523.   `mobile_phone` VARCHAR(15) NOT NULL DEFAULT '',
  524.   `office_phone` VARCHAR(25) NOT NULL DEFAULT '',
  525.   `home_phone` VARCHAR(15) NOT NULL DEFAULT '',
  526.   `grp` VARCHAR(20) NOT NULL DEFAULT '',
  527.   `username` VARCHAR(25) NOT NULL DEFAULT '',
  528.   `password` VARCHAR(100) NOT NULL DEFAULT '',
  529.   `supervisors` text NOT NULL,
  530.   `picture_url` VARCHAR(200) NOT NULL DEFAULT 'people/no_picture.png',
  531.   `timezone_offset` VARCHAR(5) NOT NULL DEFAULT '1',
  532.   `status` VARCHAR(100) NOT NULL DEFAULT 'inactive',
  533.   `new` VARCHAR(20) NOT NULL DEFAULT '',
  534.   `date_created` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
  535.   `pref_case` VARCHAR(10) NOT NULL DEFAULT 'on',
  536.   `pref_journal` VARCHAR(10) NOT NULL DEFAULT '',
  537.   `pref_case_prof` VARCHAR(10) NOT NULL DEFAULT 'on' COMMENT 'does professor work on cases',
  538.   `evals` text NOT NULL,
  539.   `private_key` VARCHAR(50) NOT NULL DEFAULT '',
  540.   `force_new_password` INT(2) NOT NULL DEFAULT '0',
  541.   PRIMARY KEY (`id`),
  542.   UNIQUE KEY `username` (`username`)
  543. ) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
  544.  
  545. --
  546. -- Dumping data for table `cm_users`
  547. --
  548.  
  549. INSERT INTO `cm_users` (`id`, `first_name`, `last_name`, `email`, `mobile_phone`, `office_phone`, `home_phone`, `grp`, `username`, `password`, `supervisors`, `picture_url`, `timezone_offset`, `status`, `new`, `date_created`, `pref_case`, `pref_journal`, `pref_case_prof`, `evals`, `private_key`, `force_new_password`) VALUES
  550. (1, 'Temp', 'Admin', '', '', '', '', 'admin', 'admin', '21232f297a57a5a743894a0e4a801fc3', '', 'people/no_picture.png', '1', 'active', '', '2012-07-02 14:57:44', 'on', '', 'on', '', '', 1);
  551.  
  552. --
  553. -- Table structure for table `cm_board`
  554. --
  555.  
  556. CREATE TABLE IF NOT EXISTS `cm_board` (
  557.   `id` INT(11) NOT NULL AUTO_INCREMENT,
  558.   `title` VARCHAR(500) NOT NULL,
  559.   `body` text NOT NULL,
  560.   `color` VARCHAR(50) NOT NULL,
  561.   `author` VARCHAR(250) NOT NULL,
  562.   `time_added` datetime NOT NULL,
  563.   `time_edited` datetime NOT NULL,
  564.   PRIMARY KEY (`id`)
  565. ) ENGINE=MyISAM  DEFAULT CHARSET=latin1;
  566.  
  567. --
  568. -- Table structure for table `cm_board_attachments`
  569. --
  570.  
  571. CREATE TABLE IF NOT EXISTS `cm_board_attachments` (
  572.   `id` INT(11) NOT NULL AUTO_INCREMENT,
  573.   `name` VARCHAR(500) NOT NULL,
  574.   `local_file_name` VARCHAR(200) NOT NULL,
  575.   `extension` VARCHAR(10) NOT NULL,
  576.   `username` VARCHAR(200) NOT NULL,
  577.   `post_id` INT(11) NOT NULL,
  578.   `time_added` datetime NOT NULL,
  579.   PRIMARY KEY (`id`)
  580. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  581.  
  582. CREATE TABLE `cm_board_viewers` (
  583.   `id` INT(11) NOT NULL AUTO_INCREMENT,
  584.   `post_id` INT(11) NOT NULL,
  585.   `viewer` VARCHAR(100) NOT NULL,
  586.   PRIMARY KEY (`id`)
  587. ) ENGINE=MyISAM  DEFAULT CHARSET=latin1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement