create user model
create flat model