This repository has been archived by the owner on Apr 28, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdump_allcash.sql
114 lines (93 loc) · 2.92 KB
/
dump_allcash.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
-- phpMyAdmin SQL Dump
-- version 4.6.6deb4
-- https://www.phpmyadmin.net/
--
-- Хост: localhost:3306
-- Время создания: Дек 16 2018 г., 20:05
-- Версия сервера: 10.1.26-MariaDB-0+deb9u1
-- Версия PHP: 7.0.30-0+deb9u1
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 utf8mb4 */;
--
-- База данных: `allcash`
--
-- --------------------------------------------------------
--
-- Структура таблицы `allcash_admins`
--
CREATE TABLE `allcash_admins` (
`id` int(11) NOT NULL,
`login` varchar(32) NOT NULL,
`password` varchar(32) NOT NULL,
`first_name` varchar(40) NOT NULL,
`second_name` varchar(40) NOT NULL,
`middle_name` varchar(40) NOT NULL,
`can_add_admin` tinyint(1) NOT NULL,
`can_edit_phone` tinyint(1) NOT NULL,
`can_edit_password` tinyint(1) NOT NULL,
`can_edit_personal_data` tinyint(1) NOT NULL,
`can_edit_balance` tinyint(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Структура таблицы `allcash_system`
--
CREATE TABLE `allcash_system` (
`id` int(11) NOT NULL,
`key` varchar(40) NOT NULL,
`value` varchar(10) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Дамп данных таблицы `allcash_system`
--
INSERT INTO `allcash_system` (`id`, `key`, `value`) VALUES
(1, 'last_wallet_id', '0000000000'),
(2, 'last_version', '1.0');
-- --------------------------------------------------------
--
-- Структура таблицы `allcash_users`
--
CREATE TABLE `allcash_users` (
`id` int(11) NOT NULL,
`phone` varchar(13) NOT NULL,
`password` varchar(32) NOT NULL,
`first_name` varchar(40) NOT NULL,
`second_name` varchar(40) NOT NULL,
`middle_name` varchar(40) NOT NULL,
`reg_date` bigint(20) NOT NULL,
`balance` decimal(10,2) NOT NULL,
`wallet_id` varchar(10) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Индексы сохранённых таблиц
--
--
-- Индексы таблицы `allcash_admins`
--
ALTER TABLE `allcash_admins`
ADD PRIMARY KEY (`id`);
--
-- Индексы таблицы `allcash_system`
--
ALTER TABLE `allcash_system`
ADD PRIMARY KEY (`id`);
--
-- Индексы таблицы `allcash_users`
--
ALTER TABLE `allcash_users`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT для сохранённых таблиц
--
--
-- AUTO_INCREMENT для таблицы `allcash_system`
--
ALTER TABLE `allcash_system`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
/*!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 */;