-
Notifications
You must be signed in to change notification settings - Fork 0
/
db_structure.txt
28 lines (25 loc) · 973 Bytes
/
db_structure.txt
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
CREATE TABLE `chat_history` (
`id` bigint(20) NOT NULL,
`room` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`send_user_id` int(11) NOT NULL,
`message` longtext CHARACTER SET utf8mb4 NOT NULL,
`file_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`is_image` enum('1','0') COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '1=image, 0= not image',
`type` enum('0','1') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '0' COMMENT '0=text,1= media',
`status` enum('0','1') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '0',
`posted_on` bigint(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Indexes for table `chat_history`
--
ALTER TABLE `chat_history`
ADD PRIMARY KEY (`id`),
ADD KEY `send_user_id` (`send_user_id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `chat_history`
--
ALTER TABLE `chat_history`
MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1;