generated from me/template-mit
Fancify the table definition tables a bit.
1 parent
2b3873d458
commit
d300761103
1 file changed
+5
-5
+5
-5
@@ -71,7 +71,7 @@ An example is Samhein which is typically November 1.
|
|||||||
#### `loc`
|
#### `loc`
|
||||||
|
|
||||||
| Column Name | Type | Constraints? | Calculated? |
|
| Column Name | Type | Constraints? | Calculated? |
|
||||||
| -- | - | - | --- |
|
| -- | :-: | :-: | :---: |
|
||||||
| loc_id | INT | PK,UNIQUE | |
|
| loc_id | INT | PK,UNIQUE | |
|
||||||
| zip_code | STRING | UNIQUE | |
|
| zip_code | STRING | UNIQUE | |
|
||||||
| lat | STRING | | |
|
| lat | STRING | | |
|
||||||
@@ -80,13 +80,13 @@ An example is Samhein which is typically November 1.
|
|||||||
#### `loc_weather`
|
#### `loc_weather`
|
||||||
|
|
||||||
| Column Name | Type | Constraints? | Calculated? |
|
| Column Name | Type | Constraints? | Calculated? |
|
||||||
| -- | - | - | --- |
|
| -- | :-: | :-: | :---: |
|
||||||
| loc_weather_id | INT | PK,UNIQUE | |
|
| loc_weather_id | INT | PK,UNIQUE | |
|
||||||
| loc_id | INT | FK | |
|
| loc_id | INT | FK | |
|
||||||
| weather_date | DATE | | |
|
| weather_date | DATE | | |
|
||||||
| isCurrent | | | `if weather_date >= sysdate 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` |
|
| isOld | - | | `if weather_date < sysdate then 'Y' else 'N' fi` |
|
||||||
| isExpired | | | `if weather_date < sysdate-7 then 'Y' else 'N' fi` |
|
| isExpired | - | | `if weather_date < sysdate-7 then 'Y' else 'N' fi` |
|
||||||
|
|
||||||
| Extra Constraints |
|
| Extra Constraints |
|
||||||
| --- |
|
| --- |
|
||||||
|
|||||||
Reference in new issue
Block a user