Added CreatedAt field to URL model

This commit is contained in:
2022-08-27 17:22:44 +02:00
parent 131cc2640a
commit 4539c926ec
3 changed files with 14 additions and 7 deletions

View File

@@ -15,7 +15,8 @@ func Seed(session gocqlx.Session) error {
err = session.ExecStmt(`
CREATE TABLE IF NOT EXISTS fivefeeteleven.urls (
id text PRIMARY KEY,
long_url text
long_url text,
created_at timestamp
)`)
if err != nil {