Skip to content

Remember me, DB struct (table) hints. #218

Closed
@frederikhors

Description

@frederikhors

Issue opened for the creation of a wiki page that summarizes the doubts and problems for newbies (#210).

In README.md is suggested the use of:

Any hint for indexes and columns?

Can we use something like:

type AuthToken struct {
  Pid   string `db:"type:varchar(100)"` // maybe an index?
  Token string // maybe an index here?
}

What are the advice of an expert to a newbie in this case?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions