From ccc4cc4bab2377fc92fa6959d761885bebaaa0e0 Mon Sep 17 00:00:00 2001
From: Masaya Tojo <masaya@tojo.tokyo>
Date: Wed, 30 Aug 2023 00:30:15 +0900
Subject: Add note column to photos table

---
 deploy/photos.sql | 1 +
 1 file changed, 1 insertion(+)

(limited to 'deploy/photos.sql')

diff --git a/deploy/photos.sql b/deploy/photos.sql
index 7b727b5..714f3b0 100644
--- a/deploy/photos.sql
+++ b/deploy/photos.sql
@@ -10,6 +10,7 @@ CREATE TABLE photos(
   id UUID PRIMARY KEY,
   path TEXT NOT NULL,
   is_receipt BOOLEAN NOT NULL DEFAULT FALSE,
+  note TEXT CHECK (note <> ''),
   taken_at TIME,
   camera_name TEXT,
   created_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),
-- 
cgit v1.2.3

