2 drop database if exists soepkiptng;
3 create database soepkiptng;
4 grant select,insert,update,delete,create,drop
6 to soepkiptng identified by 'soepkiptng';
7 grant select,insert,update,delete,create,drop
9 to soepkiptng@localhost identified by 'soepkiptng';
13 id int(11) NOT NULL auto_increment,
14 artist_id int DEFAULT 0 NOT NULL,
15 title varchar(255) DEFAULT '' NOT NULL,
16 album_id int DEFAULT 0 NOT NULL,
17 encoding varchar(255) DEFAULT '' NOT NULL,
18 track int(4) unsigned DEFAULT '0' NOT NULL,
19 filename varchar(255) DEFAULT '' NOT NULL,
20 length smallint DEFAULT '0' NOT NULL,
22 last_played timestamp,
24 present tinyint NOT NULL,
25 random_pref INT DEFAULT 10000 NOT NULL,
26 sets BIGINT UNSIGNED NOT NULL DEFAULT 0,
28 KEY artist_id (artist_id),
30 KEY album_id (album_id),
35 id int(11) NOT NULL auto_increment,
36 name varchar(255) DEFAULT '' NOT NULL,
41 id int(11) NOT NULL auto_increment,
42 name varchar(255) DEFAULT '' NOT NULL,
47 song_order int NOT NULL,
54 CREATE TABLE seealso (
61 name varchar(255) NOT NULL,
67 id int(11) NOT NULL auto_increment,
68 name varchar(255) DEFAULT '' NOT NULL,
73 CREATE TABLE list_contents (
74 song_order int NOT NULL,
76 type ENUM("artist", "album", "song", "list") NOT NULL,
77 entity_id int NOT NULL,
78 UNIQUE (list_id,type,entity_id)
81 CREATE TABLE sessions (
82 id char(32) not null primary key,