We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32a0e35 commit 77051b6Copy full SHA for 77051b6
1 file changed
guide/index.rst
@@ -291,6 +291,25 @@ the example below:
291
$saveHandler = new DatabaseHandler();
292
$saveHandler->setDatabase($database); // static
293
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
313
Files Handler
314
^^^^^^^^^^^^^
315
0 commit comments