You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1019 B
Go
45 lines
1019 B
Go
2 years ago
|
package model
|
||
|
|
||
|
import "time"
|
||
|
|
||
|
// Tables
|
||
|
|
||
|
type Dispensa struct {
|
||
|
// Id is a unique identifier of this object
|
||
|
Id string
|
||
|
// CreatedAt is the time of creation of this object
|
||
|
CreatedAt time.Time
|
||
|
// Title of this dispensa
|
||
|
Title string
|
||
|
// Description of this dispensa
|
||
|
Description string
|
||
|
// Tags for this dispensa, used by search to easily categorize dispense
|
||
|
Tags string
|
||
|
}
|
||
|
|
||
|
// Upload represents a file identified by its hash and stored in the appunti content store
|
||
|
type Upload struct {
|
||
|
// Id is a unique identifier of this object
|
||
|
Id string
|
||
|
// CreatedAt is the time of creation of this object
|
||
|
CreatedAt time.Time
|
||
|
// Hash of this file
|
||
|
Hash string
|
||
|
}
|
||
|
|
||
|
// ApprovedHash represents an approved hash
|
||
|
type ApprovedHash struct {
|
||
|
// Hash being approved
|
||
|
Hash string
|
||
|
// CreatedAt is the creation time of this object
|
||
|
CreatedAt time.Time
|
||
|
}
|
||
|
|
||
|
// RejectedHash represents a rejected hash
|
||
|
type RejectedHash struct {
|
||
|
// Hash being rejected
|
||
|
Hash string
|
||
|
// CreatedAt is the creation time of this object
|
||
|
CreatedAt time.Time
|
||
|
}
|