renamed exaples to playground, edited README
This commit is contained in:
18
playground/db/comment/comments.go
Normal file
18
playground/db/comment/comments.go
Normal file
@@ -0,0 +1,18 @@
|
||||
// Code generated by db-gen. DO NOT EDIT.
|
||||
|
||||
package comment
|
||||
|
||||
import "code.patial.tech/go/pgm"
|
||||
|
||||
const (
|
||||
// ID field has db type "integer NOT NULL"
|
||||
ID pgm.Field = "comments.id"
|
||||
// PostID field has db type "integer NOT NULL"
|
||||
PostID pgm.Field = "comments.post_id"
|
||||
// UserID field has db type "integer NOT NULL"
|
||||
UserID pgm.Field = "comments.user_id"
|
||||
// Content field has db type "text NOT NULL"
|
||||
Content pgm.Field = "comments.content"
|
||||
// CreatedAt field has db type "timestamp without time zone NOT NULL DEFAULT CURRENT_TIMESTAMP"
|
||||
CreatedAt pgm.Field = "comments.created_at"
|
||||
)
|
Reference in New Issue
Block a user