Improve cleanup script to give users 1 month after warning before removing their account. Move user related logic into the user class. Add columns to the user_list table to track whether the user was warned about inactivity and the datetime of the warning.

This commit is contained in:
Chris Morgan
2005-09-28 00:32:48 +00:00
committed by WineHQ
parent 5b846f81ac
commit 1a58863f78
3 changed files with 85 additions and 63 deletions

View File

@@ -3,13 +3,15 @@ use apidb;
drop table if exists user_list;
create table user_list (
stamp timestamp not null,
userid int not null auto_increment,
password text not null,
realname text not null,
email varchar(255) not null,
created datetime not null,
CVSrelease text,
stamp timestamp not null,
userid int not null auto_increment,
password text not null,
realname text not null,
email varchar(255) not null,
created datetime not null,
inactivity_warn_stamp timestamp not null, /* the time we warned the user */
inactivity_warned enum('true','false') NOT NULL default 'false', /* if true, we warned the user */
CVSrelease text,
unique key(userid),
unique(email)
);