<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Reference on eds-inventory</title><link>https://cdeever.github.io/eds-inventory/docs/reference/</link><description>Recent content in Reference on eds-inventory</description><generator>Hugo</generator><language>en-us</language><atom:link href="https://cdeever.github.io/eds-inventory/docs/reference/index.xml" rel="self" type="application/rss+xml"/><item><title>Database Schema</title><link>https://cdeever.github.io/eds-inventory/docs/reference/schema/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://cdeever.github.io/eds-inventory/docs/reference/schema/</guid><description>&lt;h1 id="database-schema"&gt;Database Schema&lt;a class="anchor" href="#database-schema"&gt;&lt;/a&gt;&lt;/h1&gt;&#10;&lt;p&gt;The inventory&amp;rsquo;s database, as &lt;code&gt;internal/store&lt;/code&gt; creates it: SQLite, schema&#10;version &lt;strong&gt;1&lt;/strong&gt; (kept in &lt;code&gt;PRAGMA user_version&lt;/code&gt;). Nothing but &lt;code&gt;internal/store&lt;/code&gt;&#10;reads or writes it&#10;(&lt;a href="https://cdeever.github.io/eds-inventory/docs/architecture/decisions/0001-go-services-and-a-sqlite-store/"&gt;ADR-0001&lt;/a&gt;).&lt;/p&gt;&#10;&lt;p&gt;This schema is being reworked; the changes agreed so far are on&#10;&lt;a href="../schema-proposed/"&gt;Proposed Schema&lt;/a&gt;, and this page stays what runs until&#10;they are built.&lt;/p&gt;&#10;&lt;p&gt;&lt;a href="https://cdeever.github.io/eds-inventory/docs/reference/schema/schema.svg"&gt;&lt;img src="https://cdeever.github.io/eds-inventory/docs/reference/schema/schema.svg" alt="The inventory&amp;rsquo;s tables: artists, albums, holdings and collections, and how they refer to one another." /&gt;&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;An album is the inventory&amp;rsquo;s; a holding is a source&amp;rsquo;s.&lt;/strong&gt; Each source that&#10;holds an album has a holding of it, found again on every collection by the&#10;key the source knows it by, so the album keeps its ID. A collection replaces&#10;its source&amp;rsquo;s holdings; an album no holding refers to is removed, and then&#10;an artist with no albums.&lt;/p&gt;</description></item><item><title>Proposed Schema</title><link>https://cdeever.github.io/eds-inventory/docs/reference/schema-proposed/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://cdeever.github.io/eds-inventory/docs/reference/schema-proposed/</guid><description>&lt;h1 id="proposed-schema"&gt;Proposed Schema&lt;a class="anchor" href="#proposed-schema"&gt;&lt;/a&gt;&lt;/h1&gt;&#10;&lt;p&gt;&lt;strong&gt;Not built.&lt;/strong&gt; This is the database as it is being reworked, table by table,&#10;in conversation with the owner (started 2026-10-24). What is agreed is in&#10;color; what is still to review, or proposed but not agreed, is gray. When the&#10;review is done, the schema is rebuilt as one clean version 1, the workload&amp;rsquo;s&#10;database is wiped, and the library collected again. Until then,&#10;&lt;a href="../schema/"&gt;Database Schema&lt;/a&gt; is what runs.&lt;/p&gt;</description></item></channel></rss>