10 lines
No EOL
452 B
SQL
10 lines
No EOL
452 B
SQL
-- Add created_at column to tablo_invites table
|
|
ALTER TABLE tablo_invites
|
|
ADD COLUMN IF NOT EXISTS created_at TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP NOT NULL;
|
|
|
|
-- Add comment to document the column
|
|
COMMENT ON COLUMN tablo_invites.created_at IS
|
|
'Timestamp when the invite was created';
|
|
|
|
-- Create index for performance when querying by creation date
|
|
CREATE INDEX IF NOT EXISTS idx_tablo_invites_created_at ON tablo_invites(created_at); |