2023-09-18 23:57:18 +00:00
|
|
|
// Code generated by sqlc. DO NOT EDIT.
|
|
|
|
// versions:
|
|
|
|
// sqlc v1.21.0
|
|
|
|
|
|
|
|
package database
|
|
|
|
|
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Activity struct {
|
2023-10-03 11:37:14 +00:00
|
|
|
ID int64 `json:"id"`
|
|
|
|
UserID string `json:"user_id"`
|
|
|
|
DocumentID string `json:"document_id"`
|
|
|
|
DeviceID string `json:"device_id"`
|
|
|
|
StartTime time.Time `json:"start_time"`
|
|
|
|
Duration int64 `json:"duration"`
|
|
|
|
Page int64 `json:"page"`
|
|
|
|
Pages int64 `json:"pages"`
|
|
|
|
CreatedAt time.Time `json:"created_at"`
|
2023-09-18 23:57:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type Device struct {
|
2023-09-27 22:58:47 +00:00
|
|
|
ID string `json:"id"`
|
|
|
|
UserID string `json:"user_id"`
|
|
|
|
DeviceName string `json:"device_name"`
|
|
|
|
CreatedAt string `json:"created_at"`
|
|
|
|
Sync bool `json:"sync"`
|
2023-09-18 23:57:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type Document struct {
|
|
|
|
ID string `json:"id"`
|
|
|
|
Md5 *string `json:"md5"`
|
|
|
|
Filepath *string `json:"filepath"`
|
2023-09-23 18:14:57 +00:00
|
|
|
Coverfile *string `json:"coverfile"`
|
2023-09-18 23:57:18 +00:00
|
|
|
Title *string `json:"title"`
|
|
|
|
Author *string `json:"author"`
|
|
|
|
Series *string `json:"series"`
|
|
|
|
SeriesIndex *int64 `json:"series_index"`
|
|
|
|
Lang *string `json:"lang"`
|
|
|
|
Description *string `json:"description"`
|
2023-10-01 23:17:22 +00:00
|
|
|
Words *int64 `json:"words"`
|
2023-09-23 18:14:57 +00:00
|
|
|
Gbid *string `json:"gbid"`
|
2023-09-18 23:57:18 +00:00
|
|
|
Olid *string `json:"-"`
|
2023-09-23 18:14:57 +00:00
|
|
|
Isbn10 *string `json:"isbn10"`
|
|
|
|
Isbn13 *string `json:"isbn13"`
|
2023-09-18 23:57:18 +00:00
|
|
|
Synced bool `json:"-"`
|
|
|
|
Deleted bool `json:"-"`
|
|
|
|
UpdatedAt time.Time `json:"updated_at"`
|
|
|
|
CreatedAt time.Time `json:"created_at"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type DocumentDeviceSync struct {
|
|
|
|
UserID string `json:"user_id"`
|
|
|
|
DocumentID string `json:"document_id"`
|
|
|
|
DeviceID string `json:"device_id"`
|
|
|
|
LastSynced time.Time `json:"last_synced"`
|
|
|
|
Sync bool `json:"sync"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type DocumentProgress struct {
|
|
|
|
UserID string `json:"user_id"`
|
|
|
|
DocumentID string `json:"document_id"`
|
|
|
|
DeviceID string `json:"device_id"`
|
|
|
|
Percentage float64 `json:"percentage"`
|
|
|
|
Progress string `json:"progress"`
|
|
|
|
CreatedAt time.Time `json:"created_at"`
|
|
|
|
}
|
|
|
|
|
2023-09-23 18:14:57 +00:00
|
|
|
type Metadatum struct {
|
|
|
|
ID int64 `json:"id"`
|
|
|
|
DocumentID string `json:"document_id"`
|
|
|
|
Title *string `json:"title"`
|
|
|
|
Author *string `json:"author"`
|
|
|
|
Description *string `json:"description"`
|
|
|
|
Gbid *string `json:"gbid"`
|
|
|
|
Olid *string `json:"olid"`
|
|
|
|
Isbn10 *string `json:"isbn10"`
|
|
|
|
Isbn13 *string `json:"isbn13"`
|
|
|
|
CreatedAt time.Time `json:"created_at"`
|
|
|
|
}
|
|
|
|
|
2023-09-18 23:57:18 +00:00
|
|
|
type RescaledActivity struct {
|
|
|
|
DocumentID string `json:"document_id"`
|
|
|
|
DeviceID string `json:"device_id"`
|
|
|
|
UserID string `json:"user_id"`
|
|
|
|
StartTime time.Time `json:"start_time"`
|
2023-10-03 11:37:14 +00:00
|
|
|
Pages int64 `json:"pages"`
|
2023-09-18 23:57:18 +00:00
|
|
|
Page int64 `json:"page"`
|
|
|
|
Duration int64 `json:"duration"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type User struct {
|
2023-09-21 00:35:01 +00:00
|
|
|
ID string `json:"id"`
|
2023-09-27 22:58:47 +00:00
|
|
|
Pass *string `json:"-"`
|
2023-09-21 00:35:01 +00:00
|
|
|
Admin bool `json:"-"`
|
2023-09-27 22:58:47 +00:00
|
|
|
TimeOffset *string `json:"time_offset"`
|
2023-09-21 00:35:01 +00:00
|
|
|
CreatedAt time.Time `json:"created_at"`
|
2023-09-18 23:57:18 +00:00
|
|
|
}
|