Skip to content

Commit 79f130c

Browse files
authored
Merge pull request #44 from Sage-Bionetworks/bwmac/SNOW-80/teammember_latest_descriptions
[SNOW-80] Adds table and column comments for TEAMMEMBER_LATEST table
2 parents b8df315 + 526c2bd commit 79f130c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
USE SCHEMA {{database_name}}.synapse; --noqa: JJ01,PRS,TMP
2+
3+
ALTER TABLE TEAMMEMBER_LATEST SET COMMENT = 'The latest snapshot with information for team members in Synapse.';
4+
5+
COMMENT ON COLUMN TEAMMEMBER_LATEST.change_timestamp IS 'The time when any change to the team was made (e.g. update of the team or a change to its members).';
6+
COMMENT ON COLUMN TEAMMEMBER_LATEST.change_type IS 'The type of change that occurred to the member of team, e.g., CREATE, UPDATE (Snapshotting does not capture DELETE change).';
7+
COMMENT ON COLUMN TEAMMEMBER_LATEST.change_user_id IS 'The unique identifier of the user who made the change to the team member.';
8+
COMMENT ON COLUMN TEAMMEMBER_LATEST.is_admin IS 'If true, then the member is manager of the team.';
9+
COMMENT ON COLUMN TEAMMEMBER_LATEST.member_id IS 'The unique identifier of the member of the team. The member is a Synapse user.';
10+
COMMENT ON COLUMN TEAMMEMBER_LATEST.snapshot_date IS 'The date when the snapshot was taken.';
11+
COMMENT ON COLUMN TEAMMEMBER_LATEST.snapshot_timestamp IS 'The time when the snapshot was taken (It is usually after the change happened).';
12+
COMMENT ON COLUMN TEAMMEMBER_LATEST.team_id IS 'The unique identifier of the team.';

0 commit comments

Comments
 (0)