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) = {
|
2024-10-08 16:43:59 -04:00
|
|
|
id : 1
|
|
|
|
|
primary_key : {fields : "id" auto_increment : true}
|
|
|
|
|
index : {id : 1 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-30 22:21:44 -04:00
|
|
|
string resolver = 4;
|
2024-09-25 19:45:28 -04:00
|
|
|
}
|