﻿
--select * from auth_user

insert into auth_user
select 
id
, (select password from auth_user where id = 7) as password
, (select last_login from auth_user where id = 7) as last_login
, false as is_superuser
, lower(clave)||'admin' as username 
, substr(nombre, 1,30) as first_name
, 'Tabasco' as last_name
, lower(clave)||'admin@tabaasco.gob.mx' as email
, false as is_staff
, true as is_active
, (select date_joined from auth_user where id = 7) as date_joined

from seguimiento_oficios_dependencia
where id not in (7);


