31 lines
1.2 KiB
Go
Executable File
31 lines
1.2 KiB
Go
Executable File
package model
|
|
|
|
import "time"
|
|
|
|
// CompanyFolder 公司信息文件夹
|
|
type CompanyFolder struct {
|
|
ID uint `gorm:"primaryKey" json:"id"`
|
|
Name string `gorm:"size:100;not null" json:"name"`
|
|
Description string `gorm:"size:500" json:"description"`
|
|
Category string `gorm:"size:50" json:"category"`
|
|
CreateTime time.Time `json:"createTime"`
|
|
UpdateTime time.Time `json:"updateTime"`
|
|
|
|
Files []CompanyFile `gorm:"foreignKey:FolderID" json:"files"`
|
|
}
|
|
|
|
// CompanyFile 公司文件(营业执照、开票信息等)
|
|
type CompanyFile struct {
|
|
ID uint `gorm:"primaryKey" json:"id"`
|
|
FolderID uint `gorm:"index" json:"folderId"`
|
|
FileName string `gorm:"size:255;not null" json:"fileName"`
|
|
FileType string `gorm:"size:50" json:"fileType"`
|
|
FileSize int64 `json:"fileSize"`
|
|
UploadTime time.Time `json:"uploadTime"`
|
|
CompanyName string `gorm:"size:100" json:"companyName"`
|
|
FileCategory string `gorm:"size:50" json:"fileCategory"` // license, tax, organization, bank, invoice, charter, legal, other
|
|
ExpireDate *time.Time `json:"expireDate"`
|
|
Description string `gorm:"size:500" json:"description"`
|
|
FileURL string `gorm:"size:500" json:"fileUrl"`
|
|
}
|