From d300761103878d4ad0a415346dd7330dd18e96f9 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Wed, 12 Aug 2026 16:54:59 -0700 Subject: [PATCH] Fancify the table definition tables a bit. --- Design.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Design.md b/Design.md index 8ea4367..8155553 100644 --- a/Design.md +++ b/Design.md @@ -71,7 +71,7 @@ An example is Samhein which is typically November 1. #### `loc` | Column Name | Type | Constraints? | Calculated? | -| -- | - | - | --- | +| -- | :-: | :-: | :---: | | loc_id | INT | PK,UNIQUE | | | zip_code | STRING | UNIQUE | | | lat | STRING | | | @@ -80,13 +80,13 @@ An example is Samhein which is typically November 1. #### `loc_weather` | Column Name | Type | Constraints? | Calculated? | -| -- | - | - | --- | +| -- | :-: | :-: | :---: | | loc_weather_id | INT | PK,UNIQUE | | | loc_id | INT | FK | | | weather_date | DATE | | | -| isCurrent | | | `if weather_date >= sysdate then 'Y' else 'N' fi` | -| isOld | | | `if weather_date < sysdate then 'Y' else 'N' fi` | -| isExpired | | | `if weather_date < sysdate-7 then 'Y' else 'N' fi` | +| isCurrent | - | | `if weather_date >= sysdate then 'Y' else 'N' fi` | +| isOld | - | | `if weather_date < sysdate then 'Y' else 'N' fi` | +| isExpired | - | | `if weather_date < sysdate-7 then 'Y' else 'N' fi` | | Extra Constraints | | --- |