aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources/schema-sqlite.sql
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/resources/schema-sqlite.sql')
-rw-r--r--src/main/resources/schema-sqlite.sql1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/resources/schema-sqlite.sql b/src/main/resources/schema-sqlite.sql
index 74ba28b6..54160c80 100644
--- a/src/main/resources/schema-sqlite.sql
+++ b/src/main/resources/schema-sqlite.sql
@@ -32,6 +32,7 @@ CREATE TABLE emails (
user_id INTEGER NOT NULL,
email character varying(128) NOT NULL,
subscr_hour smallint,
+ created_at DEFAULT (strftime('%s','now') || substr(strftime('%f','now'),4)) NOT NULL,
FOREIGN KEY (user_id) REFERENCES users(id)
);
CREATE TABLE facebook (