Create tables, indexes, functions and triggers programatically
This commit is contained in:
parent
cc12981a50
commit
c9b967a2ef
7 changed files with 154 additions and 163 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue