# The data model

> The entities Trellis keeps, how they relate, and the file formats it reads.

## Entities

**Performance.** The show: an artist, a date, a venue, and optionally an event. One show can have several recordings.

**Recording.** One capture of a performance, with its source (SBD, AUD, FM), lineage, engineers, notes, grade, score and tracks. A recording is either live or an Album, and sits in the library, the Queue, the Workshop or the Backlog.

**Track.** One audio file, with its number, title, set, length and flags.

**Artist.** The act, with a genre, biography, photographs, lineup and MusicBrainz link.

**Musician.** A person, belonging to artists through **memberships**, each with an instrument and dates.

**Engineer.** A person credited with recording, transferring or mastering a live recording.

**Venue.** A place, with city, state and country.

**Event.** A festival or series, named without a year.

**Genre.** One per artist, with a colour.

**Collection.** A named set of recordings.

## The database is the record

Everything Trellis knows lives in its own database. Under Keep my files as-is, recordings in your library folder are never moved, renamed or retagged.

## File formats

**Imported:** FLAC and MP3.

**Converted to FLAC:** SHN, WAV, AIFF and WV, under Organize my files, with ffmpeg installed.

**Not supported:** M4A and OGG. A folder holding them is listed with the reason.

## Folder names

Under Organize my files, a live recording's folder is named `Artist - Date - Venue - City, ST (Source)` and an Album's `Artist - Album Title`. A date range reads `1977-05-07 to 1977-05-09`.
