-
Notifications
You must be signed in to change notification settings - Fork 0
/
iansar30march.sql
executable file
·331 lines (284 loc) · 17.6 KB
/
iansar30march.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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
-- phpMyAdmin SQL Dump
-- version 3.4.5
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Mar 30, 2013 at 11:54 AM
-- Server version: 5.5.16
-- PHP Version: 5.3.17
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 */;
--
-- Database: `iansar`
--
-- --------------------------------------------------------
--
-- Table structure for table `insr_callees`
--
CREATE TABLE IF NOT EXISTS `insr_callees` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`caller_id` bigint(20) NOT NULL COMMENT 'created by',
`owned_by` bigint(20) DEFAULT NULL,
`first_name` varchar(255) NOT NULL,
`last_name` varchar(255) NOT NULL,
`family_name` varchar(255) DEFAULT NULL,
`nick_name` varchar(255) DEFAULT NULL,
`gender` varchar(255) NOT NULL,
`age` int(11) NOT NULL,
`highest_qualification` varchar(255) NOT NULL,
`profession` varchar(255) NOT NULL,
`house_no` varchar(255) NOT NULL,
`street` varchar(255) NOT NULL,
`area` varchar(255) NOT NULL,
`city` varchar(255) NOT NULL,
`state` varchar(255) NOT NULL,
`country` varchar(255) NOT NULL,
`zip` int(11) NOT NULL,
`language_read` varchar(255) NOT NULL,
`language_write` varchar(255) NOT NULL,
`language_speak` varchar(255) DEFAULT NULL,
`religion` varchar(255) NOT NULL,
`email_id` varchar(255) DEFAULT NULL,
`phone_number` varchar(255) DEFAULT NULL,
`social_network_id` varchar(255) DEFAULT NULL,
`messenger_id` varchar(255) DEFAULT NULL,
`status` varchar(255) DEFAULT NULL,
`renewed_date` datetime DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
KEY `caller_id` (`caller_id`),
KEY `owned_by` (`owned_by`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;
--
-- Dumping data for table `insr_callees`
--
INSERT INTO `insr_callees` (`id`, `caller_id`, `owned_by`, `first_name`, `last_name`, `family_name`, `nick_name`, `gender`, `age`, `highest_qualification`, `profession`, `house_no`, `street`, `area`, `city`, `state`, `country`, `zip`, `language_read`, `language_write`, `language_speak`, `religion`, `email_id`, `phone_number`, `social_network_id`, `messenger_id`, `status`, `renewed_date`, `created_at`, `updated_at`) VALUES
(1, 1, 1, 'Some', 'Name', 'Family', 'Nick', 'MALE', 37, 'M.E', 'SE', 'No.45', 'North Car street', 'Mandaveli', 'Chennai', 'Tamilnadu', 'India', 62000, 'tamil, english', 'tamil, english', 'tamil, english', 'buddh', 'some@some.com', '343393948433', '{"facebook":"fb"}', '{"hotmailmessenger":"msn"}', 'CONVINCED', '2013-03-23 19:37:49', '2013-01-13 17:02:35', '2013-01-19 10:59:12'),
(2, 1, NULL, 'new amad', 'ljads', 'l;ad', 'adskfjladsf', 'FEMALE', 24, 'M.E', 'SE', 'No.45', '2nd Cross', 'Mandaveli', 'Bangalore', 'Karnataka', 'India', 560092, 'some lang', 'some lang', 'some lang', 'somethig', 'jebin@jebin.com', '919535872103', '{"facebook":"jebinbv"}', '{"gtalk":"gtalkjebin"}', 'IGNORED', NULL, '2013-01-19 19:43:01', '2013-02-28 03:46:55'),
(3, 2, 1, 'new amad1', 'de Banville', 'Family', 'adskfjladsf', 'FEMALE', 24, 'M.Er', 'SEr', 'No.45', '2nd Cross', 'Mandaveli', 'Bangalore', 'Tamilnadu', 'India', 560092, 'some lang', 'tamil, english', 'some lang', 'somethig', 'name@name.com', '919535872103', '{"facebook":"jebinbv"}', '{"gtalk":"gtalkjebin"}', 'CONVINCED', NULL, '2013-01-19 12:36:41', '2013-01-19 17:28:44');
-- --------------------------------------------------------
--
-- Table structure for table `insr_callers`
--
CREATE TABLE IF NOT EXISTS `insr_callers` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`role` varchar(30) DEFAULT NULL,
`email` varchar(255) NOT NULL,
`password` varchar(255) NOT NULL,
`profile_completion_status` tinyint(2) NOT NULL DEFAULT '0' COMMENT '0=>No; 1=> Yes',
`active_status` tinyint(2) NOT NULL DEFAULT '1' COMMENT '0=>Inactive; 1=> Active',
`created_at` datetime NOT NULL,
`updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
UNIQUE KEY `email` (`email`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='Da''ee registration & login lookup table' AUTO_INCREMENT=3 ;
--
-- Dumping data for table `insr_callers`
--
INSERT INTO `insr_callers` (`id`, `role`, `email`, `password`, `profile_completion_status`, `active_status`, `created_at`, `updated_at`) VALUES
(1, 'admin', 'iansarmail@gmail.com', 'a360bddfa8155e5d46326f3a31aba595', 1, 1, '2012-12-22 13:46:30', '2013-01-01 12:07:01'),
(2, NULL, 'jebin@itvillage.fr', '4be3cb0f8154fbf413c2b01311800d55', 1, 1, '2013-01-24 00:00:00', '2013-01-19 14:17:13');
-- --------------------------------------------------------
--
-- Table structure for table `insr_callers_profile`
--
CREATE TABLE IF NOT EXISTS `insr_callers_profile` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`caller_id` bigint(20) NOT NULL,
`first_name` varchar(255) NOT NULL,
`last_name` varchar(255) NOT NULL,
`family_name` varchar(255) DEFAULT NULL,
`nick_name` varchar(255) DEFAULT NULL,
`gender` enum('MALE','FEMALE','OTHER') NOT NULL,
`date_of_birth` date NOT NULL,
`email_id` varchar(255) NOT NULL,
`social_network_id` text COMMENT 'json format {"name":"social network id"}',
`messenger_id` text COMMENT 'json format {"name":"messenger id"}',
`house_no` varchar(255) DEFAULT NULL,
`street` varchar(255) DEFAULT NULL,
`area` varchar(255) DEFAULT NULL,
`city` varchar(255) DEFAULT NULL,
`state` varchar(255) DEFAULT NULL,
`country` varchar(255) DEFAULT NULL,
`zip` int(11) DEFAULT NULL,
`primary_phone` varchar(255) NOT NULL,
`secondary_phone` varchar(20) DEFAULT NULL,
`highest_education` varchar(255) NOT NULL,
`profession` varchar(50) NOT NULL,
`type_of_user` varchar(10) NOT NULL,
`profile_pic` varchar(255) NOT NULL,
`languages_known` text NOT NULL COMMENT 'json format {"0":"language"}',
`callee_created` text COMMENT 'Madhoo created by caller in JSON format',
`callee_owned` text COMMENT 'Madhoo owned currently by caller in JSON',
`can_own_cnt` tinyint(4) NOT NULL DEFAULT '5' COMMENT 'Count of how many madhoo caller can own still.',
`unassigned_madhoo` text COMMENT 'Madhoo unassingned by caller in JSON',
`can_invite` tinyint(2) NOT NULL DEFAULT '1' COMMENT '0=>no, 1=>yes',
`created_at` datetime NOT NULL,
`updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
UNIQUE KEY `caller_id` (`caller_id`),
KEY `email_id` (`email_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
--
-- Dumping data for table `insr_callers_profile`
--
INSERT INTO `insr_callers_profile` (`id`, `caller_id`, `first_name`, `last_name`, `family_name`, `nick_name`, `gender`, `date_of_birth`, `email_id`, `social_network_id`, `messenger_id`, `house_no`, `street`, `area`, `city`, `state`, `country`, `zip`, `primary_phone`, `secondary_phone`, `highest_education`, `profession`, `type_of_user`, `profile_pic`, `languages_known`, `callee_created`, `callee_owned`, `can_own_cnt`, `unassigned_madhoo`, `can_invite`, `created_at`, `updated_at`) VALUES
(1, 1, 'Jebin', 'BV', 'Benjamin', 'Jebin', 'MALE', '1990-01-26', 'iansarmail@gmail.com', '{"facebook":"JebinBv","Twitter":"jebin19"}', '{"gtalk":"bvjebin@gmail.com","AIM":"jebin@aio.com"}', '105', '2nd Cross', 'Maruthi Nagar', 'Bangalore', 'Karnataka', 'India', 560092, '9535872103', '', 'B.Tech(IT)', 'Software Engineer', 'DAEE', '1358256602_2012_11_05_113343jpg.png', '["Tamil","English"]', NULL, NULL, 5, NULL, 0, '2012-12-23 00:03:22', '2013-03-23 14:22:03'),
(2, 2, 'jebin', 'raj', 'ben', 'jamin', 'MALE', '1992-05-26', 'jebin@itvillage.fr', '{"facebook":"jebinraj"}', '{"msn":"jebinraj"}', 'No.45', 'North Car street', 'Mandaveli', 'Chennai', 'Tamilnadu', 'India', 62000, '233453245443', NULL, 'M.tech', 'Lect', 'Da''ee', 'none', '{0:"tamil",1:"english"}', NULL, NULL, 5, NULL, 1, '2013-01-19 20:47:46', '2013-01-19 14:19:28');
-- --------------------------------------------------------
--
-- Table structure for table `insr_conversations`
--
CREATE TABLE IF NOT EXISTS `insr_conversations` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`callee_id` bigint(20) NOT NULL,
`conversation` longtext CHARACTER SET utf8 NOT NULL,
`owner_id` bigint(20) NOT NULL,
`status` varchar(255) NOT NULL DEFAULT '1' COMMENT '0=>deleted 1=>not deleted',
`created_at` datetime NOT NULL,
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
KEY `caller_id` (`callee_id`),
KEY `owner_id` (`owner_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=19 ;
--
-- Dumping data for table `insr_conversations`
--
INSERT INTO `insr_conversations` (`id`, `callee_id`, `conversation`, `owner_id`, `status`, `created_at`, `updated_at`) VALUES
(3, 1, 'what is this s?', 1, '1', '2013-01-23 22:34:42', '2013-03-23 12:50:59'),
(4, 1, 'aldjfj;lasdf', 1, '1', '2013-01-23 22:34:42', '2013-03-09 12:20:12'),
(5, 1, 'new one', 1, '1', '2013-01-23 23:01:09', '2013-03-09 12:20:12'),
(6, 1, 'poyta yo ', 1, '1', '2013-01-23 23:02:20', '2013-03-09 12:20:12'),
(7, 1, 'Edited comfog', 1, '1', '2013-03-09 17:19:08', '2013-03-09 15:39:29'),
(8, 1, 'DivX HiQ Debug: HiQ supported site definition updated 37 Minutes(s) ago.', 1, '1', '2013-03-09 17:22:23', '2013-03-09 12:20:12'),
(9, 1, '$(''#add_conv''). $(''#add_conv''). $(''#add_conv'').', 1, '1', '2013-03-09 17:24:18', '2013-03-09 12:20:12'),
(10, 1, 'conversationTemplate(Conversations) conversationTemplate(Conversations)', 1, '1', '2013-03-09 17:26:46', '2013-03-09 12:20:12'),
(11, 1, 'conversationTemplate(Conversations)', 1, '1', '2013-03-09 17:28:44', '2013-03-23 13:07:37'),
(12, 1, 'conversationTemplate(Conversations) conversationTemplate(Conversations)conversationTemplate(Conversations) conversationTemplate(Conversations)', 1, '1', '2013-03-09 17:30:10', '2013-03-09 12:20:12'),
(13, 1, 'conversationTemplate(Conversations) conversationTemplate(Conversations)conversationTemplate(Conversations) conversationTemplate(Conversations)conversationTemplate(Conversations) conversationTemplate(Conversations)', 1, '1', '2013-03-09 17:30:34', '2013-03-09 12:20:12'),
(14, 1, 'conversationTemplate(Conversations) conversationTemplate(Conversations)conversationTemplate(Conversations) conversationTemplate(Conversations)conversationTemplate(Conversations) conversationTemplate(Conversations)', 1, '1', '2013-03-09 17:40:20', '2013-03-09 12:20:12'),
(15, 1, '<?php echo date("d/m/Y"); ?> <?php echo date("d/m/Y"); ?> <?php echo date("d/m/Y"); ?>', 1, '0', '2013-03-09 17:44:13', '2013-03-09 12:32:35'),
(16, 1, 'conversationTemplate(Conversations) conversationTemplate(Conversations)conversationTemplate(Conversations) conversationTemplate(Conversations)conversationTemplate(Conversations) conversationTemplate(Conversations)', 1, '0', '2013-03-09 17:44:28', '2013-03-09 12:34:48'),
(17, 1, 'add me now', 1, '1', '2013-03-09 21:09:52', '2013-03-09 15:39:03'),
(18, 1, 'testing laset ', 1, '1', '2013-03-09 21:14:43', '2013-03-09 15:44:31');
-- --------------------------------------------------------
--
-- Table structure for table `insr_conversation_mapping`
--
CREATE TABLE IF NOT EXISTS `insr_conversation_mapping` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`caller_id` bigint(20) NOT NULL,
`callee_id` bigint(20) NOT NULL,
`created_at` datetime NOT NULL,
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
KEY `caller_id` (`caller_id`,`callee_id`),
KEY `callee_id` (`callee_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=14 ;
--
-- Dumping data for table `insr_conversation_mapping`
--
INSERT INTO `insr_conversation_mapping` (`id`, `caller_id`, `callee_id`, `created_at`, `updated_at`) VALUES
(13, 1, 1, '2013-01-23 22:34:42', '0000-00-00 00:00:00');
-- --------------------------------------------------------
--
-- Table structure for table `insr_invitation`
--
CREATE TABLE IF NOT EXISTS `insr_invitation` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`invitee_email` varchar(255) NOT NULL,
`invited_by` bigint(20) NOT NULL,
`lookup_phrase` varchar(255) NOT NULL,
`status` tinyint(2) NOT NULL DEFAULT '0' COMMENT '0=>Not joined;1=>joined',
`created_at` datetime NOT NULL,
`updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
UNIQUE KEY `invitee_email` (`invitee_email`),
KEY `invited_by` (`invited_by`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `insr_messages`
--
CREATE TABLE IF NOT EXISTS `insr_messages` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`sender_id` bigint(20) NOT NULL,
`receiver_id` bigint(20) NOT NULL,
`type` varchar(100) NOT NULL COMMENT 'ADMIN_SPAM, ADMIN_WARN, ADMIN_BLOCK, ASSIGNMENT, UNASSIGNMENT',
`status` varchar(50) NOT NULL COMMENT 'READ, UNREAD, DELETED',
`title` text,
`description` longtext,
`created_at` datetime NOT NULL,
`updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
KEY `sender_id` (`sender_id`,`receiver_id`),
KEY `receiver_id` (`receiver_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `session_table`
--
CREATE TABLE IF NOT EXISTS `session_table` (
`id` char(32) NOT NULL,
`expire` int(11) DEFAULT NULL,
`data` longblob,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `session_table`
--
INSERT INTO `session_table` (`id`, `expire`, `data`) VALUES
('1bu3qrobdkfv6p5l33moohd9b6', 1364049107, ''),
('1hpmuc7mcbs1eade1cdlf3jkc3', 1364049046, ''),
('6aferu7dk56fschukv5s55isj5', 1364049208, ''),
('7b12oqbcdv9srgdptq1fn9m3r0', 1364049970, ''),
('8k7nvsva95kigln5qc9j63t9s0', 1364049284, ''),
('di3k4pjsfs01kd2tukq26o7if4', 1364049196, ''),
('em9gel55eksa5f0iqlkapmn0r7', 1364049216, ''),
('h0bf9e49ot2ia99hpg2pop6p47', 1364049282, ''),
('kmjg3e05c0gsr5d3gjbnbr73r2', 1364050027, 0x66303235356131333561393136636633323839653761623433616531646637385f5f72657475726e55726c7c733a32303a222f6d6164686f6f2f766965776d6164686f6f2f31223b66303235356131333561393136636633323839653761623433616531646637387573657253657373696f6e54696d656f75747c693a313336343035353738373b66303235356131333561393136636633323839653761623433616531646637385f5f69647c733a313a2231223b66303235356131333561393136636633323839653761623433616531646637385f5f6e616d657c733a32303a2269616e7361726d61696c40676d61696c2e636f6d223b6630323535613133356139313663663332383965376162343361653164663738726f6c657c733a353a2261646d696e223b6630323535613133356139313663663332383965376162343361653164663738656d61696c7c733a32303a2269616e7361726d61696c40676d61696c2e636f6d223b66303235356131333561393136636633323839653761623433616531646637386e616d657c733a383a224a6562696e204256223b663032353561313335613931366366333238396537616234336165316466373863616e5f696e766974657c623a303b663032353561313335613931366366333238396537616234336165316466373870726f66696c655f636f6d706c657465647c733a313a2231223b66303235356131333561393136636633323839653761623433616531646637385f5f7374617465737c613a353a7b733a343a22726f6c65223b623a313b733a353a22656d61696c223b623a313b733a343a226e616d65223b623a313b733a31303a2263616e5f696e76697465223b623a313b733a31373a2270726f66696c655f636f6d706c65746564223b623a313b7d6769695f5f72657475726e55726c7c733a343a222f676969223b6769695f5f69647c733a353a227969696572223b6769695f5f6e616d657c733a353a227969696572223b6769695f5f7374617465737c613a303a7b7d663032353561313335613931366366333238396537616234336165316466373870726f66696c655f7069637c733a33353a22313335383235363630325f323031325f31315f30355f3131333334336a70672e706e67223b),
('mpfc357p8iol5m2cgt9aj93q10', 1364049280, ''),
('p89hoafh8ivsa64ipfl6k6rho5', 1364050027, ''),
('pihrk4olrteua8oeerqsoco497', 1364049201, ''),
('r0huuieu2i6lupsvn40lnovhs6', 1364049963, ''),
('slkijldgl1ogul7ta30ib26gk7', 1364049019, ''),
('vak644ijcoq9rp93pks4qr3l37', 1364049611, '');
--
-- Constraints for dumped tables
--
--
-- Constraints for table `insr_callees`
--
ALTER TABLE `insr_callees`
ADD CONSTRAINT `insr_callees_ibfk_1` FOREIGN KEY (`caller_id`) REFERENCES `insr_callers` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
ADD CONSTRAINT `insr_callees_ibfk_2` FOREIGN KEY (`owned_by`) REFERENCES `insr_callers` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION;
--
-- Constraints for table `insr_callers_profile`
--
ALTER TABLE `insr_callers_profile`
ADD CONSTRAINT `insr_callers_profile_ibfk_1` FOREIGN KEY (`caller_id`) REFERENCES `insr_callers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Constraints for table `insr_conversations`
--
ALTER TABLE `insr_conversations`
ADD CONSTRAINT `insr_conversations_ibfk_2` FOREIGN KEY (`owner_id`) REFERENCES `insr_callers` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
ADD CONSTRAINT `insr_conversations_ibfk_3` FOREIGN KEY (`callee_id`) REFERENCES `insr_callees` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION;
--
-- Constraints for table `insr_invitation`
--
ALTER TABLE `insr_invitation`
ADD CONSTRAINT `insr_invitation_ibfk_1` FOREIGN KEY (`invited_by`) REFERENCES `insr_callers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Constraints for table `insr_messages`
--
ALTER TABLE `insr_messages`
ADD CONSTRAINT `insr_messages_ibfk_1` FOREIGN KEY (`sender_id`) REFERENCES `insr_callers` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
ADD CONSTRAINT `insr_messages_ibfk_2` FOREIGN KEY (`receiver_id`) REFERENCES `insr_callers` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION;
/*!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 */;