galaeth-draft/Galaeth.DAL/Migrations/2024-11-13.01-initial.sql
2024-11-17 09:31:01 +00:00

10 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;
$$;