model

package
v0.0.0-...-6156683 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 30, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Tables = []interface{}{
	&User{},
	&Project{},
	&Comment{},
}

Functions

This section is empty.

Types

type Comment

type Comment struct {
	Model
	Message  string
	Mentions []string
}

type Model

type Model struct {
	UID       string    `json:"uid"`
	CreatedAt time.Time `json:"created_at"`
	UpdatedAt time.Time `json:"updated_at"`
}

type Project

type Project struct {
	Model
	Users []User
}

type UID

type UID struct {
	// contains filtered or unexported fields
}

UID implements an encoder and decoder for encrypting external uids (such as supabase user uid)

func (*UID) Decode

func (u *UID) Decode() (string, error)

func (*UID) Encode

func (u *UID) Encode(uid string) error

type User

type User struct {
	Model
	SupaBaseUID UID `json:"supa_base_uid"`
	Projects    []Project
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL