snapshot of https://github.com/cortezaproject/corteza.git (2024.9.x, 2026-09-18; blobs > 131072B omitted)
Some checks failed
SonarQube / SonarQube (push) Failing after 5m28s
E2e test on main branch push / server and client test (map[name:admin port:8080]) (push) Failing after 3m33s
Server and lib tests / Library test (js) (push) Failing after 1m36s
Server and lib tests / Library test (vue) (push) Successful in 2m24s
Server and lib tests / Web client test (admin) (push) Successful in 2m52s
Server and lib tests / Web client test (compose) (push) Successful in 3m23s
Server and lib tests / Web client test (discovery) (push) Successful in 2m49s
Server and lib tests / Web client test (one) (push) Successful in 2m52s
Server and lib tests / Web client test (privacy) (push) Successful in 2m44s
Server and lib tests / Web client test (reporter) (push) Successful in 2m56s
Server and lib tests / Web client test (workflow) (push) Successful in 3m0s
Server and lib tests / Server tests (push) Failing after 4m55s
E2e test on main branch push / notify-failure (push) Failing after 9s
Server and lib tests / Send matrix testing notification (push) Successful in 2s
Mark stale issues and pull requests / stale (push) Successful in 40s
Some checks failed
SonarQube / SonarQube (push) Failing after 5m28s
E2e test on main branch push / server and client test (map[name:admin port:8080]) (push) Failing after 3m33s
Server and lib tests / Library test (js) (push) Failing after 1m36s
Server and lib tests / Library test (vue) (push) Successful in 2m24s
Server and lib tests / Web client test (admin) (push) Successful in 2m52s
Server and lib tests / Web client test (compose) (push) Successful in 3m23s
Server and lib tests / Web client test (discovery) (push) Successful in 2m49s
Server and lib tests / Web client test (one) (push) Successful in 2m52s
Server and lib tests / Web client test (privacy) (push) Successful in 2m44s
Server and lib tests / Web client test (reporter) (push) Successful in 2m56s
Server and lib tests / Web client test (workflow) (push) Successful in 3m0s
Server and lib tests / Server tests (push) Failing after 4m55s
E2e test on main branch push / notify-failure (push) Failing after 9s
Server and lib tests / Send matrix testing notification (push) Successful in 2s
Mark stale issues and pull requests / stale (push) Successful in 40s
This commit is contained in:
466
server/system/model/corteza.gen.go
generated
Normal file
466
server/system/model/corteza.gen.go
generated
Normal file
@@ -0,0 +1,466 @@
|
||||
package model
|
||||
|
||||
// This file is auto-generated.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
//
|
||||
|
||||
import (
|
||||
discoverytype "github.com/cortezaproject/corteza/server/discovery/types"
|
||||
actionlogtype "github.com/cortezaproject/corteza/server/pkg/actionlog"
|
||||
"github.com/cortezaproject/corteza/server/pkg/dal"
|
||||
flagtype "github.com/cortezaproject/corteza/server/pkg/flag/types"
|
||||
labelstype "github.com/cortezaproject/corteza/server/pkg/label/types"
|
||||
rbactype "github.com/cortezaproject/corteza/server/pkg/rbac"
|
||||
)
|
||||
|
||||
var Action = &dal.Model{
|
||||
Ident: "actionlog",
|
||||
ResourceType: actionlogtype.ActionResourceType,
|
||||
|
||||
Attributes: dal.AttributeSet{
|
||||
&dal.Attribute{
|
||||
Ident: "ID",
|
||||
Type: &dal.TypeID{},
|
||||
Store: &dal.CodecAlias{Ident: "id"},
|
||||
},
|
||||
|
||||
&dal.Attribute{
|
||||
Ident: "Timestamp", Sortable: true,
|
||||
Type: &dal.TypeTimestamp{Timezone: true, Precision: -1},
|
||||
Store: &dal.CodecAlias{Ident: "ts"},
|
||||
},
|
||||
|
||||
&dal.Attribute{
|
||||
Ident: "ActorIPAddr",
|
||||
Type: &dal.TypeText{Length: 64},
|
||||
Store: &dal.CodecAlias{Ident: "actor_ip_addr"},
|
||||
},
|
||||
|
||||
&dal.Attribute{
|
||||
Ident: "ActorID",
|
||||
Type: &dal.TypeRef{
|
||||
RefAttribute: "id",
|
||||
RefModel: &dal.ModelRef{
|
||||
ResourceType: "corteza::system:user",
|
||||
},
|
||||
},
|
||||
Store: &dal.CodecAlias{Ident: "actor_id"},
|
||||
},
|
||||
|
||||
&dal.Attribute{
|
||||
Ident: "RequestOrigin",
|
||||
Type: &dal.TypeText{Length: 32},
|
||||
Store: &dal.CodecAlias{Ident: "request_origin"},
|
||||
},
|
||||
|
||||
&dal.Attribute{
|
||||
Ident: "RequestID",
|
||||
Type: &dal.TypeText{Length: 256},
|
||||
Store: &dal.CodecAlias{Ident: "request_id"},
|
||||
},
|
||||
|
||||
&dal.Attribute{
|
||||
Ident: "Resource",
|
||||
Type: &dal.TypeText{Length: 512},
|
||||
Store: &dal.CodecAlias{Ident: "resource"},
|
||||
},
|
||||
|
||||
&dal.Attribute{
|
||||
Ident: "Action",
|
||||
Type: &dal.TypeText{Length: 64},
|
||||
Store: &dal.CodecAlias{Ident: "action"},
|
||||
},
|
||||
|
||||
&dal.Attribute{
|
||||
Ident: "Error",
|
||||
Type: &dal.TypeText{},
|
||||
Store: &dal.CodecAlias{Ident: "error"},
|
||||
},
|
||||
|
||||
&dal.Attribute{
|
||||
Ident: "Severity",
|
||||
Type: &dal.TypeNumber{HasDefault: true,
|
||||
DefaultValue: 0,
|
||||
Precision: -1, Scale: -1, Meta: map[string]interface{}{"rdbms:type": "integer"},
|
||||
},
|
||||
Store: &dal.CodecAlias{Ident: "severity"},
|
||||
},
|
||||
|
||||
&dal.Attribute{
|
||||
Ident: "Description",
|
||||
Type: &dal.TypeText{},
|
||||
Store: &dal.CodecAlias{Ident: "description"},
|
||||
},
|
||||
|
||||
&dal.Attribute{
|
||||
Ident: "Meta",
|
||||
Type: &dal.TypeJSON{
|
||||
DefaultValue: "{}",
|
||||
},
|
||||
Store: &dal.CodecAlias{Ident: "meta"},
|
||||
},
|
||||
},
|
||||
|
||||
Indexes: dal.IndexSet{
|
||||
&dal.Index{
|
||||
Ident: "actionlog_action",
|
||||
Type: "BTREE",
|
||||
|
||||
Fields: []*dal.IndexField{
|
||||
{
|
||||
AttributeIdent: "Action",
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
&dal.Index{
|
||||
Ident: "actionlog_actorId",
|
||||
Type: "BTREE",
|
||||
|
||||
Fields: []*dal.IndexField{
|
||||
{
|
||||
AttributeIdent: "ActorID",
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
&dal.Index{
|
||||
Ident: "PRIMARY",
|
||||
Type: "BTREE",
|
||||
|
||||
Fields: []*dal.IndexField{
|
||||
{
|
||||
AttributeIdent: "ID",
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
&dal.Index{
|
||||
Ident: "actionlog_relResource",
|
||||
Type: "BTREE",
|
||||
|
||||
Fields: []*dal.IndexField{
|
||||
{
|
||||
AttributeIdent: "Resource",
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
&dal.Index{
|
||||
Ident: "actionlog_ts",
|
||||
Type: "BTREE",
|
||||
|
||||
Fields: []*dal.IndexField{
|
||||
{
|
||||
AttributeIdent: "Timestamp",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
var Flag = &dal.Model{
|
||||
Ident: "flags",
|
||||
ResourceType: flagtype.FlagResourceType,
|
||||
|
||||
Attributes: dal.AttributeSet{
|
||||
&dal.Attribute{
|
||||
Ident: "Kind",
|
||||
Type: &dal.TypeText{Length: 64},
|
||||
Store: &dal.CodecAlias{Ident: "kind"},
|
||||
},
|
||||
|
||||
&dal.Attribute{
|
||||
Ident: "ResourceID",
|
||||
Type: &dal.TypeID{},
|
||||
Store: &dal.CodecAlias{Ident: "rel_resource"},
|
||||
},
|
||||
|
||||
&dal.Attribute{
|
||||
Ident: "OwnedBy",
|
||||
Type: &dal.TypeRef{HasDefault: true,
|
||||
DefaultValue: 0,
|
||||
|
||||
RefAttribute: "id",
|
||||
RefModel: &dal.ModelRef{
|
||||
ResourceType: "corteza::system:user",
|
||||
},
|
||||
},
|
||||
Store: &dal.CodecAlias{Ident: "owned_by"},
|
||||
},
|
||||
|
||||
&dal.Attribute{
|
||||
Ident: "Name",
|
||||
Type: &dal.TypeText{Length: 512},
|
||||
Store: &dal.CodecAlias{Ident: "name"},
|
||||
},
|
||||
|
||||
&dal.Attribute{
|
||||
Ident: "Active",
|
||||
Type: &dal.TypeBoolean{},
|
||||
Store: &dal.CodecAlias{Ident: "active"},
|
||||
},
|
||||
},
|
||||
|
||||
Indexes: dal.IndexSet{
|
||||
&dal.Index{
|
||||
Ident: "PRIMARY",
|
||||
Type: "BTREE",
|
||||
|
||||
Fields: []*dal.IndexField{
|
||||
{
|
||||
AttributeIdent: "Kind",
|
||||
},
|
||||
|
||||
{
|
||||
AttributeIdent: "ResourceID",
|
||||
},
|
||||
|
||||
{
|
||||
AttributeIdent: "OwnedBy",
|
||||
},
|
||||
|
||||
{
|
||||
AttributeIdent: "Name",
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
&dal.Index{
|
||||
Ident: "flags_uniqueKindResOwnerName",
|
||||
Type: "BTREE",
|
||||
Unique: true,
|
||||
|
||||
Fields: []*dal.IndexField{
|
||||
{
|
||||
AttributeIdent: "Kind",
|
||||
},
|
||||
|
||||
{
|
||||
AttributeIdent: "ResourceID",
|
||||
},
|
||||
|
||||
{
|
||||
AttributeIdent: "OwnedBy",
|
||||
},
|
||||
|
||||
{
|
||||
AttributeIdent: "Name",
|
||||
Modifiers: []dal.IndexFieldModifier{"LOWERCASE"},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
var Label = &dal.Model{
|
||||
Ident: "labels",
|
||||
ResourceType: labelstype.LabelResourceType,
|
||||
|
||||
Attributes: dal.AttributeSet{
|
||||
&dal.Attribute{
|
||||
Ident: "Kind",
|
||||
Type: &dal.TypeText{Length: 64},
|
||||
Store: &dal.CodecAlias{Ident: "kind"},
|
||||
},
|
||||
|
||||
&dal.Attribute{
|
||||
Ident: "ResourceID",
|
||||
Type: &dal.TypeID{},
|
||||
Store: &dal.CodecAlias{Ident: "rel_resource"},
|
||||
},
|
||||
|
||||
&dal.Attribute{
|
||||
Ident: "Name",
|
||||
Type: &dal.TypeText{Length: 512},
|
||||
Store: &dal.CodecAlias{Ident: "name"},
|
||||
},
|
||||
|
||||
&dal.Attribute{
|
||||
Ident: "Value",
|
||||
Type: &dal.TypeJSON{},
|
||||
Store: &dal.CodecAlias{Ident: "value"},
|
||||
},
|
||||
},
|
||||
|
||||
Indexes: dal.IndexSet{
|
||||
&dal.Index{
|
||||
Ident: "PRIMARY",
|
||||
Type: "BTREE",
|
||||
|
||||
Fields: []*dal.IndexField{
|
||||
{
|
||||
AttributeIdent: "Kind",
|
||||
},
|
||||
|
||||
{
|
||||
AttributeIdent: "ResourceID",
|
||||
},
|
||||
|
||||
{
|
||||
AttributeIdent: "Name",
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
&dal.Index{
|
||||
Ident: "labels_uniqueKindResName",
|
||||
Type: "BTREE",
|
||||
Unique: true,
|
||||
|
||||
Fields: []*dal.IndexField{
|
||||
{
|
||||
AttributeIdent: "Kind",
|
||||
},
|
||||
|
||||
{
|
||||
AttributeIdent: "ResourceID",
|
||||
},
|
||||
|
||||
{
|
||||
AttributeIdent: "Name",
|
||||
Modifiers: []dal.IndexFieldModifier{"LOWERCASE"},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
var ResourceActivity = &dal.Model{
|
||||
Ident: "resource_activity_log",
|
||||
ResourceType: discoverytype.ResourceActivityResourceType,
|
||||
|
||||
Attributes: dal.AttributeSet{
|
||||
&dal.Attribute{
|
||||
Ident: "ID",
|
||||
Type: &dal.TypeID{},
|
||||
Store: &dal.CodecAlias{Ident: "id"},
|
||||
},
|
||||
|
||||
&dal.Attribute{
|
||||
Ident: "Timestamp", Sortable: true,
|
||||
Type: &dal.TypeTimestamp{Timezone: true, Precision: -1},
|
||||
Store: &dal.CodecAlias{Ident: "ts"},
|
||||
},
|
||||
|
||||
&dal.Attribute{
|
||||
Ident: "ResourceType",
|
||||
Type: &dal.TypeText{},
|
||||
Store: &dal.CodecAlias{Ident: "resource_type"},
|
||||
},
|
||||
|
||||
&dal.Attribute{
|
||||
Ident: "ResourceAction",
|
||||
Type: &dal.TypeText{},
|
||||
Store: &dal.CodecAlias{Ident: "resource_action"},
|
||||
},
|
||||
|
||||
&dal.Attribute{
|
||||
Ident: "ResourceID",
|
||||
Type: &dal.TypeID{},
|
||||
Store: &dal.CodecAlias{Ident: "rel_resource"},
|
||||
},
|
||||
|
||||
&dal.Attribute{
|
||||
Ident: "Meta",
|
||||
Type: &dal.TypeJSON{
|
||||
DefaultValue: "{}",
|
||||
},
|
||||
Store: &dal.CodecAlias{Ident: "meta"},
|
||||
},
|
||||
},
|
||||
|
||||
Indexes: dal.IndexSet{
|
||||
&dal.Index{
|
||||
Ident: "PRIMARY",
|
||||
Type: "BTREE",
|
||||
|
||||
Fields: []*dal.IndexField{
|
||||
{
|
||||
AttributeIdent: "ID",
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
&dal.Index{
|
||||
Ident: "resource_activity_log_resource",
|
||||
Type: "BTREE",
|
||||
|
||||
Fields: []*dal.IndexField{
|
||||
{
|
||||
AttributeIdent: "ResourceID",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
var Rule = &dal.Model{
|
||||
Ident: "rbac_rules",
|
||||
ResourceType: rbactype.RuleResourceType,
|
||||
|
||||
Attributes: dal.AttributeSet{
|
||||
&dal.Attribute{
|
||||
Ident: "RoleID",
|
||||
Type: &dal.TypeRef{
|
||||
RefAttribute: "id",
|
||||
RefModel: &dal.ModelRef{
|
||||
ResourceType: "corteza::system:role",
|
||||
},
|
||||
},
|
||||
Store: &dal.CodecAlias{Ident: "rel_role"},
|
||||
},
|
||||
|
||||
&dal.Attribute{
|
||||
Ident: "Resource",
|
||||
Type: &dal.TypeText{Length: 512},
|
||||
Store: &dal.CodecAlias{Ident: "resource"},
|
||||
},
|
||||
|
||||
&dal.Attribute{
|
||||
Ident: "Operation",
|
||||
Type: &dal.TypeText{Length: 50},
|
||||
Store: &dal.CodecAlias{Ident: "operation"},
|
||||
},
|
||||
|
||||
&dal.Attribute{
|
||||
Ident: "Access",
|
||||
Type: &dal.TypeNumber{Precision: -1, Scale: -1, Meta: map[string]interface{}{"rdbms:type": "integer"}},
|
||||
Store: &dal.CodecAlias{Ident: "access"},
|
||||
},
|
||||
},
|
||||
|
||||
Indexes: dal.IndexSet{
|
||||
&dal.Index{
|
||||
Ident: "PRIMARY",
|
||||
Type: "BTREE",
|
||||
|
||||
Fields: []*dal.IndexField{
|
||||
{
|
||||
AttributeIdent: "RoleID",
|
||||
},
|
||||
|
||||
{
|
||||
AttributeIdent: "Resource",
|
||||
},
|
||||
|
||||
{
|
||||
AttributeIdent: "Operation",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
func init() {
|
||||
models = append(
|
||||
models,
|
||||
Action,
|
||||
Flag,
|
||||
Label,
|
||||
ResourceActivity,
|
||||
Rule,
|
||||
)
|
||||
}
|
||||
26
server/system/model/init.gen.go
generated
Normal file
26
server/system/model/init.gen.go
generated
Normal file
@@ -0,0 +1,26 @@
|
||||
package model
|
||||
|
||||
// This file is auto-generated.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
//
|
||||
|
||||
import (
|
||||
"context"
|
||||
"github.com/cortezaproject/corteza/server/pkg/dal"
|
||||
)
|
||||
|
||||
type (
|
||||
modelReplacer interface {
|
||||
ReplaceModel(ctx context.Context, model *dal.Model) (err error)
|
||||
}
|
||||
)
|
||||
|
||||
var (
|
||||
models []*dal.Model
|
||||
)
|
||||
|
||||
func Models() dal.ModelSet {
|
||||
return models
|
||||
}
|
||||
2908
server/system/model/models.gen.go
generated
Normal file
2908
server/system/model/models.gen.go
generated
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user