Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SNOW-80] Adds table and column comments for TEAMMEMBER_LATEST table #44

Merged
merged 2 commits into from
May 31, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
USE SCHEMA {{database_name}}.synapse; --noqa: JJ01,PRS,TMP

ALTER TABLE TEAMMEMBER_LATEST SET COMMENT = 'The latest snapshot with information for team members in Synapse.';

COMMENT ON COLUMN NODE_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).';
COMMENT ON COLUMN NODE_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).';
COMMENT ON COLUMN NODE_LATEST.change_user_id IS 'The unique identifier of the user who made the change to the team member.';
COMMENT ON COLUMN NODE_LATEST.is_admin IS 'If true, then the member is manager of the team.';
COMMENT ON COLUMN NODE_LATEST.member_id IS 'The unique identifier of the member of the team. The member is a Synapse user.';
COMMENT ON COLUMN NODE_LATEST.snapshot_date IS 'The date when the snapshot was taken.';
COMMENT ON COLUMN NODE_LATEST.snapshot_timestamp IS 'The time when the snapshot was taken (It is usually after the change happened).';
COMMENT ON COLUMN NODE_LATEST.team_id IS 'The unique identifier of the team.';