Documentation
¶
Index ¶
- type Account
- type Category
- type DBTX
- type Invitation
- type Note
- type NotesDeleteParams
- type NotesGetByIDParams
- type NotesGetByIDRow
- type NotesGetByUserRow
- type NotesInsertParams
- type NotesUpdateParams
- type Queries
- func (q *Queries) NotesDelete(ctx context.Context, arg NotesDeleteParams) error
- func (q *Queries) NotesGetByID(ctx context.Context, arg NotesGetByIDParams) (*NotesGetByIDRow, error)
- func (q *Queries) NotesGetByUser(ctx context.Context, userID int32) ([]*NotesGetByUserRow, error)
- func (q *Queries) NotesInsert(ctx context.Context, arg NotesInsertParams) (*Note, error)
- func (q *Queries) NotesUpdate(ctx context.Context, arg NotesUpdateParams) (*Note, error)
- func (q *Queries) TokensVerificationInsert(ctx context.Context, arg TokensVerificationInsertParams) error
- func (q *Queries) UserWithEmailExists(ctx context.Context, email string) (bool, error)
- func (q *Queries) UsersFindByEmail(ctx context.Context, email string) (*User, error)
- func (q *Queries) UsersFindByUid(ctx context.Context, uid string) (*User, error)
- func (q *Queries) UsersInsert(ctx context.Context, arg UsersInsertParams) (*User, error)
- func (q *Queries) UsersUpdateLastActive(ctx context.Context, id int32) error
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type TokensVerificationInsertParams
- type Transaction
- type User
- type UserOauthProvider
- type UserToken
- type UsersInsertParams
- type Workspace
- type WorkspaceMember
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct {
ID int32 `json:"id"`
WorkspaceID int32 `json:"workspace_id"`
Name string `json:"name"`
Balance pgtype.Numeric `json:"balance"`
Color *string `json:"color"`
Icon *string `json:"icon"`
CreatedAt pgtype.Timestamp `json:"created_at"`
UpdatedAt pgtype.Timestamp `json:"updated_at"`
}
type Category ¶
type Category struct {
ID int32 `json:"id"`
WorkspaceID int32 `json:"workspace_id"`
Name string `json:"name"`
Description *string `json:"description"`
Type string `json:"type"`
Color *string `json:"color"`
Icon *string `json:"icon"`
CreatedBy int32 `json:"created_by"`
CreatedAt pgtype.Timestamp `json:"created_at"`
UpdatedAt pgtype.Timestamp `json:"updated_at"`
}
type Invitation ¶
type Invitation struct {
Token string `json:"token"`
Permission string `json:"permission"`
WorkspaceID int32 `json:"workspace_id"`
InvitedUserID int32 `json:"invited_user_id"`
InvitedBy int32 `json:"invited_by"`
CreatedAt pgtype.Timestamp `json:"created_at"`
DeletedAt pgtype.Timestamp `json:"deleted_at"`
}
type NotesDeleteParams ¶
type NotesGetByIDParams ¶
type NotesGetByIDRow ¶
type NotesGetByUserRow ¶
type NotesInsertParams ¶
type NotesUpdateParams ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) NotesDelete ¶
func (q *Queries) NotesDelete(ctx context.Context, arg NotesDeleteParams) error
func (*Queries) NotesGetByID ¶
func (q *Queries) NotesGetByID(ctx context.Context, arg NotesGetByIDParams) (*NotesGetByIDRow, error)
func (*Queries) NotesGetByUser ¶
func (*Queries) NotesInsert ¶
func (*Queries) NotesUpdate ¶
func (*Queries) TokensVerificationInsert ¶
func (q *Queries) TokensVerificationInsert(ctx context.Context, arg TokensVerificationInsertParams) error
func (*Queries) UserWithEmailExists ¶
func (*Queries) UsersFindByEmail ¶
func (*Queries) UsersFindByUid ¶
func (*Queries) UsersInsert ¶
func (*Queries) UsersUpdateLastActive ¶
type Transaction ¶
type Transaction struct {
ID int32 `json:"id"`
Uid string `json:"uid"`
WorkspaceID int32 `json:"workspace_id"`
CategoryID int32 `json:"category_id"`
AccountID int32 `json:"account_id"`
Title string `json:"title"`
Note *string `json:"note"`
TxnDate pgtype.Timestamp `json:"txn_date"`
Price pgtype.Numeric `json:"price"`
Type string `json:"type"`
Paid bool `json:"paid"`
CreatedBy int32 `json:"created_by"`
UpdatedBy *int32 `json:"updated_by"`
CreatedAt pgtype.Timestamp `json:"created_at"`
UpdatedAt pgtype.Timestamp `json:"updated_at"`
}
type User ¶
type User struct {
ID int32 `json:"id"`
Uid string `json:"uid"`
FirstName string `json:"first_name"`
LastName *string `json:"last_name"`
Email string `json:"email"`
Password *string `json:"password"`
Avatar *string `json:"avatar"`
Verified bool `json:"verified"`
Role string `json:"role"`
CreatedAt pgtype.Timestamp `json:"created_at"`
UpdatedAt pgtype.Timestamp `json:"updated_at"`
DeletedAt pgtype.Timestamp `json:"deleted_at"`
LastActiveAt pgtype.Timestamp `json:"last_active_at"`
}
type UserOauthProvider ¶
type UsersInsertParams ¶
Click to show internal directories.
Click to hide internal directories.