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) BINARY DEFAULT '' NOT NULL,
21 length smallint DEFAULT '0' NOT NULL,
23 last_played timestamp,
25 present tinyint NOT NULL,
26 random_pref INT DEFAULT 10000 NOT NULL,
30 KEY artist_id (artist_id),
32 KEY album_id (album_id),
37 id int(11) NOT NULL auto_increment,
38 name varchar(255) DEFAULT '' NOT NULL,
43 id int(11) NOT NULL auto_increment,
44 name varchar(255) DEFAULT '' NOT NULL,
49 song_order int NOT NULL,
56 CREATE TABLE seealso (
62 id int(11) NOT NULL auto_increment,
63 name varchar(255) DEFAULT '' NOT NULL,
68 CREATE TABLE list_contents (
69 song_order int NOT NULL,
71 type ENUM("artist", "album", "song", "list") NOT NULL,
72 entity_id int NOT NULL,
73 UNIQUE (list_id,type,entity_id)
76 CREATE TABLE sessions (
77 id char(32) not null primary key,