-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.sql
146 lines (118 loc) · 5.17 KB
/
schema.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
-- phpMyAdmin SQL Dump
-- version 5.2.1
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Sep 08, 2024 at 11:59 PM
-- Server version: 11.3.2-MariaDB
-- PHP Version: 8.3.4
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
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: `fit3047_auth_cms_demo`
--
-- --------------------------------------------------------
--
-- Table structure for table `content_blocks`
--
CREATE TABLE `content_blocks` (
`id` int(11) NOT NULL,
`parent` varchar(128) NOT NULL,
`slug` varchar(128) NOT NULL,
`label` varchar(255) NOT NULL,
`description` varchar(255) NOT NULL,
`type` varchar(32) NOT NULL,
`value` text DEFAULT NULL,
`previous_value` text DEFAULT NULL,
`modified` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
--
-- Dumping data for table `content_blocks`
--
INSERT INTO `content_blocks` (`id`, `parent`, `slug`, `label`, `description`, `type`, `value`, `previous_value`, `modified`) VALUES
(23, 'global', 'website-title', 'Website Title', 'Shown on the home page, as well as any tabs in the users browser.', 'text', 'ugie-cake/cakephp-auth+cms-template', 'ugie-cake/cakephp-content-blocks-example', '2024-09-08 23:38:07'),
(24, 'global', 'logo', 'Logo', 'Shown in the centre of the home page, and also in the top corner of all administration pages.', 'image', '/img/content-blocks/logo.3a7d583300818b11e1d9df34c4e52d34.png', '/img/content-blocks/logo.0f6b75b8bfbb63d64c90995ab977ef17.png', '2024-09-08 23:40:20'),
(25, 'home', 'home-content', 'Home Page Content', 'The main content shown in the centre of the home page.', 'html', '<p>Template CakePHP app skeleton with CMS + Authentication. </p><ul><li>This is a HTML block that you can edit within CMS</li></ul>', '<p>Example app showcasing the ugie-cake/cakephp-content-blocks plugin.</p>', '2024-09-08 23:42:16'),
(26, 'home', 'copyright-message', 'Copyright Message', 'Copyright information shown at the bottom of the home page.', 'text', '(c) Copyright 2023, enter copyright owner here.', NULL, '2023-09-19 03:53:07'),
(27, 'home', 'contact-us', 'Copyright Message', 'Contact us details', 'text', 'Hello, please call me.', NULL, '2024-09-08 23:35:38'),
(28, 'home', 'email-button', 'Email button', 'The email button that the user can press', 'html', '<p>Theoretically you can code HTML elements in these blocks but try and minimise the amount of styling + js in these editors. <a href=\"mailto:[email protected]\">Say hi</a></p>', '<p><a href=\"mailto:[email protected]\">Say hi</a></p>', '2024-09-08 23:43:40');
-- --------------------------------------------------------
--
-- Table structure for table `content_blocks_phinxlog`
--
CREATE TABLE `content_blocks_phinxlog` (
`version` bigint(20) NOT NULL,
`migration_name` varchar(100) DEFAULT NULL,
`start_time` timestamp NULL DEFAULT NULL,
`end_time` timestamp NULL DEFAULT NULL,
`breakpoint` tinyint(1) NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `content_blocks_phinxlog`
--
INSERT INTO `content_blocks_phinxlog` (`version`, `migration_name`, `start_time`, `end_time`, `breakpoint`) VALUES
(20230402063959, 'ContentBlocksMigration', '2023-09-18 17:00:36', '2023-09-18 17:00:36', 0);
-- --------------------------------------------------------
--
-- Table structure for table `phinxlog`
--
CREATE TABLE `phinxlog` (
`version` bigint(20) NOT NULL,
`migration_name` varchar(100) DEFAULT NULL,
`start_time` timestamp NULL DEFAULT NULL,
`end_time` timestamp NULL DEFAULT NULL,
`breakpoint` tinyint(1) NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`id` char(36) NOT NULL,
`email` varchar(254) NOT NULL,
`password` varchar(96) NOT NULL,
`first_name` varchar(128) NOT NULL,
`last_name` varchar(128) NOT NULL,
`nonce` char(128) DEFAULT NULL,
`nonce_expiry` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `content_blocks`
--
ALTER TABLE `content_blocks`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `content_blocks_phinxlog`
--
ALTER TABLE `content_blocks_phinxlog`
ADD PRIMARY KEY (`version`);
--
-- Indexes for table `phinxlog`
--
ALTER TABLE `phinxlog`
ADD PRIMARY KEY (`version`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `content_blocks`
--
ALTER TABLE `content_blocks`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=29;
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 */;