summaryrefslogtreecommitdiff
path: root/models/db.go
blob: 24bef411ff2cf8581ca7687056004b1616d9c3ac (plain)
1
2
3
4
5
6
7
8
9
10
11
package models

import "time"

type Chat struct {
	ID        uint32    `db:"id" json:"id"`
	Name      string    `db:"name" json:"name"`
	Msgs      string    `db:"msgs" json:"msgs"` // []MessagesStory to string json
	CreatedAt time.Time `db:"created_at" json:"created_at"`
	UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
}