first commit
This commit is contained in:
18
example/db/post/posts.go
Normal file
18
example/db/post/posts.go
Normal file
@@ -0,0 +1,18 @@
|
||||
// Code generated by db-gen. DO NOT EDIT.
|
||||
|
||||
package post
|
||||
|
||||
import "code.patial.tech/go/pgm"
|
||||
|
||||
const (
|
||||
// ID field has db type "integer NOT NULL"
|
||||
ID pgm.Field = "posts.id"
|
||||
// UserID field has db type "integer NOT NULL"
|
||||
UserID pgm.Field = "posts.user_id"
|
||||
// Title field has db type "character varying(255) NOT NULL"
|
||||
Title pgm.Field = "posts.title"
|
||||
// Content field has db type "text"
|
||||
Content pgm.Field = "posts.content"
|
||||
// CreatedAt field has db type "timestamp without time zone NOT NULL DEFAULT CURRENT_TIMESTAMP"
|
||||
CreatedAt pgm.Field = "posts.created_at"
|
||||
)
|
Reference in New Issue
Block a user