mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-04-10 09:59:08 -04:00
13 lines
336 B
SQL
13 lines
336 B
SQL
|
|
DROP TABLE `ospos_sessions`;
|
|
|
|
CREATE TABLE IF NOT EXISTS `ospos_sessions` (
|
|
`id` varchar(128) NOT null,
|
|
`ip_address` varchar(45) NOT null,
|
|
`timestamp` timestamp DEFAULT CURRENT_TIMESTAMP NOT null,
|
|
`data` blob NOT null,
|
|
KEY `ospos_sessions_timestamp` (`timestamp`)
|
|
);
|
|
|
|
ALTER TABLE ospos_sessions ADD PRIMARY KEY (id, ip_address);
|