First table is working
This commit is contained in:
+5
-40
@@ -1,44 +1,9 @@
|
||||
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
|
||||
Id string `json:"id"`
|
||||
OwnerId string `json:"ownerId"`
|
||||
Title string `json:"title"`
|
||||
Description string `json:"description"`
|
||||
Tags []string `json:"tags"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user