phase 2 testing complete
This commit is contained in:
@@ -3,13 +3,13 @@ package models
|
||||
import "time"
|
||||
|
||||
type FederationActor struct {
|
||||
ID int64 `xorm:"pk autoincr" json:"id"`
|
||||
UserID int64 `xorm:"notnull unique index" json:"userId"`
|
||||
APID string `xorm:"notnull unique varchar(500)" json:"apId"`
|
||||
InboxURL string `xorm:"notnull varchar(500)" json:"inboxUrl"`
|
||||
OutboxURL string `xorm:"notnull varchar(500)" json:"outboxUrl"`
|
||||
PublicKey string `xorm:"text notnull" json:"publicKey"`
|
||||
PrivateKey string `xorm:"text notnull" json:"-"`
|
||||
CreatedAt time.Time `xorm:"created" json:"createdAt"`
|
||||
UpdatedAt time.Time `xorm:"updated" json:"updatedAt"`
|
||||
ID int64 `xorm:"'id' pk autoincr" json:"id"`
|
||||
UserID int64 `xorm:"'user_id' notnull unique index" json:"userId"`
|
||||
APID string `xorm:"'ap_id' notnull unique varchar(500)" json:"apId"`
|
||||
InboxURL string `xorm:"'inbox_url' notnull varchar(500)" json:"inboxUrl"`
|
||||
OutboxURL string `xorm:"'outbox_url' notnull varchar(500)" json:"outboxUrl"`
|
||||
PublicKey string `xorm:"'public_key' text notnull" json:"publicKey"`
|
||||
PrivateKey string `xorm:"'private_key' text notnull" json:"-"`
|
||||
CreatedAt time.Time `xorm:"'created_at' created" json:"createdAt"`
|
||||
UpdatedAt time.Time `xorm:"'updated_at' updated" json:"updatedAt"`
|
||||
}
|
||||
|
||||
+10
-10
@@ -11,14 +11,14 @@ const (
|
||||
)
|
||||
|
||||
type PullRequest struct {
|
||||
ID int64 `xorm:"pk autoincr" json:"id"`
|
||||
RepoID int64 `xorm:"notnull index" json:"repoId"`
|
||||
AuthorID int64 `xorm:"notnull index" json:"authorId"`
|
||||
Title string `xorm:"notnull varchar(255)" json:"title"`
|
||||
Body string `xorm:"text" json:"body"`
|
||||
SourceBranch string `xorm:"notnull varchar(255)" json:"sourceBranch"`
|
||||
TargetBranch string `xorm:"default 'main' varchar(255)" json:"targetBranch"`
|
||||
Status PRStatus `xorm:"default 'open' varchar(16)" json:"status"`
|
||||
CreatedAt time.Time `xorm:"created" json:"createdAt"`
|
||||
UpdatedAt time.Time `xorm:"updated" json:"updatedAt"`
|
||||
ID int64 `xorm:"'id' pk autoincr" json:"id"`
|
||||
RepoID int64 `xorm:"'repo_id' notnull index" json:"repoId"`
|
||||
AuthorID int64 `xorm:"'author_id' notnull index" json:"authorId"`
|
||||
Title string `xorm:"'title' notnull varchar(255)" json:"title"`
|
||||
Body string `xorm:"'body' text" json:"body"`
|
||||
SourceBranch string `xorm:"'source_branch' notnull varchar(255)" json:"sourceBranch"`
|
||||
TargetBranch string `xorm:"'target_branch' default 'main' varchar(255)" json:"targetBranch"`
|
||||
Status PRStatus `xorm:"'status' default 'open' varchar(16)" json:"status"`
|
||||
CreatedAt time.Time `xorm:"'created_at' created" json:"createdAt"`
|
||||
UpdatedAt time.Time `xorm:"'updated_at' updated" json:"updatedAt"`
|
||||
}
|
||||
|
||||
@@ -3,13 +3,13 @@ package models
|
||||
import "time"
|
||||
|
||||
type Repository struct {
|
||||
ID int64 `xorm:"pk autoincr" json:"id"`
|
||||
OwnerID int64 `xorm:"notnull index" json:"ownerId"`
|
||||
Name string `xorm:"notnull varchar(100)" json:"name"`
|
||||
Description string `xorm:"varchar(500)" json:"description"`
|
||||
IsPrivate bool `xorm:"default false" json:"isPrivate"`
|
||||
DefaultBranch string `xorm:"default 'main' varchar(255)" json:"defaultBranch"`
|
||||
DiskPath string `xorm:"notnull" json:"-"`
|
||||
CreatedAt time.Time `xorm:"created" json:"createdAt"`
|
||||
UpdatedAt time.Time `xorm:"updated" json:"updatedAt"`
|
||||
ID int64 `xorm:"'id' pk autoincr" json:"id"`
|
||||
OwnerID int64 `xorm:"'owner_id' notnull index" json:"ownerId"`
|
||||
Name string `xorm:"'name' notnull varchar(100)" json:"name"`
|
||||
Description string `xorm:"'description' varchar(500)" json:"description"`
|
||||
IsPrivate bool `xorm:"'is_private' default false" json:"isPrivate"`
|
||||
DefaultBranch string `xorm:"'default_branch' default 'main' varchar(255)" json:"defaultBranch"`
|
||||
DiskPath string `xorm:"'disk_path' notnull" json:"-"`
|
||||
CreatedAt time.Time `xorm:"'created_at' created" json:"createdAt"`
|
||||
UpdatedAt time.Time `xorm:"'updated_at' updated" json:"updatedAt"`
|
||||
}
|
||||
|
||||
@@ -3,12 +3,12 @@ package models
|
||||
import "time"
|
||||
|
||||
type User struct {
|
||||
ID int64 `xorm:"pk autoincr" json:"id"`
|
||||
Username string `xorm:"unique notnull varchar(64)" json:"username"`
|
||||
Email string `xorm:"unique notnull varchar(255)" json:"email"`
|
||||
PasswordHash string `xorm:"notnull" json:"-"`
|
||||
AvatarURL string `xorm:"varchar(500)"`
|
||||
IsAdmin bool `xorm:"default false" json:"isAdmin"`
|
||||
CreatedAt time.Time `xorm:"created" json:"createdAt"`
|
||||
UpdatedAt time.Time `xorm:"updated" json:"updatedAt"`
|
||||
ID int64 `xorm:"'id' pk autoincr" json:"id"`
|
||||
Username string `xorm:"'username' unique notnull varchar(64)" json:"username"`
|
||||
Email string `xorm:"'email' unique notnull varchar(255)" json:"email"`
|
||||
PasswordHash string `xorm:"'password_hash' notnull" json:"-"`
|
||||
AvatarURL string `xorm:"'avatar_url' varchar(500)" json:"avatarUrl"`
|
||||
IsAdmin bool `xorm:"'is_admin' default false" json:"isAdmin"`
|
||||
CreatedAt time.Time `xorm:"'created_at' created" json:"createdAt"`
|
||||
UpdatedAt time.Time `xorm:"'updated_at' updated" json:"updatedAt"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user