Skip to content

Commit 77051b6

Browse files
committed
Update user guide
1 parent 32a0e35 commit 77051b6

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

guide/index.rst

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,25 @@ the example below:
291291
$saveHandler = new DatabaseHandler();
292292
$saveHandler->setDatabase($database); // static
293293
294+
Database Table
295+
##############
296+
297+
A basic example of a table for sessions is below:
298+
299+
.. code-block:: sql
300+
301+
CREATE TABLE `Sessions` (
302+
`id` varchar(128) NOT NULL,
303+
`timestamp` timestamp NOT NULL,
304+
`data` blob NOT NULL,
305+
`ip` varchar(45) NOT NULL, -- optional
306+
`ua` varchar(255) NOT NULL, -- optional
307+
PRIMARY KEY (`id`),
308+
KEY `timestamp` (`timestamp`),
309+
KEY `ip` (`ip`), -- optional
310+
KEY `ua` (`ua`) -- optional
311+
);
312+
294313
Files Handler
295314
^^^^^^^^^^^^^
296315

0 commit comments

Comments
 (0)