123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299 |
- <?xml version="1.0" encoding="ISO-8859-1" ?>
- <database>
- <name>*dbname*</name>
- <create>true</create>
- <overwrite>false</overwrite>
- <charset>utf8</charset>
- <table>
- <name>*dbprefix*media_albums</name>
- <declaration>
- <field>
- <name>album_id</name>
- <type>integer</type>
- <default>0</default>
- <notnull>true</notnull>
- <autoincrement>1</autoincrement>
- <length>4</length>
- </field>
- <field>
- <name>album_name</name>
- <type>text</type>
- <default></default>
- <notnull>true</notnull>
- <length>200</length>
- </field>
- <field>
- <name>album_artist</name>
- <type>integer</type>
- <default>0</default>
- <notnull>true</notnull>
- <length>4</length>
- </field>
- <field>
- <name>album_art</name>
- <type>text</type>
- <default></default>
- <notnull>true</notnull>
- <length>200</length>
- </field>
-
- <index>
- <name>album_name_index</name>
- <field>
- <name>album_name</name>
- <sorting>ascending</sorting>
- </field>
- </index>
-
- <index>
- <name>album_artist_index</name>
- <field>
- <name>album_artist</name>
- <sorting>ascending</sorting>
- </field>
- </index>
- </declaration>
- </table>
- <table>
- <name>*dbprefix*media_artists</name>
- <declaration>
- <field>
- <name>artist_id</name>
- <type>integer</type>
- <default>0</default>
- <notnull>true</notnull>
- <autoincrement>1</autoincrement>
- <length>4</length>
- </field>
- <field>
- <name>artist_name</name>
- <type>text</type>
- <default></default>
- <notnull>true</notnull>
- <length>200</length>
- </field>
- <index>
- <name>artist_name</name>
- <unique>true</unique>
- <field>
- <name>artist_name</name>
- <sorting>ascending</sorting>
- </field>
- </index>
-
- </declaration>
- </table>
- <table>
- <name>*dbprefix*media_sessions</name>
- <declaration>
- <field>
- <name>session_id</name>
- <type>integer</type>
- <default>0</default>
- <notnull>true</notnull>
- <autoincrement>1</autoincrement>
- <length>4</length>
- </field>
- <field>
- <name>token</name>
- <type>text</type>
- <default></default>
- <notnull>true</notnull>
- <length>64</length>
- </field>
- <field>
- <name>user_id</name>
- <type>text</type>
- <default></default>
- <notnull>true</notnull>
- <length>64</length>
- </field>
- <field>
- <name>start</name>
- <type>timestamp</type>
- <notnull>true</notnull>
- </field>
- </declaration>
- </table>
- <table>
- <name>*dbprefix*media_songs</name>
- <declaration>
- <field>
- <name>song_id</name>
- <type>integer</type>
- <default>0</default>
- <notnull>true</notnull>
- <autoincrement>1</autoincrement>
- <length>4</length>
- </field>
- <field>
- <name>song_name</name>
- <type>text</type>
- <default></default>
- <notnull>true</notnull>
- <length>200</length>
- </field>
- <field>
- <name>song_artist</name>
- <type>integer</type>
- <default>0</default>
- <notnull>true</notnull>
- <length>4</length>
- </field>
- <field>
- <name>song_album</name>
- <type>integer</type>
- <default>0</default>
- <notnull>true</notnull>
- <length>4</length>
- </field>
- <field>
- <name>song_path</name>
- <type>text</type>
- <default></default>
- <notnull>true</notnull>
- <length>200</length>
- </field>
- <field>
- <name>song_user</name>
- <type>text</type>
- <default>0</default>
- <notnull>true</notnull>
- <length>64</length>
- </field>
- <field>
- <name>song_length</name>
- <type>integer</type>
- <default></default>
- <notnull>true</notnull>
- <length>4</length>
- </field>
- <field>
- <name>song_track</name>
- <type>integer</type>
- <default></default>
- <notnull>true</notnull>
- <length>4</length>
- </field>
- <field>
- <name>song_size</name>
- <type>integer</type>
- <default></default>
- <notnull>true</notnull>
- <length>4</length>
- </field>
- <field>
- <name>song_playcount</name>
- <type>integer</type>
- <default>
- </default>
- <notnull>true</notnull>
- <length>4</length>
- </field>
- <field>
- <name>song_lastplayed</name>
- <type>integer</type>
- <default>
- </default>
- <notnull>true</notnull>
- <length>4</length>
- </field>
-
- <index>
- <name>song_album_index</name>
- <field>
- <name>song_album</name>
- <sorting>ascending</sorting>
- </field>
- </index>
- <index>
- <name>song_artist_index</name>
- <field>
- <name>song_artist</name>
- <sorting>ascending</sorting>
- </field>
- </index>
- <index>
- <name>song_name_index</name>
- <field>
- <name>song_name</name>
- <sorting>ascending</sorting>
- </field>
- </index>
-
- </declaration>
- </table>
- <table>
- <name>*dbprefix*media_users</name>
- <declaration>
- <field>
- <name>user_id</name>
- <type>text</type>
- <default>0</default>
- <notnull>true</notnull>
- <autoincrement>1</autoincrement>
- <length>64</length>
- </field>
- <field>
- <name>user_password_sha256</name>
- <type>text</type>
- <default></default>
- <notnull>true</notnull>
- <length>64</length>
- </field>
- </declaration>
- </table>
- </database>
|