github.com/gudimz/urlShortener@v0.0.0-20230129195305-c8ee33059a67/internal/db/postgres/migration/init.sql (about) 1 CREATE DATABASE url_shorten; 2 CREATE TABLE IF NOT EXISTS shorten_urls ( 3 short_url text primary key unique, 4 origin_url text not null, 5 visits int default 0, 6 date_created timestamp, 7 date_updated timestamp 8 );