IM/MDB/imm_mysqldb/template_table/im_user_friends.h

22 lines
708 B
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// Created by dongl on 23-5-4.
//
#ifndef IM2_IM_USER_FRIENDS_CPP
#define IM2_IM_USER_FRIENDS_CPP
#include <mysql++/mysql++.h>
#include <mysql++/ssqls.h>
#include "sql_table_struct.h"
sql_create_5(im_user_friends,
1, 5, // 1 当主键 第三个参数是 SETCOUNT。如果这为非零值则添加一个初始化构造函数和一个成员函数该函数采用给定数量的参数用于设置结构的前 N 个字段。
mysqlpp::sql_bigint, account,
mysqlpp::sql_blob, groups,
mysqlpp::sql_blob, friends,
mysqlpp::sql_blob, to_be_added,
mysqlpp::sql_int, restrictions
);
#endif //IM2_IM_USER_FRIENDS_CPP