HelpDatabase Reference › Kit_TreeAssignment

Kit_TreeAssignment Table

The Kit_TreeAssignment table assigns a tree to a DNA kit. It establishes “my tree” for a kit — the tree that the kit’s matches are compared against when computing common ancestors. The assigned tree can come from a GEDCOM upload, a tree gathered from a service, or another kit’s gathered trees (cross-service sharing).

Each kit has at most one assignment. Assigning a tree to a kit removes any existing assignment for that kit first, so the table holds one current assignment per KitGuid.

Column Reference

ColumnTypeDescription
Idint (PK)Auto-incrementing primary key
KitGuidstringThe DNA kit this tree is assigned to
CompanystringWhich service the kit belongs to (Ancestry, FTDNA, MyHeritage, GEDMatch)
TreeSourcestringWhere the tree data lives: GEDCOM, Ancestry, FTDNA, MH
TreeIdintDGTree.Id for GEDCOM/FTDNA trees, or -1 for gathered kit match trees
SourceKitGuidstringFor cross-service sharing: the kit whose gathered trees to use (nullable)
AssignDateDateTimeWhen the assignment was made (UTC)
NotesstringOptional free-text notes about the assignment (nullable)

How It’s Populated

When a user assigns a tree to a kit, the application deletes any prior assignment for that KitGuid and inserts a new row with AssignDate set to the current UTC time. When TreeId points to a DGTree record, the assigned tree is a GEDCOM upload or gathered service tree; when TreeId is -1 and SourceKitGuid is set, the kit reuses another kit’s gathered match trees.

Related Tables

  • DGTree — the tree referenced by TreeId (GEDCOM uploads and gathered trees).
  • Match_TreeOverride — overrides an individual match’s tree with a better one for comparison.
  • Computed_CommonAncestors — cached common ancestors computed between this assigned tree and each match’s tree.