mirror of
https://github.com/pocketbase/pocketbase.git
synced 2024-12-01 02:56:49 +02:00
16 lines
438 B
Go
16 lines
438 B
Go
package models
|
|
|
|
import "github.com/pocketbase/pocketbase/tools/types"
|
|
|
|
type TableInfoRow struct {
|
|
// the `db:"pk"` tag has special semantic so we cannot rename
|
|
// the original field without specifying a custom mapper
|
|
PK int
|
|
|
|
Index int `db:"cid"`
|
|
Name string `db:"name"`
|
|
Type string `db:"type"`
|
|
NotNull bool `db:"notnull"`
|
|
DefaultValue types.JsonRaw `db:"dflt_value"`
|
|
}
|