Files
authorizer/server/db/models/env.go

14 lines
664 B
Go
Raw Permalink Normal View History

2022-01-21 12:18:07 +05:30
package models
2022-04-21 12:36:22 +05:30
// Note: any change here should be reflected in providers/casandra/provider.go as it does not have model support in collection creation
2022-01-21 12:18:07 +05:30
// Env model for db
type Env struct {
2022-03-19 17:41:27 +05:30
Key string `json:"_key,omitempty" bson:"_key,omitempty" cql:"_key,omitempty"` // for arangodb
ID string `gorm:"primaryKey;type:char(36)" json:"_id" bson:"_id" cql:"id"`
EnvData string `gorm:"type:text" json:"env" bson:"env" cql:"env"`
Hash string `gorm:"type:text" json:"hash" bson:"hash" cql:"hash"`
UpdatedAt int64 `json:"updated_at" bson:"updated_at" cql:"updated_at"`
CreatedAt int64 `json:"created_at" bson:"created_at" cql:"created_at"`
2022-01-21 12:18:07 +05:30
}