mirror of
https://github.com/1f349/violet.git
synced 2024-11-22 03:11:44 +00:00
45 lines
1.0 KiB
Go
45 lines
1.0 KiB
Go
// Code generated by sqlc. DO NOT EDIT.
|
|
// versions:
|
|
// sqlc v1.25.0
|
|
|
|
package database
|
|
|
|
import (
|
|
"database/sql"
|
|
|
|
"github.com/1f349/violet/target"
|
|
)
|
|
|
|
type Domain struct {
|
|
ID int64 `json:"id"`
|
|
Domain string `json:"domain"`
|
|
Active bool `json:"active"`
|
|
}
|
|
|
|
type Favicon struct {
|
|
ID int64 `json:"id"`
|
|
Host string `json:"host"`
|
|
Svg sql.NullString `json:"svg"`
|
|
Png sql.NullString `json:"png"`
|
|
Ico sql.NullString `json:"ico"`
|
|
}
|
|
|
|
type Redirect struct {
|
|
ID int64 `json:"id"`
|
|
Source string `json:"source"`
|
|
Destination string `json:"destination"`
|
|
Description string `json:"description"`
|
|
Flags target.Flags `json:"flags"`
|
|
Code int64 `json:"code"`
|
|
Active bool `json:"active"`
|
|
}
|
|
|
|
type Route struct {
|
|
ID int64 `json:"id"`
|
|
Source string `json:"source"`
|
|
Destination string `json:"destination"`
|
|
Description string `json:"description"`
|
|
Flags target.Flags `json:"flags"`
|
|
Active bool `json:"active"`
|
|
}
|