00-indexes.sql 673 B

12345678910111213141516171819
  1. -- Copyright (C) 2025 The Syncthing Authors.
  2. --
  3. -- This Source Code Form is subject to the terms of the Mozilla Public
  4. -- License, v. 2.0. If a copy of the MPL was not distributed with this file,
  5. -- You can obtain one at https://mozilla.org/MPL/2.0/.
  6. -- folders map folder IDs as used by Syncthing to database folder indexes
  7. CREATE TABLE IF NOT EXISTS folders (
  8. idx INTEGER NOT NULL PRIMARY KEY,
  9. folder_id TEXT NOT NULL UNIQUE COLLATE BINARY
  10. ) STRICT
  11. ;
  12. -- devices map device IDs as used by Syncthing to database device indexes
  13. CREATE TABLE IF NOT EXISTS devices (
  14. idx INTEGER NOT NULL PRIMARY KEY,
  15. device_id TEXT NOT NULL UNIQUE COLLATE BINARY
  16. ) STRICT
  17. ;