/*
 * au_auth_topcard_dbio.h - au 모듈 DB 접근 계층 copybook (au_auth_topcard_dbio, part of libaudbio.a).
 * ECPG functions; run on the caller's XA branch (no EXEC SQL CONNECT).
 * Return convention: >=0 ok, -1 = SQL error.
 * Shape: window row_number() PARTITION BY card_no (카드별 최고 승인).
 */
#ifndef AU_AUTH_TOPCARD_DBIO_H
#define AU_AUTH_TOPCARD_DBIO_H

typedef struct { long rn; char card_no[24]; long amount; } au_topcard_rec_t;

long audb_topcard_distinct(const char *bizdate, long *peak_out);

#endif /* AU_AUTH_TOPCARD_DBIO_H */
