mirror of
https://gitee.com/an-tao/drogon.git
synced 2024-11-30 02:37:57 +08:00
26 lines
448 B
Plaintext
26 lines
448 B
Plaintext
/**
|
|
*
|
|
* {{className}}.h
|
|
* Created by drogon_ctl
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
namespace drogon_dao
|
|
{
|
|
namespace {{dbName}}
|
|
{
|
|
class {{className}}
|
|
{
|
|
public:
|
|
const static std::string primaryKeyName;
|
|
const static bool hasPrimaryKey;
|
|
const static std::string tableName;
|
|
|
|
typedef {{primaryKeyType}} PrimaryKeyType;
|
|
{{className}}(const Row &r);
|
|
};
|
|
} // namespace {{dbName}}
|
|
} // namespace drogon_dao
|