Skip to content

Instantly share code, notes, and snippets.

@fIa5h
Created April 10, 2015 19:58
Show Gist options
  • Save fIa5h/1e978ebd149037de04ba to your computer and use it in GitHub Desktop.
Save fIa5h/1e978ebd149037de04ba to your computer and use it in GitHub Desktop.
--
-- Table structure for table `weekly_reports`
--
CREATE TABLE `weekly_reports` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`startdate` varchar(100) NOT NULL,
`enddate` varchar(100) NOT NULL,
`location_id` int(11) NOT NULL,
`organization_id` int(11) NOT NULL,
`created` varchar(100) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=10 ;
--
-- Table structure for table `weekly_report_customs`
--
CREATE TABLE `weekly_report_customs` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`organization_id` int(11) NOT NULL,
`name` varchar(200) NOT NULL,
`created` varchar(200) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
--
-- Table structure for table `weekly_report_notes`
--
CREATE TABLE `weekly_report_notes` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`type` int(11) NOT NULL COMMENT '0 personal, 1 resident interactions, 2 community standards, 3 programming updates, 4 staff interactions',
`question` varchar(1000) DEFAULT NULL COMMENT 'this is the question as it was posed',
`answer` varchar(1000) DEFAULT NULL,
`weekly_report_id` int(11) NOT NULL,
`created` varchar(100) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=93 ;
--
-- Table structure for table `weekly_report_programs`
--
CREATE TABLE `weekly_report_programs` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`organization_id` int(11) NOT NULL,
`name` varchar(200) NOT NULL,
`created` varchar(200) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
--
-- Table structure for table `weekly_report_tags`
--
CREATE TABLE `weekly_report_tags` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`model` varchar(200) NOT NULL,
`targetid` int(11) NOT NULL,
`weekly_report_note_id` int(11) NOT NULL,
`created` varchar(200) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=30 ;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment