Files
sonr/proto/vault/v1/state.proto
T

32 lines
533 B
Protocol Buffer
Raw Normal View History

2024-09-25 19:45:28 -04:00
syntax = "proto3";
package vault.v1;
import "cosmos/orm/v1/orm.proto";
option go_package = "github.com/onsonr/sonr/x/vault/types";
// https://github.com/cosmos/cosmos-sdk/blob/main/orm/README.md
message DWN {
option (cosmos.orm.v1.table) = {
id: 1
2024-09-29 14:40:36 -04:00
primary_key: {
fields: "id"
auto_increment: true
}
2024-09-25 19:45:28 -04:00
index: {
id: 1
2024-09-29 14:40:36 -04:00
fields: "alias"
unique: true
}
index: {
id: 2
fields: "cid"
unique: true
2024-09-25 19:45:28 -04:00
}
};
2024-09-29 14:40:36 -04:00
uint64 id = 1;
string alias = 2;
string cid = 3;
2024-09-25 19:45:28 -04:00
}