diff options
| -rw-r--r-- | config.toml.sample | 14 | ||||
| -rw-r--r-- | schema.sql | 24 |
2 files changed, 0 insertions, 38 deletions
diff --git a/config.toml.sample b/config.toml.sample deleted file mode 100644 index dedd166..0000000 --- a/config.toml.sample +++ /dev/null @@ -1,14 +0,0 @@ -# Move to config.toml in the same directory as the binary. -# All command line arguments are accepted plus some more. - -base_port = 6881 -num_nodes = 1 -debug = false -quiet = false -dsn = "postgres://dht:dht@localhost/dht?sslmode=disable" -no_http = false -http_address = "localhost:6880" -skip_tags = ["adult"] - -[tags] -test = "\\.asdfasdfsdfsfdsfs" diff --git a/schema.sql b/schema.sql deleted file mode 100644 index 5ab895c..0000000 --- a/schema.sql +++ /dev/null @@ -1,24 +0,0 @@ -create table if not exists torrents ( - id serial not null primary key, - infohash character varying(40) unique, - size bigint, - name text, - seen timestamp with time zone, - tsv tsvector -); -create index tsv_idx on torrents using gin(tsv); -create table if not exists files ( - id serial not null primary key, - torrent_id integer not null references torrents on delete cascade, - path text, - size bigint -); -create table if not exists tags ( - id serial not null primary key, - name text -); -create table if not exists tags_torrents ( - tag_id integer not null references tags on delete cascade, - torrent_id integer not null references torrents on delete cascade, - primary key (tag_id, torrent_id) -); |
