-
Notifications
You must be signed in to change notification settings - Fork 0
/
pdf-generator.sql
49 lines (41 loc) · 1.8 KB
/
pdf-generator.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
-- phpMyAdmin SQL Dump
-- version 4.7.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1:3306
-- Generation Time: Apr 23, 2018 at 09:12 AM
-- Server version: 5.7.19
-- PHP Version: 7.1.9
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
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 */;
--
-- Database: `pdf-generator`
--
-- --------------------------------------------------------
--
-- Table structure for table `document`
--
DROP TABLE IF EXISTS `document`;
CREATE TABLE IF NOT EXISTS `document` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
`customer` int(10) UNSIGNED NOT NULL COMMENT 'id du customer',
`path` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`name` varchar(100) COLLATE utf8_unicode_ci NOT NULL COMMENT 'Nom du document',
`pageFormat` tinyint(3) UNSIGNED NOT NULL COMMENT 'Format : A3/A4/A5/A6',
`pageOrientation` tinyint(3) UNSIGNED NOT NULL COMMENT 'Orientation : (1)portrait/(2)paysage',
`pageMargin` varchar(100) COLLATE utf8_unicode_ci NOT NULL COMMENT 'Tableau des marges : [top, botttom, left, right]',
`header` text COLLATE utf8_unicode_ci NOT NULL COMMENT 'Entête de page',
`body` text COLLATE utf8_unicode_ci NOT NULL COMMENT 'Corps de la page',
`footer` text COLLATE utf8_unicode_ci NOT NULL COMMENT 'Pied de la page',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=97 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='M_PRINTABLE';
COMMIT;
/*!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 */;