timestamper/src/ts_db_records.hrl
2011-05-03 12:27:39 -05:00

36 lines
678 B
Erlang

-record(ts_user, {
username,
pwd,
pwd_salt,
name,
email,
join_date,
ext_data = [] % other extensible data
}).
% ts_user.ext_data can be:
% [{last_timeline, TimelineId}]
-record(ts_timeline, {
ref, % {username, timelineid}
created,% {{year, month, day}, {hour, minute, second}}
desc
}).
-record(ts_entry, {
ref, % {username, timelineid, entryid}
timestamp, % gregorian seconds
mark, % String description of entry
notes % String with further notes about the entry
}).
-record(ts_api_session, {
username,
expires
}).
%-record(ts_session, {
%session_id,
%expires,
%username