This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DROP TABLE IF EXISTS time_dimension; | |
CREATE TABLE time_dimension ( | |
id INTEGER PRIMARY KEY, -- year*10000+month*100+day | |
db_date DATE NOT NULL, | |
year INTEGER NOT NULL, | |
month INTEGER NOT NULL, -- 1 to 12 | |
day INTEGER NOT NULL, -- 1 to 31 | |
quarter INTEGER NOT NULL, -- 1 to 4 | |
week INTEGER NOT NULL, -- 1 to 52/53 | |
day_name VARCHAR(9) NOT NULL, -- 'Monday', 'Tuesday'... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Sourced: https://gist.github.com/rich-biker/9a3c86c5a576ce0d8639856f3ee81651 | |
Script: Documentation Generation | |
Purpose: To generate output based on a driving view | |
Author: Richard Heward - Tame Blue Lion Ltd | |
This generates a markdown file with the embedded images and text based upon a driving view in Archi of groups that trigger each other and embedded views. | |
See my blog for a more detailed explaination. https://www.tamebluelion.co.uk/blog/archi-documentation |