##################################### # === ===== ==== === === ==== # # = = = = = = = = # # = === ==== ==== ===== = === # # = = = = = = = = = # # === ===== = = = = === ==== # ##################################### # {Tabelas Gerais} # # # Table structure for table 'Cursos' # CREATE TABLE Cursos ( cod_curso int(11) NOT NULL default '0', nome_curso varchar(128) NOT NULL default '', inscricao_inicio int(11) default NULL, inscricao_fim int(11) default NULL, curso_inicio int(11) default NULL, curso_fim int(11) default NULL, informacoes text, publico_alvo text, tipo_inscricao text, num_alunos int(11) default NULL, cod_coordenador int(11) NOT NULL default '0', acesso_visitante char(1) default NULL, cod_pasta int(11) default NULL, _timestamp int(11) default NULL, cod_lingua INT, PRIMARY KEY (cod_curso) ); # # Table structure for table 'Config' # CREATE TABLE Config ( item varchar(20) default NULL, valor text ); # # Dumping data for table 'Config' # INSERT INTO Config VALUES ('status_coordenador','C'); # # Table structure for table 'Usuario' # CREATE TABLE Usuario ( cod_usuario int(11) NOT NULL, nome varchar(128) NOT NULL default '', rg varchar(11) default NULL, email varchar(128) NOT NULL default '', telefone varchar(20) default NULL, endereco varchar(100) default NULL, cidade varchar(50) default NULL, estado char(2) default NULL, pais varchar(30) default NULL, data_nasc int(11) default NULL, sexo char(1) default NULL, local_trab varchar(40) default NULL, profissao varchar(40) default NULL, cod_escolaridade int(11) default NULL, informacoes text, login varchar(20) NOT NULL default '', senha varchar(20) default NULL, tipo_usuario varchar(20) default NULL, opcoes char(1) default NULL, data_inscricao int(11) default NULL, cod_lingua INT, portfolio varchar(10) default 'ativado' NOT NULL, PRIMARY KEY (cod_usuario) ); INSERT INTO Usuario VALUES (-1,'Administracao do TelEduc','','','','','','','',0,'M','','',3,'','admtele','','F','N',NULL, 1, 'ativado'); # # Table structure for table 'Usuario_config' # CREATE TABLE Usuario_config ( cod_usuario int(11) NOT NULL, notificar_email char(1) NOT NULL default '0', notificar_data int(11) default 0, PRIMARY KEY (cod_usuario) ); INSERT INTO Usuario_config values (-1,'0',0); # # Table structure for table 'Curso_ferramentas' # CREATE TABLE Curso_ferramentas ( cod_ferramenta int(11) NOT NULL default '0', status char(1) NOT NULL default '', acesso_visitante char(1) default NULL, _timestamp int(11) default NULL, PRIMARY KEY (cod_ferramenta) ); # # Dumping data for table 'Curso_ferramentas' # INSERT INTO Curso_ferramentas VALUES (1,'A','N',0); INSERT INTO Curso_ferramentas VALUES (3,'A','N',0); INSERT INTO Curso_ferramentas VALUES (4,'A','N',0); INSERT INTO Curso_ferramentas VALUES (5,'A','N',0); INSERT INTO Curso_ferramentas VALUES (6,'A','N',0); INSERT INTO Curso_ferramentas VALUES (7,'A','N',0); INSERT INTO Curso_ferramentas VALUES (8,'A','N',0); INSERT INTO Curso_ferramentas VALUES (9,'A','N',0); INSERT INTO Curso_ferramentas VALUES (10,'A','N',0); INSERT INTO Curso_ferramentas VALUES (11,'A','N',0); INSERT INTO Curso_ferramentas VALUES (12,'A','N',0); INSERT INTO Curso_ferramentas VALUES (13,'A','N',0); INSERT INTO Curso_ferramentas VALUES (14,'A','N',0); INSERT INTO Curso_ferramentas VALUES (15,'A','N',0); INSERT INTO Curso_ferramentas VALUES (16,'A','N',0); INSERT INTO Curso_ferramentas VALUES (17,'A','N',0); INSERT INTO Curso_ferramentas VALUES (18,'A','N',0); INSERT INTO Curso_ferramentas VALUES (19,'A','N',0); INSERT INTO Curso_ferramentas VALUES (22,'A','N',0); INSERT INTO Curso_ferramentas VALUES (23,'D','N',0); # # Table structure for table 'Ferramentas_nova' # CREATE TABLE Ferramentas_nova ( cod_ferramenta int(11) NOT NULL default '0', tipo_compartilhamento char(1) NOT NULL default '', data int(11) NOT NULL default '0', PRIMARY KEY (cod_ferramenta,tipo_compartilhamento) ); # # Dumping data for table 'Ferramentas_nova' # INSERT INTO Ferramentas_nova values (0,'F',0); INSERT INTO Ferramentas_nova values (0,'T',0); INSERT INTO Ferramentas_nova VALUES (1,'F',0); INSERT INTO Ferramentas_nova VALUES (1,'T',0); INSERT INTO Ferramentas_nova VALUES (3,'F',0); INSERT INTO Ferramentas_nova VALUES (3,'T',0); INSERT INTO Ferramentas_nova VALUES (4,'F',0); INSERT INTO Ferramentas_nova VALUES (4,'T',0); INSERT INTO Ferramentas_nova VALUES (5,'F',0); INSERT INTO Ferramentas_nova VALUES (5,'T',0); INSERT INTO Ferramentas_nova VALUES (6,'F',0); INSERT INTO Ferramentas_nova VALUES (6,'T',0); INSERT INTO Ferramentas_nova VALUES (7,'F',0); INSERT INTO Ferramentas_nova VALUES (7,'T',0); INSERT INTO Ferramentas_nova VALUES (8,'F',0); INSERT INTO Ferramentas_nova VALUES (8,'T',0); INSERT INTO Ferramentas_nova VALUES (9,'F',0); INSERT INTO Ferramentas_nova VALUES (9,'T',0); INSERT INTO Ferramentas_nova VALUES (10,'F',0); INSERT INTO Ferramentas_nova VALUES (10,'T',0); INSERT INTO Ferramentas_nova VALUES (11,'F',0); INSERT INTO Ferramentas_nova VALUES (11,'T',0); INSERT INTO Ferramentas_nova VALUES (12,'F',0); INSERT INTO Ferramentas_nova VALUES (12,'T',0); INSERT INTO Ferramentas_nova VALUES (13,'F',0); INSERT INTO Ferramentas_nova VALUES (13,'T',0); INSERT INTO Ferramentas_nova VALUES (14,'F',0); INSERT INTO Ferramentas_nova VALUES (14,'T',0); INSERT INTO Ferramentas_nova VALUES (15,'F',0); INSERT INTO Ferramentas_nova VALUES (15,'T',0); INSERT INTO Ferramentas_nova VALUES (16,'F',0); INSERT INTO Ferramentas_nova VALUES (16,'T',0); INSERT INTO Ferramentas_nova VALUES (17,'F',0); INSERT INTO Ferramentas_nova VALUES (17,'T',0); INSERT INTO Ferramentas_nova VALUES (18,'F',0); INSERT INTO Ferramentas_nova VALUES (18,'T',0); INSERT INTO Ferramentas_nova VALUES (19,'F',0); INSERT INTO Ferramentas_nova VALUES (19,'T',0); INSERT INTO Ferramentas_nova VALUES (22,'F',0); INSERT INTO Ferramentas_nova VALUES (22,'T',0); INSERT INTO Ferramentas_nova VALUES (23,'F',0); INSERT INTO Ferramentas_nova VALUES (23,'T',0); # # Table structure for table 'Curso_acessos' # CREATE TABLE Curso_acessos ( cod_usuario int(11) NOT NULL default '0', data int(11) NOT NULL default '0', cod_ferramenta int(11) default NULL ); CREATE TABLE Ferramentas_destaque ( cod_ferramenta INT NOT NULL, data INT NOT NULL ); ############################################### # ==== === = = === = = === === === # # = = = == = = = == == = = = = = # # = = = = = = ===== = = = = = ===== # # = = = = == = = = = = = = = = # # ==== === = = = = = = === === = = # ############################################### # {Dinâmica do Curso} # # # Table structure for table 'Dinamica' # CREATE TABLE Dinamica ( cod_dinamica int(11) NOT NULL default '0', texto text, data int(11) default NULL, status char(1) default NULL, cod_usuario int(11) NOT NULL default '0', PRIMARY KEY (cod_dinamica) ); ###################################### # === === ==== = = ==== === # # = = = = == = = = = = # # ===== = == === = = = = = ===== # # = = = = = = == = = = = # # = = === ==== = = ==== = = # ###################################### # {Agenda} # # # Table structure for table 'Agenda_itens' # CREATE TABLE Agenda_itens ( cod_item int(11) NOT NULL default '0', cod_usuario int(11) NOT NULL default '0', titulo varchar(150) NOT NULL default '', texto text, situacao char(1) NOT NULL default '', data int(11) NOT NULL default '0', data_ativo int(11) default NULL, data_inativo int(11) default NULL, status char(1) NOT NULL default '', inicio_edicao int(11) default NULL, PRIMARY KEY (cod_item) ); # # Table structure for table 'Agenda_itens_historicos' # CREATE TABLE Agenda_itens_historicos ( cod_item int(11) NOT NULL default '0', cod_usuario int(11) NOT NULL default '0', data int(11) NOT NULL default '0', acao char(1) NOT NULL default '' ); ############################################################# # === ===== === = = === ==== === ==== ===== === # # = = = = = = = = = = = = = = = # # ===== = = = = = = = ===== = = ==== === # # = = = = = = = = = = = = = = = # # = = = === = === ==== = = ==== ===== === # ############################################################# # {Atividades} # # # Table structure for table 'Atividade_topicos' # CREATE TABLE Atividade_topicos ( cod_topico int(11) NOT NULL auto_increment, cod_topico_pai int(11) default NULL, cod_usuario int(11) NOT NULL default '0', topico char(150) NOT NULL default '', tipo_compartilhamento char(1) NOT NULL default '', data int(11) NOT NULL default '0', posicao_topico int(11) default NULL, PRIMARY KEY (cod_topico) ); # # Dumping data for table 'Atividade_topicos' # INSERT INTO Atividade_topicos VALUES (1,NULL,1,'Raiz','T',0,0); INSERT INTO Atividade_topicos VALUES (2,NULL,1,'Lixeira','F',0,0); # # Table structure for table 'Atividade_itens' # CREATE TABLE Atividade_itens ( cod_item int(11) NOT NULL default '0', cod_topico int(11) NOT NULL default '0', cod_usuario int(11) NOT NULL default '0', titulo varchar(150) NOT NULL default '', texto text, tipo_compartilhamento char(1) NOT NULL default '', data int(11) NOT NULL default '0', data_ativo int(11) default NULL, data_inativo int(11) default NULL, posicao_item int(11) default NULL, status char(1) NOT NULL default '', inicio_edicao int(11) default NULL, PRIMARY KEY (cod_item) ); # # Table structure for table 'Atividade_itens_enderecos' # CREATE TABLE Atividade_itens_enderecos ( cod_endereco int(11) NOT NULL auto_increment, cod_item int(11) NOT NULL default '0', nome text, endereco text NOT NULL, status char(1) NOT NULL default '', PRIMARY KEY (cod_endereco) ); # # Table structure for table 'Atividade_itens_historicos' # CREATE TABLE Atividade_itens_historicos ( cod_item int(11) NOT NULL default '0', cod_usuario int(11) NOT NULL default '0', data int(11) NOT NULL default '0', acao char(1) NOT NULL default '' ); ######################################################## # = = === ===== === ==== === === === # # == == = = = = = = = = = = = = # # = = = ===== = ===== ==== = = = = = # # = = = = = == = = = = = = = = # # = = = = = == = = = === === === # ######################################################## # {Material de Apoio} # # # Table structure for table 'Apoio_topicos' # CREATE TABLE Apoio_topicos ( cod_topico int(11) NOT NULL auto_increment, cod_topico_pai int(11) default NULL, cod_usuario int(11) NOT NULL default '0', topico char(150) NOT NULL default '', tipo_compartilhamento char(1) NOT NULL default '', data int(11) NOT NULL default '0', posicao_topico int(11) default NULL, PRIMARY KEY (cod_topico) ); # # Dumping data for table 'Apoio_topicos' # INSERT INTO Apoio_topicos VALUES (1,NULL,1,'Raiz','T',0,0); INSERT INTO Apoio_topicos VALUES (2,NULL,1,'Lixeira','F',0,0); # # Table structure for table 'Apoio_itens' # CREATE TABLE Apoio_itens ( cod_item int(11) NOT NULL default '0', cod_topico int(11) NOT NULL default '0', cod_usuario int(11) NOT NULL default '0', titulo varchar(150) NOT NULL default '', texto text, tipo_compartilhamento char(1) NOT NULL default '', data int(11) NOT NULL default '0', data_ativo int(11) default NULL, data_inativo int(11) default NULL, posicao_item int(11) default NULL, status char(1) NOT NULL default '', inicio_edicao int(11) default NULL, PRIMARY KEY (cod_item) ); # # Table structure for table 'Apoio_itens_enderecos' # CREATE TABLE Apoio_itens_enderecos ( cod_endereco int(11) NOT NULL auto_increment, cod_item int(11) NOT NULL default '0', nome text, endereco text NOT NULL, status char(1) NOT NULL default '', PRIMARY KEY (cod_endereco) ); # # Table structure for table 'Apoio_itens_historicos' # CREATE TABLE Apoio_itens_historicos ( cod_item int(11) NOT NULL default '0', cod_usuario int(11) NOT NULL default '0', data int(11) NOT NULL default '0', acao char(1) NOT NULL default '' ); ################################################# # = ===== === ===== = = ==== === ==== # # = = = = = = = = = = = # # = ==== = = = = ==== ===== === # # = = = = = = = = = = = # # ===== ===== === = === = = = = ==== # ################################################# # {Leituras} # # # Table structure for table 'Leitura_topicos' # CREATE TABLE Leitura_topicos ( cod_topico int(11) NOT NULL auto_increment, cod_topico_pai int(11) default NULL, cod_usuario int(11) NOT NULL default '0', topico char(150) NOT NULL default '', tipo_compartilhamento char(1) NOT NULL default '', data int(11) NOT NULL default '0', posicao_topico int(11) default NULL, PRIMARY KEY (cod_topico) ); # # Dumping data for table 'Leitura_topicos' # INSERT INTO Leitura_topicos VALUES (1,NULL,1,'Raiz','T',0,0); INSERT INTO Leitura_topicos VALUES (2,NULL,1,'Lixeira','F',0,0); # # Table structure for table 'Leitura_itens' # CREATE TABLE Leitura_itens ( cod_item int(11) NOT NULL default '0', cod_topico int(11) NOT NULL default '0', cod_usuario int(11) NOT NULL default '0', titulo varchar(150) NOT NULL default '', texto text, tipo_compartilhamento char(1) NOT NULL default '', data int(11) NOT NULL default '0', data_ativo int(11) default NULL, data_inativo int(11) default NULL, posicao_item int(11) default NULL, status char(1) NOT NULL default '', inicio_edicao int(11) default NULL, PRIMARY KEY (cod_item) ); # # Table structure for table 'Leitura_itens_enderecos' # CREATE TABLE Leitura_itens_enderecos ( cod_endereco int(11) NOT NULL auto_increment, cod_item int(11) NOT NULL default '0', nome text, endereco text NOT NULL, status char(1) NOT NULL default '', PRIMARY KEY (cod_endereco) ); # # Table structure for table 'Leitura_itens_historicos' # CREATE TABLE Leitura_itens_historicos ( cod_item int(11) NOT NULL default '0', cod_usuario int(11) NOT NULL default '0', data int(11) NOT NULL default '0', acao char(1) NOT NULL default '' ); ######################################################### # ==== ===== ==== === = = = = ===== === ==== # # = = = = = = = = == = = = = = # # ==== ==== ==== = === = = = = = = ===== === # # = = = = = = = = = == = = = = # # = ===== = = === === = = = = = ==== # ######################################################### # {Perguntas Freqüentes} # # # Table structure for table 'Pergunta_assuntos' # CREATE TABLE Pergunta_assuntos ( cod_assunto int(11) NOT NULL auto_increment, cod_assunto_pai int(11) default NULL, nome varchar(150) NOT NULL default '', descricao text, data int(11) NOT NULL default '0', PRIMARY KEY (cod_assunto) ); INSERT INTO Pergunta_assuntos VALUES (1,NULL,'Raiz','',0); INSERT INTO Pergunta_assuntos VALUES (2,NULL,'Lixeira','',0); # # Table structure for table 'Pergunta_itens' # CREATE TABLE Pergunta_itens ( cod_pergunta int(11) NOT NULL auto_increment, cod_assunto int(11) NOT NULL default '0', pergunta text NOT NULL, resposta text NOT NULL, data int(11) NOT NULL default '0', PRIMARY KEY (cod_pergunta) ); ############################################################################# # ==== === ==== === ==== ==== === ===== === ==== === === # # = = = = = = = = = = = = = = = = = = = = = # # ==== ===== ==== = = ==== ==== = = = = ==== = ===== # # = = = = = == = = = = = = = = = = = = = = = # # = = = = = == === ==== = = === = === = = === = = # ############################################################################# # {Parada Obrigatória} # # # Table structure for table 'Obrigatoria_topicos' # CREATE TABLE Obrigatoria_topicos ( cod_topico int(11) NOT NULL auto_increment, cod_topico_pai int(11) default NULL, cod_usuario int(11) NOT NULL default '0', topico char(150) NOT NULL default '', tipo_compartilhamento char(1) NOT NULL default '', data int(11) NOT NULL default '0', posicao_topico int(11) default NULL, PRIMARY KEY (cod_topico) ); # # Dumping data for table 'Obrigatoria_topicos' # INSERT INTO Obrigatoria_topicos VALUES (1,NULL,1,'Raiz','T',0,0); INSERT INTO Obrigatoria_topicos VALUES (2,NULL,1,'Lixeira','F',0,0); # # Table structure for table 'Obrigatoria_itens' # CREATE TABLE Obrigatoria_itens ( cod_item int(11) NOT NULL default '0', cod_topico int(11) NOT NULL default '0', cod_usuario int(11) NOT NULL default '0', titulo varchar(150) NOT NULL default '', texto text, tipo_compartilhamento char(1) NOT NULL default '', data int(11) NOT NULL default '0', data_ativo int(11) default NULL, data_inativo int(11) default NULL, posicao_item int(11) default NULL, status char(1) NOT NULL default '', inicio_edicao int(11) default NULL, PRIMARY KEY (cod_item) ); # # Table structure for table 'Obrigatoria_itens_enderecos' # CREATE TABLE Obrigatoria_itens_enderecos ( cod_endereco int(11) NOT NULL auto_increment, cod_item int(11) NOT NULL default '0', nome text, endereco text NOT NULL, status char(1) NOT NULL default '', PRIMARY KEY (cod_endereco) ); # # Table structure for table 'Obrigatoria_itens_historicos' # CREATE TABLE Obrigatoria_itens_historicos ( cod_item int(11) NOT NULL default '0', cod_usuario int(11) NOT NULL default '0', data int(11) NOT NULL default '0', acao char(1) NOT NULL default '' ); ################################# # = = = = ==== === = # # == == = = = = = = = # # = = = = = ==== ===== = # # = = = = = = = = = # # = = === = = = = ===== # ################################# # {Mural} # # # Table structure for table 'Mural' # CREATE TABLE Mural ( cod_mural int(11) NOT NULL auto_increment, cod_usuario int(11) NOT NULL default '0', data int(11) NOT NULL default '0', titulo varchar(80) default NULL, texto text, status char(1) default NULL, PRIMARY KEY (cod_mural) ); ################################# # ===== === ==== = = = = # # = = = = = = = == == # # ==== = = ==== = = = = = # # = = = = = = = = = # # = === = = === = = # ################################# # {Fórum de Discussão} # # # Table structure for table 'Forum' # CREATE TABLE Forum ( cod_forum int(11) NOT NULL auto_increment, nome char(50) NOT NULL default '', status char(1) NOT NULL default '', data int(11) NOT NULL default '0', PRIMARY KEY (cod_forum) ); # # Table structure for table 'Forum_mensagens' # CREATE TABLE Forum_mensagens ( cod_msg int(11) NOT NULL auto_increment, cod_msg_pai int(11) default '0', cod_forum int(11) NOT NULL default '0', cod_usuario int(11) NOT NULL default '0', titulo varchar(100) NOT NULL default '', mensagem text NOT NULL, status char(1) NOT NULL default '', data int(11) NOT NULL default '0', PRIMARY KEY (cod_msg) ); ################################################### # ==== === ===== ===== ==== === ==== === # # = = = = = = = = = = = = = = # # ==== ===== = ==== ==== ===== ==== = = # # = = = = = = = = = = = = # # ==== = = = ===== = = = = === # ################################################### # {Bate Papo} # # # Table structure for table 'Batepapo_apelido' # CREATE TABLE Batepapo_apelido ( cod_sessao int(11) NOT NULL default '0', cod_usuario int(11) NOT NULL default '0', apelido char(15) NOT NULL default '', PRIMARY KEY (cod_sessao,cod_usuario) ); # # Table structure for table 'Batepapo_assuntos' # CREATE TABLE Batepapo_assuntos ( cod_assunto int(11) NOT NULL auto_increment, assunto char(255) NOT NULL default '', data_inicio int(11) NOT NULL default '0', data_fim int(11) default NULL, PRIMARY KEY (cod_assunto) ); # # Table structure for table 'Batepapo_conversa' # CREATE TABLE Batepapo_conversa ( cod_sessao int(11) NOT NULL default '0', cod_usuario int(11) NOT NULL default '0', cod_usuario_r int(11) default NULL, cod_fala varchar(20) NOT NULL default '', mensagem text, data int(11) NOT NULL default '0' ); # # Table structure for table 'Batepapo_fala' # CREATE TABLE Batepapo_fala ( cod_fala int(11) NOT NULL default '0', cod_texto_fala int(11) NOT NULL default '0', PRIMARY KEY (cod_fala) ); # # Dumping data for table 'Batepapo_fala' # INSERT INTO Batepapo_fala VALUES (-1,8); INSERT INTO Batepapo_fala VALUES (1,7); INSERT INTO Batepapo_fala VALUES (2,9); INSERT INTO Batepapo_fala VALUES (3,10); INSERT INTO Batepapo_fala VALUES (4,11); INSERT INTO Batepapo_fala VALUES (5,12); INSERT INTO Batepapo_fala VALUES (6,13); INSERT INTO Batepapo_fala VALUES (7,14); INSERT INTO Batepapo_fala VALUES (8,15); INSERT INTO Batepapo_fala VALUES (9,16); # # Table structure for table 'Batepapo_online' # CREATE TABLE Batepapo_online ( cod_usuario int(11) NOT NULL default '0', data int(11) NOT NULL default '0', PRIMARY KEY (cod_usuario) ); # # Table structure for table 'Batepapo_sessoes' # CREATE TABLE Batepapo_sessoes ( cod_sessao int(11) NOT NULL auto_increment, data_inicio int(11) NOT NULL default '0', data_fim int(11) NOT NULL default '0', status char(1) NOT NULL default '', PRIMARY KEY (cod_sessao) ); ########################################### # === === ==== ==== ===== === === # # = = = = = = = = = = = = # # = = = ==== ==== ==== = = = # # = = = = = = = = = = = = # # === === = = = = ===== === === # ########################################### # {Correio} # # # Table structure for table 'Correio_mensagens' # CREATE TABLE Correio_mensagens ( cod_msg int(11) NOT NULL default '0', cod_usuario int(11) NOT NULL default '0', assunto varchar(100) NOT NULL default '', data int(11) NOT NULL default '0', mensagem text NOT NULL, estado char(1) NOT NULL default '', cod_msg_anterior int(11) default NULL, PRIMARY KEY (cod_msg) ); # # Table structure for table 'Correio_lista_destinos' # CREATE TABLE Correio_lista_destinos ( cod_msg int(11) NOT NULL default '0', cod_usuario_emissor int(11) NOT NULL default '0', cod_destino int(11) NOT NULL default '0', categ_destino char(1) NOT NULL default '', PRIMARY KEY (cod_msg,cod_destino,categ_destino) ); # # Table structure for table 'Correio_destinos' # CREATE TABLE Correio_destinos ( cod_msg int(11) NOT NULL default '0', cod_usuario int(11) NOT NULL default '0', estado char(1) NOT NULL default '', PRIMARY KEY (cod_msg,cod_usuario) ); # # Table structure for table 'Correio_intermap' # CREATE TABLE Correio_intermap ( cod_msg int(11) NOT NULL default '0', cod_usuario_emissor int(11) NOT NULL default '0', cod_usuario_receptor int(11) NOT NULL default '0', data INT, PRIMARY KEY (cod_msg,cod_usuario_emissor,cod_usuario_receptor) ); ####################################### # === ==== = = ==== === ==== # # = = = = = = = = = = # # = === ==== = = ==== = = === # # = = = = = = = = = = # # === = = === = === ==== # ####################################### # {Grupos} # # # Table structure for table 'Grupos' # CREATE TABLE Grupos ( cod_grupo int(11) NOT NULL default '0', nome char(50) NOT NULL default '', status char(1) default NULL, PRIMARY KEY (cod_grupo) ); # # Table structure for table 'Grupos_usuario' # CREATE TABLE Grupos_usuario ( cod_grupo int(11) NOT NULL default '0', cod_usuario int(11) NOT NULL default '0', PRIMARY KEY (cod_grupo,cod_usuario) ); ##################################### # ==== ===== ==== ===== === = # # = = = = = = = = # # ==== ==== ==== ==== = = # # = = = = = = = # # = ===== = = = === ===== # ##################################### # {Perfil} # # # Table structure for table 'Perfil_orientacao' # CREATE TABLE Perfil_orientacao ( cod_orientacao int(11) NOT NULL default '0', orientacao text, PRIMARY KEY (cod_orientacao) ); # # Dumping data for table 'Perfil_orientacao' # INSERT INTO Perfil_orientacao VALUES (1,'Use o espaço abaixo para falar um pouco sobre você, seu trabalho, sua família, seus amigos, lugares interessantes, o que você gosta de ler... Enfim, fale sobre você!'); # # Table structure for table 'Perfil_usuarios' # CREATE TABLE Perfil_usuarios ( cod_usuario int(11) NOT NULL default '0', perfil text, data int(11) default NULL, PRIMARY KEY (cod_usuario) ); ################################### # ==== === === ==== === === # # = = = = = = = = = = # # = = = ===== ==== = = = # # = = = = = = = = = = # # ==== === = = = = === === # ################################### # {Diário de Bordo} # # # Table structure for table 'Diario_comentarios' # CREATE TABLE Diario_comentarios ( cod_comentario int(11) NOT NULL auto_increment, cod_item int(11) NOT NULL default '0', comentario text NOT NULL, cod_comentarist int(11) NOT NULL default '0', data int(11) NOT NULL default '0', status char(1) NOT NULL default '', PRIMARY KEY (cod_comentario) ); # # Table structure for table 'Diario_itens' # CREATE TABLE Diario_itens ( cod_item int(11) NOT NULL auto_increment, cod_usuario int(11) NOT NULL default '0', titulo varchar(100) NOT NULL default '', texto text NOT NULL, data int(11) NOT NULL default '0', status char(1) NOT NULL default '', tipo_compartilhamento char(1), PRIMARY KEY (cod_item) ); ####################################################### # ==== === ==== ===== ===== === = === === # # = = = = = = = = = = = = = = # # ==== = = ==== = ==== = = = = = = # # = = = = = = = = = = = = = # # = === = = = = === ===== === === # ####################################################### # {Portfólio} # # # Table structure for table 'Portfolio_topicos' # CREATE TABLE Portfolio_topicos ( cod_topico int(11) NOT NULL auto_increment, cod_topico_pai int(11) default NULL, cod_usuario int(11) NOT NULL default '0', cod_grupo int(11) default NULL, topico char(150) NOT NULL default '', tipo_compartilhamento char(1) NOT NULL default '', data int(11) NOT NULL default '0', posicao_topico int(11) default NULL, PRIMARY KEY (cod_topico) ); # # Dumping data for table 'Portfolio_topicos' # INSERT INTO Portfolio_topicos VALUES (1,NULL,-1,NULL,'Raiz','T',0,0); INSERT INTO Portfolio_topicos VALUES (2,NULL,-1,NULL,'Lixeira','F',0,0); INSERT INTO Portfolio_topicos VALUES (3,1,-1,NULL,'Portfólios Individuais','T',0,0); INSERT INTO Portfolio_topicos VALUES (4,1,-1,NULL,'Portfólios de Grupos','T',0,0); # # Table structure for table 'Portfolio_itens' # CREATE TABLE Portfolio_itens ( cod_item int(11) NOT NULL default '0', cod_topico int(11) NOT NULL default '0', cod_usuario int(11) NOT NULL default '0', cod_grupo int(11) default NULL, titulo varchar(150) NOT NULL default '', texto text, tipo_compartilhamento char(1) NOT NULL default '', data int(11) NOT NULL default '0', posicao_item int(11) default NULL, status char(1) NOT NULL default '', inicio_edicao int(11) default NULL, PRIMARY KEY (cod_item) ); # # Table structure for table 'Portfolio_itens_comentarios' # CREATE TABLE Portfolio_itens_comentarios ( cod_comentario int(11) NOT NULL auto_increment, cod_item int(11) NOT NULL default '0', comentario text NOT NULL, cod_comentarista int(11) NOT NULL default '0', data int(11) NOT NULL default '0', status char(1) NOT NULL default '', PRIMARY KEY (cod_comentario) ); # # Table structure for table 'Portfolio_itens_enderecos' # CREATE TABLE Portfolio_itens_enderecos ( cod_endereco int(11) NOT NULL auto_increment, cod_item int(11) NOT NULL default '0', nome text, endereco text NOT NULL, status char(1) NOT NULL default '', PRIMARY KEY (cod_endereco) ); # # Table structure for table 'Portfolio_itens_historicos' # CREATE TABLE Portfolio_itens_historicos ( cod_item int(11) NOT NULL default '0', cod_usuario int(11) NOT NULL default '0', data int(11) NOT NULL default '0', acao char(1) NOT NULL default '' ); # # Table structure for table 'Portfoilo_itens_avalicao' # CREATE TABLE Portfolio_itens_avaliacao ( cod_item int(11) default 0 NOT NULL, cod_avaliacao int(11) Default 0 NOT NULL, cod_nota int(11) default 0 NOT NULL, status char(1) default '' NOT NULL, PRIMARY KEY(cod_item, cod_avaliacao, cod_nota) ); # # Tabelas com a base de dados da Ferramenta Avaliação # # # Estrutura da tabela 'Avaliacao' # CREATE TABLE Avaliacao( cod_avaliacao int(11) Default 0 NOT NULL, cod_atividade int(11) Default 0 NOT NULL, cod_usuario int(11) Default 0 NOT NULL, ferramenta char(1) Default '' NOT NULL, tipo char(1) NOT NULL, valor float Default 0 NOT NULL, status char(1) Default '' NOT NULL, data int(11) Default 0 NOT NULL, data_inicio int(11) Default 0 NOT NULL, data_termino int(11) Default 0 NOT NULL, inicio_edicao int(11), criterios text, objetivos text, PRIMARY KEY(cod_avaliacao) ); # # Estrutura da tabela 'Avaliacao_historicos' # CREATE TABLE Avaliacao_historicos( cod_avaliacao int(11) Default 0 NOT NULL, cod_usuario int(11) Default 0 NOT NULL, data int(11) Default 0 NOT NULL, acao char(1) NOT NULL ); # # Estrutura da tabela 'Avaliacao_notas' # CREATE TABLE Avaliacao_notas( cod_nota int(11) Default 0 NOT NULL AUTO_INCREMENT, cod_aluno int(11) Default 0 NOT NULL, cod_grupo int(11) Default 0, cod_avaliacao int(11) Default 0 NOT NULL, cod_formador int(11) Default 0 NOT NULL, comentario text, status char(1) NOT NULL, data int(11) Default 0 NOT NULL, tipo_compartilhamento char(1) NOT NULL, nota float Default 0 NOT NULL, data_alteracao int(11) Default 0 NOT NULL, PRIMARY KEY(cod_nota, cod_aluno, cod_avaliacao) ); # #Tabela com a base de dados da ferramenta Exercícios # CREATE TABLE Exercicios_questao ( cod_quest numeric(5) NOT NULL, cod_usuario int(11), cod_topico numeric(3), enunciado text, comentario text, nivel char, tp_questao numeric(1), tipo_compartilhamento char(1), statica char, status char, alternativa_edicao text, data int(11), inicio_edicao int(11), PRIMARY KEY (cod_quest) ); CREATE TABLE Exercicios_questao_sequencia ( cod int(5) AUTO_INCREMENT, cod_usuario int(11), data int(11), PRIMARY KEY (cod) ); CREATE TABLE Exercicios_topico ( cod_topico numeric(3) NOT NULL, topico varchar(20), PRIMARY KEY (cod_topico) ); CREATE TABLE Exercicios_alternativa_objetiva ( cod_alternativa numeric(11) NOT NULL, cod_quest numeric(5) NOT NULL, alternativa text, cod_resposta numeric(11), status char, posicao_item int(11), PRIMARY KEY (cod_alternativa) ); CREATE TABLE Exercicios_resp_dissertativa ( cod_alternativa numeric(11) NOT NULL, cod_quest numeric(5) NOT NULL, alternativa text, resposta text, status char, posicao_item int(11), PRIMARY KEY (cod_alternativa) ); CREATE TABLE Exercicios_frase_lacuna ( cod_alternativa numeric(11) NOT NULL, cod_quest numeric(5) NOT NULL, cod_lacuna numeric(2) NOT NULL, texto text, lacuna varchar(100), status char, posicao_item int(11), PRIMARY KEY (cod_alternativa,cod_lacuna) ); CREATE TABLE Exercicios_alternativa_sequencia ( cod int(11) AUTO_INCREMENT, cod_usuario int(11), data int(11), PRIMARY KEY (cod) ); CREATE TABLE Exercicios_quest_enderecos ( cod_endereco int(11) NOT NULL auto_increment, cod_quest numeric(5) NOT NULL, nome text, endereco text NOT NULL, status char(1)NOT NULL, PRIMARY KEY (cod_endereco) ); CREATE TABLE Exercicios_alter_enderecos ( cod_endereco int(11) NOT NULL auto_increment, cod_alter numeric(11) NOT NULL, cod_quest numeric(5) NOT NULL, nome text, endereco text NOT NULL, status char(1)NOT NULL, PRIMARY KEY (cod_endereco) ); CREATE TABLE Exercicios_feed_enderecos ( cod_endereco int(11) NOT NULL auto_increment, cod_quest numeric(5) NOT NULL, nome text, endereco text NOT NULL, status char(1)NOT NULL, PRIMARY KEY (cod_endereco) ); CREATE TABLE Exercicios_quest_historicos ( cod_quest numeric(5) NOT NULL, cod_usuario int(11) NOT NULL, data int(11) NOT NULL, acao char(1), PRIMARY KEY (cod_quest,cod_usuario,data) ); CREATE TABLE Exercicios_modelo ( cod_modelo numeric(5) NOT NULL, cod_usuario int(11), titulo text, texto text, aplicado char(1), tipo_compartilhamento char(1), status char(1), questao_edicao text, data int(11), inicio_edicao int(11), posicao_item int(11), PRIMARY KEY (cod_modelo) ); CREATE TABLE Exercicios_modelo_sequencia ( cod int(5) AUTO_INCREMENT, cod_usuario int(11), data int(11), PRIMARY KEY (cod) ); CREATE TABLE Exercicios_modelo_enderecos ( cod_endereco int(11) NOT NULL auto_increment, cod_modelo numeric(5) NOT NULL, nome text, endereco text NOT NULL, status char(1)NOT NULL, PRIMARY KEY (cod_endereco) ); CREATE TABLE Exercicios_modelo_historicos ( cod_modelo numeric(5) NOT NULL, cod_usuario int(11) NOT NULL, data int(11) NOT NULL, acao char(1), PRIMARY KEY (cod_modelo,cod_usuario,data) ); CREATE TABLE Exercicios_questao_modelo ( cod_modelo numeric(5) NOT NULL, cod_quest numeric(5) NOT NULL, valor numeric(4,3), status char(1) NOT NULL, posicao_item int(11), PRIMARY KEY (cod_modelo,cod_quest) ); CREATE TABLE Exercicios_aplicado ( cod_modelo numeric(5) NOT NULL, dt_disponibilizacao int, dt_limite_submissao int, tp_aplicacao char(1), tp_correcao char(1), tp_gabarito char(1), objetiva char(1), avaliacao int, PRIMARY KEY (cod_modelo) ); CREATE TABLE Exercicios_resolucao ( cod_resolucao numeric(6) NOT NULL, cod_modelo numeric(5), cod_usuario numeric(11), cod_grupo numeric(11), dt_submissao int, nota numeric(4,3), submetida char(1), corrigida char(1), compartilhada char(1), status char(1), PRIMARY KEY (cod_resolucao) ); CREATE TABLE Exercicios_resolucao_historicos ( cod_resolucao numeric(6) NOT NULL, cod_usuario int(11) NOT NULL, data int(11) NOT NULL, acao char(1), PRIMARY KEY (cod_resolucao,cod_usuario,data) ); CREATE TABLE Exercicios_quest_res_objetiva ( cod_resolucao numeric(6) NOT NULL, cod_quest numeric(5) NOT NULL, cod_alternativa numeric(11) NOT NULL, resposta numeric(11), nota numeric(4,3), PRIMARY KEY (cod_resolucao,cod_quest,cod_alternativa) ); CREATE TABLE Exercicios_quest_res_dissertativa ( cod_resolucao numeric(6) NOT NULL, cod_quest numeric(5) NOT NULL, cod_alternativa numeric(11) NOT NULL, resposta text, nota numeric(4,3), PRIMARY KEY (cod_resolucao,cod_quest, cod_alternativa) ); CREATE TABLE Exercicios_quest_res_lacuna ( cod_resolucao numeric(6) NOT NULL, cod_quest numeric(5) NOT NULL, cod_frase numeric(11) NOT NULL, cod_alternativa numeric(2) NOT NULL, resposta numeric(100), nota numeric(4,3), PRIMARY KEY (cod_resolucao,cod_quest,cod_frase,cod_alternativa) ); CREATE TABLE Exercicios_resolucao_comentarios ( cod_comentario int(11) AUTO_INCREMENT, cod_item int(11), comentario text, cod_comentarista int(11), data int(11), status char(1), PRIMARY KEY (cod_comentario) );