36 lines
456 B
Go
36 lines
456 B
Go
package database
|
|
|
|
import "time"
|
|
|
|
type Board struct {
|
|
Id int
|
|
Slug string
|
|
Name string
|
|
Tag string
|
|
}
|
|
|
|
type Thread struct {
|
|
Id int
|
|
BoardSlug string
|
|
Subject string
|
|
CreatedAt time.Time
|
|
BumpedAt time.Time
|
|
}
|
|
|
|
type Post struct {
|
|
Id int
|
|
ThreadId int
|
|
Author string
|
|
Body string
|
|
CreatedAt time.Time
|
|
MediaPath string
|
|
ThumbPath string
|
|
IpHash string
|
|
Number int
|
|
}
|
|
|
|
type Admin struct {
|
|
Username string
|
|
Password string
|
|
}
|