fix: readers and linting issues
This commit is contained in:
18
tests/assets/bun/simple.go
Normal file
18
tests/assets/bun/simple.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/uptrace/bun"
|
||||
)
|
||||
|
||||
type User struct {
|
||||
bun.BaseModel `bun:"table:users,alias:u"`
|
||||
|
||||
ID int64 `bun:"id,pk,autoincrement,type:bigint"`
|
||||
Email string `bun:"email,notnull,type:varchar(255),unique"`
|
||||
Name string `bun:"name,type:text"`
|
||||
Age *int `bun:"age,type:integer"`
|
||||
IsActive bool `bun:"is_active,type:boolean"`
|
||||
CreatedAt time.Time `bun:"created_at,type:timestamp,default:now()"`
|
||||
}
|
||||
Reference in New Issue
Block a user