Skip to content
This repository was archived by the owner on Feb 23, 2026. It is now read-only.

Commit 616a672

Browse files
committed
chore: Add a published column to the content table
1 parent 328a046 commit 616a672

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

api/cmd/migrate_db/migrations/000004_create_content_table.up.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ CREATE TABLE IF NOT EXISTS content(
33
content_type bigint,
44
title varchar(255) NOT NULL,
55
author_id bigint NOT NULL,
6+
published boolean NOT NULL DEFAULT FALSE,
67
created_at timestamp without time zone NOT NULL DEFAULT NOW(),
78
updated_at timestamp without time zone NOT NULL DEFAULT NOW(),
89
FOREIGN KEY (author_id) REFERENCES users(id),

0 commit comments

Comments
 (0)