package model import "gorm.io/gorm" type Resource struct { gorm.Model User_id string `gorm:"size:255;not null"` Right_type string `gorm:"size:255;not null"` Resource_name string `gorm:"size:255;not null"` Resource_describe string `gorm:"not null"` Resource_data_hash string `gorm:"not null"` Resource_refer string `gorm:"size:255;not null"` Resource_root string `gorm:"size:255;not null"` Time string `gorm:"not null"` Data_sign string `gorm:"not null"` Resource_uniqueid string `gorm:"not null"` Is_right_confirmation string `gorm:"not null"` }