Browse Source

UPD: db schema

Giancarlo Voci 7 years ago
parent
commit
8fdfbb864e
1 changed files with 9 additions and 6 deletions
  1. 9 6
      omlink.sql

+ 9 - 6
omlink.sql

@@ -1,4 +1,4 @@
--- Adminer 4.6.3 MySQL dump
+-- Adminer 4.7.0 MySQL dump
 
 SET NAMES utf8;
 SET time_zone = '+00:00';
@@ -11,6 +11,7 @@ DROP DATABASE IF EXISTS `omlink`;
 CREATE DATABASE `omlink` /*!40100 DEFAULT CHARACTER SET utf8mb4 */;
 USE `omlink`;
 
+DROP TABLE IF EXISTS `distinte`;
 CREATE TABLE `distinte` (
   `id` int(11) NOT NULL AUTO_INCREMENT,
   `idUtente` int(11) NOT NULL DEFAULT -1 COMMENT 'Utente che sta movimentando ',
@@ -27,6 +28,7 @@ CREATE TABLE `distinte` (
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
 
 
+DROP TABLE IF EXISTS `label_bindings`;
 CREATE TABLE `label_bindings` (
   `id` int(11) NOT NULL AUTO_INCREMENT,
   `label_id` varchar(255) NOT NULL,
@@ -35,6 +37,7 @@ CREATE TABLE `label_bindings` (
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
 
 
+DROP TABLE IF EXISTS `notifications`;
 CREATE TABLE `notifications` (
   `id` int(11) NOT NULL AUTO_INCREMENT,
   `code` int(11) NOT NULL DEFAULT 0,
@@ -44,9 +47,8 @@ CREATE TABLE `notifications` (
   PRIMARY KEY (`id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
 
-INSERT INTO `notifications` (`id`, `code`, `caption`, `timestamp`, `link`) VALUES
-(2,	11,	'Errore: Servizio di FindBox non disponibile',	'2018-10-11 16:07:03',	'#');
 
+DROP TABLE IF EXISTS `queuesystem`;
 CREATE TABLE `queuesystem` (
   `id` int(11) NOT NULL AUTO_INCREMENT,
   `servicename` varchar(255) NOT NULL,
@@ -56,16 +58,17 @@ CREATE TABLE `queuesystem` (
 ) ENGINE=MEMORY DEFAULT CHARSET=utf8mb4;
 
 
+DROP TABLE IF EXISTS `users`;
 CREATE TABLE `users` (
   `id` int(11) NOT NULL AUTO_INCREMENT,
   `username` varchar(255) NOT NULL,
-  `saltedpassword` varchar(255) NOT NULL COMMENT 'password_hash("username|password", PASS',
+  `saltedpassword` varchar(255) NOT NULL COMMENT 'password_hash("username|password", PASSWORD_BCRYPT)',
   `roles` varchar(4096) NOT NULL DEFAULT '{}' COMMENT 'PHP Serialized Array',
   PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4;
 
 INSERT INTO `users` (`id`, `username`, `saltedpassword`, `roles`) VALUES
 (1,	'admin',	'$2y$10$Vd0Uv.h848Xj8HtuqMBO.OvSLp8ycQpSgveHb.bH4tl72iTCgpvay',	'a:1:{i:0;s:10:\"importdata\";}'),
 (2,	'operatore1',	'$2y$10$Vd0Uv.h848Xj8HtuqMBO.OvSLp8ycQpSgveHb.bH4tl72iTCgpvay',	'a:1:{i:0;s:4:\"demo\";}');
 
--- 2018-10-15 15:28:06
+-- 2019-01-14 17:03:29