-
Notifications
You must be signed in to change notification settings - Fork 11
/
aularedesocial.sql
157 lines (127 loc) · 4.35 KB
/
aularedesocial.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
-- phpMyAdmin SQL Dump
-- version 3.5.2.2
-- http://www.phpmyadmin.net
--
-- Servidor: 127.0.0.1
-- Tempo de Geração:
-- Versão do Servidor: 5.5.27-log
-- Versão do PHP: 5.4.6
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
--
-- Banco de Dados: `aularedesocial`
--
-- --------------------------------------------------------
--
-- Estrutura da tabela `albuns`
--
CREATE TABLE IF NOT EXISTS `albuns` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`usuario` int(11) NOT NULL,
`titulo` varchar(128) NOT NULL,
`descricao` varchar(255) DEFAULT NULL,
`status` int(1) DEFAULT '0',
`data` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`permissao` int(1) DEFAULT NULL,
`capa` varchar(255) DEFAULT 'default.jpg',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=20 ;
-- --------------------------------------------------------
--
-- Estrutura da tabela `amizade`
--
CREATE TABLE IF NOT EXISTS `amizade` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`de` int(11) NOT NULL,
`para` int(11) NOT NULL,
`status` int(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=32 ;
-- --------------------------------------------------------
--
-- Estrutura da tabela `depimentos`
--
CREATE TABLE IF NOT EXISTS `depimentos` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`de` int(11) NOT NULL,
`para` int(11) NOT NULL,
`depoimento` text NOT NULL,
`data` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
`status` int(1) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Estrutura da tabela `fotos`
--
CREATE TABLE IF NOT EXISTS `fotos` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`album` int(11) NOT NULL,
`foto` varchar(128) NOT NULL,
`views` int(11) NOT NULL DEFAULT '1',
`data` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
`legenda` varchar(128) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=111 ;
-- --------------------------------------------------------
--
-- Estrutura da tabela `notificacoes`
--
CREATE TABLE IF NOT EXISTS `notificacoes` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`tipo` int(1) NOT NULL,
`uid` int(11) NOT NULL,
`result` varchar(255) NOT NULL,
`data` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=31 ;
--
-- Estrutura da tabela `recados`
--
CREATE TABLE IF NOT EXISTS `recados` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`de` int(11) NOT NULL,
`para` varchar(10) NOT NULL,
`recado` text NOT NULL,
`status` int(1) NOT NULL DEFAULT '1',
`data` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=47 ;
-- --------------------------------------------------------
--
-- Estrutura da tabela `usuarios`
--
CREATE TABLE IF NOT EXISTS `usuarios` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`email` varchar(64) NOT NULL,
`senha` varchar(128) NOT NULL,
`nome` varchar(32) NOT NULL,
`sobrenome` varchar(64) NOT NULL,
`nascimento` date NOT NULL,
`sexo` varchar(10) NOT NULL,
`imagem` varchar(128) DEFAULT NULL,
`status` int(1) NOT NULL DEFAULT '0',
`cadastro` date NOT NULL,
`nivel` int(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=12 ;
--
-- Estrutura da tabela `videos`
--
CREATE TABLE IF NOT EXISTS `videos` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`usuario` int(11) NOT NULL,
`embed` varchar(128) NOT NULL,
`titulo` varchar(255) NOT NULL,
`descricao` text,
`status` int(1) NOT NULL,
`data` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;