A locally focused bluesky appview
1package models
2
3import (
4 "time"
5
6 "github.com/whyrusleeping/market/models"
7 "gorm.io/gorm"
8)
9
10type Repo = models.Repo
11type Post = models.Post
12type Follow = models.Follow
13type Block = models.Block
14type Repost = models.Repost
15type List = models.List
16type ListItem = models.ListItem
17type ListBlock = models.ListBlock
18type Profile = models.Profile
19type ThreadGate = models.ThreadGate
20type FeedGenerator = models.FeedGenerator
21type Image = models.Image
22type PostGate = models.PostGate
23type StarterPack = models.StarterPack
24
25type Like struct {
26 ID uint `gorm:"primarykey"`
27 Created time.Time
28 Indexed time.Time
29 Author uint `gorm:"uniqueIndex:idx_likes_rkeyauthor"`
30 Rkey string `gorm:"uniqueIndex:idx_likes_rkeyauthor"`
31 Subject uint
32 Cid string
33}
34
35type Notification struct {
36 gorm.Model
37 For uint
38
39 Author uint
40 Source string
41 SourceCid string
42 Kind string
43}
44
45type SequenceTracker struct {
46 ID uint `gorm:"primarykey"`
47 Key string `gorm:"uniqueIndex"`
48 IntVal int64
49}
50
51type NotificationSeen struct {
52 Repo uint `gorm:"uniqueindex"`
53 SeenAt time.Time
54}