first commit

This commit is contained in:
2025-05-10 20:35:16 +03:30
commit 7f567a7adb
9 changed files with 181 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
package models
type Post struct {
ID string `json:"id" gorm:"primaryKey"`
Url string `json:"url"`
AccountID string // Foreign key field (must match Account.AccId)
Account Account `json:"account" gorm:"foreignKey:AccountID;references:AccId"`
Attachments []MediaAttachment `json:"media_attachments" gorm:"foreignKey:PostID;references:ID"`
}