astral-api/Astral.DAL/Migrations/2024-12-09.01-initial.sql
2024-12-11 20:36:30 +00:00

9 lines
163 B
PL/PgSQL

CREATE OR REPLACE FUNCTION updated_at_timestamp() RETURNS TRIGGER
LANGUAGE plpgsql
AS
$$
BEGIN
NEW.updatedAt = CURRENT_TIMESTAMP;
RETURN NEW;
END;
$$;