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:
26
server/federation/model/init.gen.go
generated
Normal file
26
server/federation/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
|
||||
}
|
||||
508
server/federation/model/models.gen.go
generated
Normal file
508
server/federation/model/models.gen.go
generated
Normal file
@@ -0,0 +1,508 @@
|
||||
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 (
|
||||
"github.com/cortezaproject/corteza/server/federation/types"
|
||||
"github.com/cortezaproject/corteza/server/pkg/dal"
|
||||
)
|
||||
|
||||
var ExposedModule = &dal.Model{
|
||||
Ident: "federation_module_exposed",
|
||||
ResourceType: types.ExposedModuleResourceType,
|
||||
|
||||
Attributes: dal.AttributeSet{
|
||||
&dal.Attribute{
|
||||
Ident: "ID",
|
||||
Type: &dal.TypeID{},
|
||||
Store: &dal.CodecAlias{Ident: "id"},
|
||||
},
|
||||
|
||||
&dal.Attribute{
|
||||
Ident: "Handle",
|
||||
Type: &dal.TypeText{Length: 64},
|
||||
Store: &dal.CodecAlias{Ident: "handle"},
|
||||
},
|
||||
|
||||
&dal.Attribute{
|
||||
Ident: "Name", Sortable: true,
|
||||
Type: &dal.TypeText{},
|
||||
Store: &dal.CodecAlias{Ident: "name"},
|
||||
},
|
||||
|
||||
&dal.Attribute{
|
||||
Ident: "NodeID", Sortable: true,
|
||||
Type: &dal.TypeRef{HasDefault: true,
|
||||
DefaultValue: 0,
|
||||
|
||||
RefAttribute: "id",
|
||||
RefModel: &dal.ModelRef{
|
||||
ResourceType: "corteza::federation:node",
|
||||
},
|
||||
},
|
||||
Store: &dal.CodecAlias{Ident: "rel_node"},
|
||||
},
|
||||
|
||||
&dal.Attribute{
|
||||
Ident: "ComposeModuleID",
|
||||
Type: &dal.TypeID{},
|
||||
Store: &dal.CodecAlias{Ident: "rel_compose_module"},
|
||||
},
|
||||
|
||||
&dal.Attribute{
|
||||
Ident: "ComposeNamespaceID",
|
||||
Type: &dal.TypeID{},
|
||||
Store: &dal.CodecAlias{Ident: "rel_compose_namespace"},
|
||||
},
|
||||
|
||||
&dal.Attribute{
|
||||
Ident: "Fields",
|
||||
Type: &dal.TypeJSON{
|
||||
DefaultValue: "{}",
|
||||
},
|
||||
Store: &dal.CodecAlias{Ident: "fields"},
|
||||
},
|
||||
|
||||
&dal.Attribute{
|
||||
Ident: "CreatedAt", Sortable: true,
|
||||
Type: &dal.TypeTimestamp{
|
||||
DefaultCurrentTimestamp: true, Timezone: true, Precision: -1,
|
||||
},
|
||||
Store: &dal.CodecAlias{Ident: "created_at"},
|
||||
},
|
||||
|
||||
&dal.Attribute{
|
||||
Ident: "UpdatedAt", Sortable: true,
|
||||
Type: &dal.TypeTimestamp{Nullable: true, Timezone: true, Precision: -1},
|
||||
Store: &dal.CodecAlias{Ident: "updated_at"},
|
||||
},
|
||||
|
||||
&dal.Attribute{
|
||||
Ident: "DeletedAt", Sortable: true,
|
||||
Type: &dal.TypeTimestamp{Nullable: true, Timezone: true, Precision: -1},
|
||||
Store: &dal.CodecAlias{Ident: "deleted_at"},
|
||||
},
|
||||
|
||||
&dal.Attribute{
|
||||
Ident: "CreatedBy",
|
||||
Type: &dal.TypeRef{HasDefault: true,
|
||||
DefaultValue: 0,
|
||||
|
||||
RefAttribute: "id",
|
||||
RefModel: &dal.ModelRef{
|
||||
ResourceType: "corteza::system:user",
|
||||
},
|
||||
},
|
||||
Store: &dal.CodecAlias{Ident: "created_by"},
|
||||
},
|
||||
|
||||
&dal.Attribute{
|
||||
Ident: "UpdatedBy",
|
||||
Type: &dal.TypeRef{HasDefault: true,
|
||||
DefaultValue: 0,
|
||||
|
||||
RefAttribute: "id",
|
||||
RefModel: &dal.ModelRef{
|
||||
ResourceType: "corteza::system:user",
|
||||
},
|
||||
},
|
||||
Store: &dal.CodecAlias{Ident: "updated_by"},
|
||||
},
|
||||
|
||||
&dal.Attribute{
|
||||
Ident: "DeletedBy",
|
||||
Type: &dal.TypeRef{HasDefault: true,
|
||||
DefaultValue: 0,
|
||||
|
||||
RefAttribute: "id",
|
||||
RefModel: &dal.ModelRef{
|
||||
ResourceType: "corteza::system:user",
|
||||
},
|
||||
},
|
||||
Store: &dal.CodecAlias{Ident: "deleted_by"},
|
||||
},
|
||||
},
|
||||
|
||||
Indexes: dal.IndexSet{
|
||||
&dal.Index{
|
||||
Ident: "PRIMARY",
|
||||
Type: "BTREE",
|
||||
|
||||
Fields: []*dal.IndexField{
|
||||
{
|
||||
AttributeIdent: "ID",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
var ModuleMapping = &dal.Model{
|
||||
Ident: "federation_module_mapping",
|
||||
ResourceType: types.ModuleMappingResourceType,
|
||||
|
||||
Attributes: dal.AttributeSet{
|
||||
&dal.Attribute{
|
||||
Ident: "NodeID",
|
||||
Type: &dal.TypeID{},
|
||||
Store: &dal.CodecAlias{Ident: "node_id"},
|
||||
},
|
||||
|
||||
&dal.Attribute{
|
||||
Ident: "FederationModuleID", Sortable: true,
|
||||
Type: &dal.TypeID{},
|
||||
Store: &dal.CodecAlias{Ident: "rel_federation_module"},
|
||||
},
|
||||
|
||||
&dal.Attribute{
|
||||
Ident: "ComposeModuleID", Sortable: true,
|
||||
Type: &dal.TypeID{},
|
||||
Store: &dal.CodecAlias{Ident: "rel_compose_module"},
|
||||
},
|
||||
|
||||
&dal.Attribute{
|
||||
Ident: "ComposeNamespaceID", Sortable: true,
|
||||
Type: &dal.TypeID{},
|
||||
Store: &dal.CodecAlias{Ident: "rel_compose_namespace"},
|
||||
},
|
||||
|
||||
&dal.Attribute{
|
||||
Ident: "FieldMapping",
|
||||
Type: &dal.TypeJSON{
|
||||
DefaultValue: "{}",
|
||||
},
|
||||
Store: &dal.CodecAlias{Ident: "field_mapping"},
|
||||
},
|
||||
},
|
||||
|
||||
Indexes: dal.IndexSet{
|
||||
&dal.Index{
|
||||
Ident: "federation_module_mapping_uniqueModuleComposeModule",
|
||||
Type: "BTREE",
|
||||
Unique: true,
|
||||
|
||||
Fields: []*dal.IndexField{
|
||||
{
|
||||
AttributeIdent: "FederationModuleID",
|
||||
},
|
||||
|
||||
{
|
||||
AttributeIdent: "ComposeModuleID",
|
||||
},
|
||||
|
||||
{
|
||||
AttributeIdent: "ComposeNamespaceID",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
var Node = &dal.Model{
|
||||
Ident: "federation_nodes",
|
||||
ResourceType: types.NodeResourceType,
|
||||
|
||||
Attributes: dal.AttributeSet{
|
||||
&dal.Attribute{
|
||||
Ident: "ID",
|
||||
Type: &dal.TypeID{},
|
||||
Store: &dal.CodecAlias{Ident: "id"},
|
||||
},
|
||||
|
||||
&dal.Attribute{
|
||||
Ident: "SharedNodeID", Sortable: true,
|
||||
Type: &dal.TypeID{},
|
||||
Store: &dal.CodecAlias{Ident: "shared_node_id"},
|
||||
},
|
||||
|
||||
&dal.Attribute{
|
||||
Ident: "Name", Sortable: true,
|
||||
Type: &dal.TypeText{},
|
||||
Store: &dal.CodecAlias{Ident: "name"},
|
||||
},
|
||||
|
||||
&dal.Attribute{
|
||||
Ident: "BaseURL", Sortable: true,
|
||||
Type: &dal.TypeText{},
|
||||
Store: &dal.CodecAlias{Ident: "base_url"},
|
||||
},
|
||||
|
||||
&dal.Attribute{
|
||||
Ident: "Status", Sortable: true,
|
||||
Type: &dal.TypeText{},
|
||||
Store: &dal.CodecAlias{Ident: "status"},
|
||||
},
|
||||
|
||||
&dal.Attribute{
|
||||
Ident: "Contact", Sortable: true,
|
||||
Type: &dal.TypeText{},
|
||||
Store: &dal.CodecAlias{Ident: "contact"},
|
||||
},
|
||||
|
||||
&dal.Attribute{
|
||||
Ident: "PairToken",
|
||||
Type: &dal.TypeText{},
|
||||
Store: &dal.CodecAlias{Ident: "pair_token"},
|
||||
},
|
||||
|
||||
&dal.Attribute{
|
||||
Ident: "AuthToken",
|
||||
Type: &dal.TypeText{},
|
||||
Store: &dal.CodecAlias{Ident: "auth_token"},
|
||||
},
|
||||
|
||||
&dal.Attribute{
|
||||
Ident: "CreatedAt", Sortable: true,
|
||||
Type: &dal.TypeTimestamp{
|
||||
DefaultCurrentTimestamp: true, Timezone: true, Precision: -1,
|
||||
},
|
||||
Store: &dal.CodecAlias{Ident: "created_at"},
|
||||
},
|
||||
|
||||
&dal.Attribute{
|
||||
Ident: "UpdatedAt", Sortable: true,
|
||||
Type: &dal.TypeTimestamp{Nullable: true, Timezone: true, Precision: -1},
|
||||
Store: &dal.CodecAlias{Ident: "updated_at"},
|
||||
},
|
||||
|
||||
&dal.Attribute{
|
||||
Ident: "DeletedAt", Sortable: true,
|
||||
Type: &dal.TypeTimestamp{Nullable: true, Timezone: true, Precision: -1},
|
||||
Store: &dal.CodecAlias{Ident: "deleted_at"},
|
||||
},
|
||||
|
||||
&dal.Attribute{
|
||||
Ident: "CreatedBy",
|
||||
Type: &dal.TypeRef{HasDefault: true,
|
||||
DefaultValue: 0,
|
||||
|
||||
RefAttribute: "id",
|
||||
RefModel: &dal.ModelRef{
|
||||
ResourceType: "corteza::system:user",
|
||||
},
|
||||
},
|
||||
Store: &dal.CodecAlias{Ident: "created_by"},
|
||||
},
|
||||
|
||||
&dal.Attribute{
|
||||
Ident: "UpdatedBy",
|
||||
Type: &dal.TypeRef{HasDefault: true,
|
||||
DefaultValue: 0,
|
||||
|
||||
RefAttribute: "id",
|
||||
RefModel: &dal.ModelRef{
|
||||
ResourceType: "corteza::system:user",
|
||||
},
|
||||
},
|
||||
Store: &dal.CodecAlias{Ident: "updated_by"},
|
||||
},
|
||||
|
||||
&dal.Attribute{
|
||||
Ident: "DeletedBy",
|
||||
Type: &dal.TypeRef{HasDefault: true,
|
||||
DefaultValue: 0,
|
||||
|
||||
RefAttribute: "id",
|
||||
RefModel: &dal.ModelRef{
|
||||
ResourceType: "corteza::system:user",
|
||||
},
|
||||
},
|
||||
Store: &dal.CodecAlias{Ident: "deleted_by"},
|
||||
},
|
||||
},
|
||||
|
||||
Indexes: dal.IndexSet{
|
||||
&dal.Index{
|
||||
Ident: "PRIMARY",
|
||||
Type: "BTREE",
|
||||
|
||||
Fields: []*dal.IndexField{
|
||||
{
|
||||
AttributeIdent: "ID",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
var NodeSync = &dal.Model{
|
||||
Ident: "federation_nodes_sync",
|
||||
ResourceType: types.NodeSyncResourceType,
|
||||
|
||||
Attributes: dal.AttributeSet{
|
||||
&dal.Attribute{
|
||||
Ident: "NodeID", Sortable: true,
|
||||
Type: &dal.TypeID{},
|
||||
Store: &dal.CodecAlias{Ident: "rel_node"},
|
||||
},
|
||||
|
||||
&dal.Attribute{
|
||||
Ident: "ModuleID", Sortable: true,
|
||||
Type: &dal.TypeID{},
|
||||
Store: &dal.CodecAlias{Ident: "rel_compose_module"},
|
||||
},
|
||||
|
||||
&dal.Attribute{
|
||||
Ident: "SyncType", Sortable: true,
|
||||
Type: &dal.TypeText{},
|
||||
Store: &dal.CodecAlias{Ident: "sync_type"},
|
||||
},
|
||||
|
||||
&dal.Attribute{
|
||||
Ident: "SyncStatus", Sortable: true,
|
||||
Type: &dal.TypeText{},
|
||||
Store: &dal.CodecAlias{Ident: "sync_status"},
|
||||
},
|
||||
|
||||
&dal.Attribute{
|
||||
Ident: "TimeOfAction", Sortable: true,
|
||||
Type: &dal.TypeTimestamp{Timezone: true, Precision: -1},
|
||||
Store: &dal.CodecAlias{Ident: "time_of_action"},
|
||||
},
|
||||
},
|
||||
|
||||
Indexes: dal.IndexSet{
|
||||
&dal.Index{
|
||||
Ident: "federation_nodes_sync_idxRelNode",
|
||||
Type: "BTREE",
|
||||
|
||||
Fields: []*dal.IndexField{
|
||||
{
|
||||
AttributeIdent: "NodeID",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
var SharedModule = &dal.Model{
|
||||
Ident: "federation_module_shared",
|
||||
ResourceType: types.SharedModuleResourceType,
|
||||
|
||||
Attributes: dal.AttributeSet{
|
||||
&dal.Attribute{
|
||||
Ident: "ID",
|
||||
Type: &dal.TypeID{},
|
||||
Store: &dal.CodecAlias{Ident: "id"},
|
||||
},
|
||||
|
||||
&dal.Attribute{
|
||||
Ident: "Handle",
|
||||
Type: &dal.TypeText{Length: 64},
|
||||
Store: &dal.CodecAlias{Ident: "handle"},
|
||||
},
|
||||
|
||||
&dal.Attribute{
|
||||
Ident: "NodeID", Sortable: true,
|
||||
Type: &dal.TypeID{},
|
||||
Store: &dal.CodecAlias{Ident: "rel_node"},
|
||||
},
|
||||
|
||||
&dal.Attribute{
|
||||
Ident: "Name", Sortable: true,
|
||||
Type: &dal.TypeText{},
|
||||
Store: &dal.CodecAlias{Ident: "name"},
|
||||
},
|
||||
|
||||
&dal.Attribute{
|
||||
Ident: "ExternalFederationModuleID", Sortable: true,
|
||||
Type: &dal.TypeID{},
|
||||
Store: &dal.CodecAlias{Ident: "xref_module"},
|
||||
},
|
||||
|
||||
&dal.Attribute{
|
||||
Ident: "Fields",
|
||||
Type: &dal.TypeJSON{
|
||||
DefaultValue: "{}",
|
||||
},
|
||||
Store: &dal.CodecAlias{Ident: "fields"},
|
||||
},
|
||||
|
||||
&dal.Attribute{
|
||||
Ident: "CreatedAt", Sortable: true,
|
||||
Type: &dal.TypeTimestamp{
|
||||
DefaultCurrentTimestamp: true, Timezone: true, Precision: -1,
|
||||
},
|
||||
Store: &dal.CodecAlias{Ident: "created_at"},
|
||||
},
|
||||
|
||||
&dal.Attribute{
|
||||
Ident: "UpdatedAt", Sortable: true,
|
||||
Type: &dal.TypeTimestamp{Nullable: true, Timezone: true, Precision: -1},
|
||||
Store: &dal.CodecAlias{Ident: "updated_at"},
|
||||
},
|
||||
|
||||
&dal.Attribute{
|
||||
Ident: "DeletedAt", Sortable: true,
|
||||
Type: &dal.TypeTimestamp{Nullable: true, Timezone: true, Precision: -1},
|
||||
Store: &dal.CodecAlias{Ident: "deleted_at"},
|
||||
},
|
||||
|
||||
&dal.Attribute{
|
||||
Ident: "CreatedBy",
|
||||
Type: &dal.TypeRef{HasDefault: true,
|
||||
DefaultValue: 0,
|
||||
|
||||
RefAttribute: "id",
|
||||
RefModel: &dal.ModelRef{
|
||||
ResourceType: "corteza::system:user",
|
||||
},
|
||||
},
|
||||
Store: &dal.CodecAlias{Ident: "created_by"},
|
||||
},
|
||||
|
||||
&dal.Attribute{
|
||||
Ident: "UpdatedBy",
|
||||
Type: &dal.TypeRef{HasDefault: true,
|
||||
DefaultValue: 0,
|
||||
|
||||
RefAttribute: "id",
|
||||
RefModel: &dal.ModelRef{
|
||||
ResourceType: "corteza::system:user",
|
||||
},
|
||||
},
|
||||
Store: &dal.CodecAlias{Ident: "updated_by"},
|
||||
},
|
||||
|
||||
&dal.Attribute{
|
||||
Ident: "DeletedBy",
|
||||
Type: &dal.TypeRef{HasDefault: true,
|
||||
DefaultValue: 0,
|
||||
|
||||
RefAttribute: "id",
|
||||
RefModel: &dal.ModelRef{
|
||||
ResourceType: "corteza::system:user",
|
||||
},
|
||||
},
|
||||
Store: &dal.CodecAlias{Ident: "deleted_by"},
|
||||
},
|
||||
},
|
||||
|
||||
Indexes: dal.IndexSet{
|
||||
&dal.Index{
|
||||
Ident: "PRIMARY",
|
||||
Type: "BTREE",
|
||||
|
||||
Fields: []*dal.IndexField{
|
||||
{
|
||||
AttributeIdent: "ID",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
func init() {
|
||||
models = append(
|
||||
models,
|
||||
ExposedModule,
|
||||
ModuleMapping,
|
||||
Node,
|
||||
NodeSync,
|
||||
SharedModule,
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user