mirror of
https://github.com/typesense/typesense.git
synced 2025-05-18 12:42:50 +08:00
22 lines
405 B
C++
22 lines
405 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
|
|
namespace field_types {
|
|
static const std::string STRING = "STRING";
|
|
static const std::string INT32 = "INT32";
|
|
}
|
|
|
|
namespace fields {
|
|
static const std::string name = "name";
|
|
static const std::string type = "type";
|
|
}
|
|
|
|
struct field {
|
|
std::string name;
|
|
std::string type;
|
|
|
|
field(std::string name, std::string type): name(name), type(type) {
|
|
|
|
}
|
|
}; |