@volter/teams 0.2.1 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@volter/teams",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "type": "module",
5
5
  "description": "Volter Teams, the neutral team plane: machine identity and daemon core, the local door and server link, admission from machine grants, product doors, and the Teams server's neutral routes (company RFC 0008).",
6
6
  "license": "MIT",
@@ -0,0 +1,12 @@
1
+ // The calendar (company RFC 0023 decisions 18-19): JSCalendar objects kept beside the team's transcripts. Fixed events
2
+ // (deadlines, requested deliveries), resource windows a holder grants, the manager's calls and each forecast revision.
3
+ // Every write is a new revision of its object, so the calendar keeps every revision it was given.
4
+ export default `
5
+ CREATE TABLE calendar_objects (
6
+ team_id TEXT NOT NULL REFERENCES teams(id), uid TEXT NOT NULL, revision INTEGER NOT NULL,
7
+ kind TEXT NOT NULL, object_json TEXT NOT NULL CHECK(json_valid(object_json)),
8
+ written_by TEXT NOT NULL, written_at INTEGER NOT NULL, deleted INTEGER NOT NULL DEFAULT 0,
9
+ PRIMARY KEY(team_id, uid, revision)
10
+ ) STRICT;
11
+ CREATE INDEX calendar_objects_kind ON calendar_objects(team_id, kind, written_at);
12
+ `;
@@ -19,7 +19,8 @@ import m017 from './017.mjs';
19
19
  import m018 from './018.mjs';
20
20
  import m019 from './019.mjs';
21
21
  import m020 from './020.mjs';
22
- export const MIGRATIONS = [m001, m002, m003, m004, m005, m006, m007, m008, m009, m010, m011, m012, m013, m014, m015, m016, m017, m018, m019, m020];
22
+ import m021 from './021.mjs';
23
+ export const MIGRATIONS = [m001, m002, m003, m004, m005, m006, m007, m008, m009, m010, m011, m012, m013, m014, m015, m016, m017, m018, m019, m020, m021];
23
24
  /** A message row's `until_revision` while its session's current version still holds it (schema 9). */
24
25
  export const OPEN_REVISION = Number.MAX_SAFE_INTEGER;
25
26
  /** SQL: message row `m` belongs to the version at revision ?1 (bind the revision twice). */