Skip to content

Commit

Permalink
Add metadata table to APDB schema (DM-41029)
Browse files Browse the repository at this point in the history
This also adds version number to APDB schema and "advances" it to 0.1.1,
all schema versions before metadata are considered 0.1.0.
  • Loading branch information
andy-slac committed Dec 5, 2023
1 parent 6725770 commit 68af1cf
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions yml/apdb.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,28 @@
---
name: "ApdbSchema"
"@id": "#apdbSchema"
version: "0.1.1"
description: The Alert Production Database (APDB) contains the catalogs resulting from
image differencing during nightly Prompt Processing as well as the results of
daily Solar System Processing.
tables:
- name: metadata
"@id": "#metadata"
description: Table containing various metadata key:value pairs for APDB.
columns:
- name: name
"@id": "#metadata.name"
datatype: text
length: 1024
nullable: false
description: Name or key for a metadata item.
- name: value
"@id": "#metadata.value"
datatype: text
length: 65535
nullable: false
description: Content of the metadata item in string representation.
primaryKey: "#metadata.name"
- name: DiaObject
"@id": "#DiaObject"
description: The DiaObject table contains descriptions of the astronomical objects
Expand Down

0 comments on commit 68af1cf

Please sign in to comment.