2011-02-02 16:57:58 -06:00
|
|
|
-record(ts_user, {
|
|
|
|
username,
|
|
|
|
pwd,
|
|
|
|
pwd_salt,
|
|
|
|
name,
|
|
|
|
email,
|
2011-02-14 09:01:32 -06:00
|
|
|
join_date%,
|
|
|
|
% ext_data % other extensible data
|
2011-02-02 16:57:58 -06:00
|
|
|
}).
|
|
|
|
|
2011-02-14 09:01:32 -06:00
|
|
|
% ts_user.ext_data can be:
|
|
|
|
% [{last_timeline, TimelineId}]
|
|
|
|
|
2011-01-28 06:49:47 -06:00
|
|
|
-record(ts_timeline, {
|
|
|
|
ref, % {username, timelineid}
|
|
|
|
created,% {{year, month, day}, {hour, minute, second}}
|
|
|
|
desc
|
|
|
|
}).
|
|
|
|
|
|
|
|
-record(ts_entry, {
|
2011-01-30 08:28:56 -06:00
|
|
|
ref, % {username, timelineid, entryid}
|
2011-01-28 16:57:15 -06:00
|
|
|
timestamp, % gregorian seconds
|
2011-01-28 06:49:47 -06:00
|
|
|
mark, % String description of entry
|
|
|
|
notes % String with further notes about the entry
|
|
|
|
}).
|
2011-02-07 08:56:07 -06:00
|
|
|
|
|
|
|
-record(ts_api_session, {
|
|
|
|
username,
|
|
|
|
expires
|
|
|
|
}).
|
|
|
|
|
|
|
|
%-record(ts_session, {
|
|
|
|
%session_id,
|
|
|
|
%expires,
|
|
|
|
%username
|