Create tables, indexes, functions and triggers programatically

This commit is contained in:
Las Zenow 2017-09-21 21:05:06 +00:00
parent cc12981a50
commit c9b967a2ef
7 changed files with 154 additions and 163 deletions

View file

@ -7,8 +7,8 @@ import (
// New entry in the news table
type New struct {
ID int
Date time.Time
ID int `sql:"type:serial"`
Date time.Time `sql:"type:timestamp"`
Text string
}