TP-5555 | account provision

This commit is contained in:
varnit goyal
2024-11-29 16:20:01 +05:30
parent 09b2c9a88f
commit c04e0a9157
12 changed files with 115 additions and 39 deletions

View File

@@ -1,18 +1,21 @@
package db
import (
"github.com/lib/pq"
"time"
)
type Project struct {
ID int `json:"id" gorm:"autoIncrement:true"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
DeletedAt time.Time `json:"deletedAt"`
ProjectReferenceId string `json:"projectReferenceId" gorm:"primaryKey"`
Name string `json:"name" gorm:"unique"`
Team string `json:"team"`
Icon string `json:"icon"`
GithubUrl string `json:"githubUrl"`
Secret string `json:"secret"`
ID int `json:"id" gorm:"autoIncrement:true"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
DeletedAt time.Time `json:"deletedAt"`
ProjectReferenceId string `json:"projectReferenceId" gorm:"primaryKey"`
Name string `json:"name" gorm:"unique"`
Team string `json:"team"`
Icon string `json:"icon"`
GithubUrl string `json:"githubUrl"`
Secret string `json:"secret"`
IgnorePatterns pq.StringArray `gorm:"type:text[]"`
Account string `json:"account"`
}