package noodle

import "time"

const (
	UserRoleRegular = "regular"
	UserRoleAdmin   = "admin"
)

type Noodle struct {
	Id         string
	Name       string
	Proto      string
	Src        string
	ListenPort int
	DestPort   int
	DestHost   string
	Expiration time.Duration
	IsUp       bool
	CreatedBy  string
}

type User struct {
	Id           string
	Username     string
	Role         string
	PasswordHash string
	CreatedAt    time.Time
}
