Files
todo/backend/src/main/resources/db/migration/V1__init.sql
almazlar c26ee4f400
All checks were successful
Release and Build Docker Images / release-and-build (push) Successful in 1m45s
feat: add createdAt field to Todo entity and update database migration script
2026-02-22 15:03:11 +03:00

7 lines
217 B
SQL

CREATE TABLE todos (
id BIGSERIAL PRIMARY KEY,
title VARCHAR(255) NOT NULL,
description TEXT,
completed BOOLEAN NOT NULL DEFAULT FALSE,
created_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW()
);