James Tombleson
ada453e08a
* updated db, added dto for ListSources, and added delete source * updated from model > models * updated to models * sources now sends back a standard message * updated subscription routes to have beter logid and swagger details * moved the dto objects back to modles given they are not bound to the database * cleaned up how we return the error * cleaned up swag and updated models to take from the base apistatusmodel. less human errors this way * cleaned up swag and updated models * swag updated * updated queue to return a router and also renamed it as it will hold all queue info later on * removed config tag * added subscription details route * article routes have been moved to support dto * updated discordwebhooks to use dto * updated discordwebhookqueue to return details on the items via dto * removed the example routes * updated sources to use dto * subscriptions moved to dto * generated swag
74 lines
1.1 KiB
Go
74 lines
1.1 KiB
Go
// Code generated by sqlc. DO NOT EDIT.
|
|
// versions:
|
|
// sqlc v1.16.0
|
|
|
|
package database
|
|
|
|
import (
|
|
"database/sql"
|
|
"time"
|
|
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
type Article struct {
|
|
ID uuid.UUID
|
|
Sourceid uuid.UUID
|
|
Tags string
|
|
Title string
|
|
Url string
|
|
Pubdate time.Time
|
|
Video sql.NullString
|
|
Videoheight int32
|
|
Videowidth int32
|
|
Thumbnail string
|
|
Description string
|
|
Authorname sql.NullString
|
|
Authorimage sql.NullString
|
|
}
|
|
|
|
type Discordqueue struct {
|
|
ID uuid.UUID
|
|
Articleid uuid.UUID
|
|
}
|
|
|
|
type Discordwebhook struct {
|
|
ID uuid.UUID
|
|
Url string
|
|
Server string
|
|
Channel string
|
|
Enabled bool
|
|
}
|
|
|
|
type Icon struct {
|
|
ID uuid.UUID
|
|
Filename string
|
|
Site string
|
|
}
|
|
|
|
type Setting struct {
|
|
ID uuid.UUID
|
|
Key string
|
|
Value string
|
|
Options sql.NullString
|
|
}
|
|
|
|
type Source struct {
|
|
ID uuid.UUID
|
|
Site string
|
|
Name string
|
|
Source string
|
|
Type string
|
|
Value sql.NullString
|
|
Enabled bool
|
|
Url string
|
|
Tags string
|
|
Deleted sql.NullBool
|
|
}
|
|
|
|
type Subscription struct {
|
|
ID uuid.UUID
|
|
Discordwebhookid uuid.UUID
|
|
Sourceid uuid.UUID
|
|
}
|