Skip to content

Commit 9e90853

Browse files
feat Start Template II
1 parent 16f10d1 commit 9e90853

File tree

71 files changed

+1095
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+1095
-0
lines changed
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

Templates_II/.idea/.gitignore

+8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Templates_II/.idea/Templates_I.iml

+29
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Templates_II/.idea/inspectionProfiles/profiles_settings.xml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Templates_II/.idea/misc.xml

+4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Templates_II/.idea/modules.xml

+8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Templates_II/.idea/vcs.xml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Templates_II/Backup_db/db.sql

+317
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,317 @@
1+
-- --------------------------------------------------------
2+
-- Host: 127.0.0.1
3+
-- Versión del servidor: 10.5.5-MariaDB - mariadb.org binary distribution
4+
-- SO del servidor: Win64
5+
-- HeidiSQL Versión: 11.0.0.6099
6+
-- --------------------------------------------------------
7+
8+
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
9+
/*!40101 SET NAMES utf8 */;
10+
/*!50503 SET NAMES utf8mb4 */;
11+
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
12+
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
13+
14+
15+
-- Volcando estructura de base de datos para db
16+
CREATE DATABASE IF NOT EXISTS `db` /*!40100 DEFAULT CHARACTER SET utf8 */;
17+
USE `db`;
18+
19+
-- Volcando estructura para tabla db.auth_group
20+
CREATE TABLE IF NOT EXISTS `auth_group` (
21+
`id` int(11) NOT NULL AUTO_INCREMENT,
22+
`name` varchar(150) NOT NULL,
23+
PRIMARY KEY (`id`),
24+
UNIQUE KEY `name` (`name`)
25+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
26+
27+
-- Volcando datos para la tabla db.auth_group: ~0 rows (aproximadamente)
28+
/*!40000 ALTER TABLE `auth_group` DISABLE KEYS */;
29+
/*!40000 ALTER TABLE `auth_group` ENABLE KEYS */;
30+
31+
-- Volcando estructura para tabla db.auth_group_permissions
32+
CREATE TABLE IF NOT EXISTS `auth_group_permissions` (
33+
`id` int(11) NOT NULL AUTO_INCREMENT,
34+
`group_id` int(11) NOT NULL,
35+
`permission_id` int(11) NOT NULL,
36+
PRIMARY KEY (`id`),
37+
UNIQUE KEY `auth_group_permissions_group_id_permission_id_0cd325b0_uniq` (`group_id`,`permission_id`),
38+
KEY `auth_group_permissio_permission_id_84c5c92e_fk_auth_perm` (`permission_id`),
39+
CONSTRAINT `auth_group_permissio_permission_id_84c5c92e_fk_auth_perm` FOREIGN KEY (`permission_id`) REFERENCES `auth_permission` (`id`),
40+
CONSTRAINT `auth_group_permissions_group_id_b120cbf9_fk_auth_group_id` FOREIGN KEY (`group_id`) REFERENCES `auth_group` (`id`)
41+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
42+
43+
-- Volcando datos para la tabla db.auth_group_permissions: ~0 rows (aproximadamente)
44+
/*!40000 ALTER TABLE `auth_group_permissions` DISABLE KEYS */;
45+
/*!40000 ALTER TABLE `auth_group_permissions` ENABLE KEYS */;
46+
47+
-- Volcando estructura para tabla db.auth_permission
48+
CREATE TABLE IF NOT EXISTS `auth_permission` (
49+
`id` int(11) NOT NULL AUTO_INCREMENT,
50+
`name` varchar(255) NOT NULL,
51+
`content_type_id` int(11) NOT NULL,
52+
`codename` varchar(100) NOT NULL,
53+
PRIMARY KEY (`id`),
54+
UNIQUE KEY `auth_permission_content_type_id_codename_01ab375a_uniq` (`content_type_id`,`codename`),
55+
CONSTRAINT `auth_permission_content_type_id_2f476e4b_fk_django_co` FOREIGN KEY (`content_type_id`) REFERENCES `django_content_type` (`id`)
56+
) ENGINE=InnoDB AUTO_INCREMENT=37 DEFAULT CHARSET=utf8;
57+
58+
-- Volcando datos para la tabla db.auth_permission: ~36 rows (aproximadamente)
59+
/*!40000 ALTER TABLE `auth_permission` DISABLE KEYS */;
60+
INSERT INTO `auth_permission` (`id`, `name`, `content_type_id`, `codename`) VALUES
61+
(1, 'Can add log entry', 1, 'add_logentry'),
62+
(2, 'Can change log entry', 1, 'change_logentry'),
63+
(3, 'Can delete log entry', 1, 'delete_logentry'),
64+
(4, 'Can view log entry', 1, 'view_logentry'),
65+
(5, 'Can add permission', 2, 'add_permission'),
66+
(6, 'Can change permission', 2, 'change_permission'),
67+
(7, 'Can delete permission', 2, 'delete_permission'),
68+
(8, 'Can view permission', 2, 'view_permission'),
69+
(9, 'Can add group', 3, 'add_group'),
70+
(10, 'Can change group', 3, 'change_group'),
71+
(11, 'Can delete group', 3, 'delete_group'),
72+
(12, 'Can view group', 3, 'view_group'),
73+
(13, 'Can add user', 4, 'add_user'),
74+
(14, 'Can change user', 4, 'change_user'),
75+
(15, 'Can delete user', 4, 'delete_user'),
76+
(16, 'Can view user', 4, 'view_user'),
77+
(17, 'Can add content type', 5, 'add_contenttype'),
78+
(18, 'Can change content type', 5, 'change_contenttype'),
79+
(19, 'Can delete content type', 5, 'delete_contenttype'),
80+
(20, 'Can view content type', 5, 'view_contenttype'),
81+
(21, 'Can add session', 6, 'add_session'),
82+
(22, 'Can change session', 6, 'change_session'),
83+
(23, 'Can delete session', 6, 'delete_session'),
84+
(24, 'Can view session', 6, 'view_session'),
85+
(25, 'Can add Empleado', 7, 'add_employee'),
86+
(26, 'Can change Empleado', 7, 'change_employee'),
87+
(27, 'Can delete Empleado', 7, 'delete_employee'),
88+
(28, 'Can view Empleado', 7, 'view_employee'),
89+
(29, 'Can add Categoria', 8, 'add_category'),
90+
(30, 'Can change Categoria', 8, 'change_category'),
91+
(31, 'Can delete Categoria', 8, 'delete_category'),
92+
(32, 'Can view Categoria', 8, 'view_category'),
93+
(33, 'Can add Tipo', 9, 'add_type'),
94+
(34, 'Can change Tipo', 9, 'change_type'),
95+
(35, 'Can delete Tipo', 9, 'delete_type'),
96+
(36, 'Can view Tipo', 9, 'view_type');
97+
/*!40000 ALTER TABLE `auth_permission` ENABLE KEYS */;
98+
99+
-- Volcando estructura para tabla db.auth_user
100+
CREATE TABLE IF NOT EXISTS `auth_user` (
101+
`id` int(11) NOT NULL AUTO_INCREMENT,
102+
`password` varchar(128) NOT NULL,
103+
`last_login` datetime(6) DEFAULT NULL,
104+
`is_superuser` tinyint(1) NOT NULL,
105+
`username` varchar(150) NOT NULL,
106+
`first_name` varchar(150) NOT NULL,
107+
`last_name` varchar(150) NOT NULL,
108+
`email` varchar(254) NOT NULL,
109+
`is_staff` tinyint(1) NOT NULL,
110+
`is_active` tinyint(1) NOT NULL,
111+
`date_joined` datetime(6) NOT NULL,
112+
PRIMARY KEY (`id`),
113+
UNIQUE KEY `username` (`username`)
114+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
115+
116+
-- Volcando datos para la tabla db.auth_user: ~0 rows (aproximadamente)
117+
/*!40000 ALTER TABLE `auth_user` DISABLE KEYS */;
118+
/*!40000 ALTER TABLE `auth_user` ENABLE KEYS */;
119+
120+
-- Volcando estructura para tabla db.auth_user_groups
121+
CREATE TABLE IF NOT EXISTS `auth_user_groups` (
122+
`id` int(11) NOT NULL AUTO_INCREMENT,
123+
`user_id` int(11) NOT NULL,
124+
`group_id` int(11) NOT NULL,
125+
PRIMARY KEY (`id`),
126+
UNIQUE KEY `auth_user_groups_user_id_group_id_94350c0c_uniq` (`user_id`,`group_id`),
127+
KEY `auth_user_groups_group_id_97559544_fk_auth_group_id` (`group_id`),
128+
CONSTRAINT `auth_user_groups_group_id_97559544_fk_auth_group_id` FOREIGN KEY (`group_id`) REFERENCES `auth_group` (`id`),
129+
CONSTRAINT `auth_user_groups_user_id_6a12ed8b_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
130+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
131+
132+
-- Volcando datos para la tabla db.auth_user_groups: ~0 rows (aproximadamente)
133+
/*!40000 ALTER TABLE `auth_user_groups` DISABLE KEYS */;
134+
/*!40000 ALTER TABLE `auth_user_groups` ENABLE KEYS */;
135+
136+
-- Volcando estructura para tabla db.auth_user_user_permissions
137+
CREATE TABLE IF NOT EXISTS `auth_user_user_permissions` (
138+
`id` int(11) NOT NULL AUTO_INCREMENT,
139+
`user_id` int(11) NOT NULL,
140+
`permission_id` int(11) NOT NULL,
141+
PRIMARY KEY (`id`),
142+
UNIQUE KEY `auth_user_user_permissions_user_id_permission_id_14a6b632_uniq` (`user_id`,`permission_id`),
143+
KEY `auth_user_user_permi_permission_id_1fbb5f2c_fk_auth_perm` (`permission_id`),
144+
CONSTRAINT `auth_user_user_permi_permission_id_1fbb5f2c_fk_auth_perm` FOREIGN KEY (`permission_id`) REFERENCES `auth_permission` (`id`),
145+
CONSTRAINT `auth_user_user_permissions_user_id_a95ead1b_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
146+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
147+
148+
-- Volcando datos para la tabla db.auth_user_user_permissions: ~0 rows (aproximadamente)
149+
/*!40000 ALTER TABLE `auth_user_user_permissions` DISABLE KEYS */;
150+
/*!40000 ALTER TABLE `auth_user_user_permissions` ENABLE KEYS */;
151+
152+
-- Volcando estructura para tabla db.django_admin_log
153+
CREATE TABLE IF NOT EXISTS `django_admin_log` (
154+
`id` int(11) NOT NULL AUTO_INCREMENT,
155+
`action_time` datetime(6) NOT NULL,
156+
`object_id` longtext DEFAULT NULL,
157+
`object_repr` varchar(200) NOT NULL,
158+
`action_flag` smallint(5) unsigned NOT NULL CHECK (`action_flag` >= 0),
159+
`change_message` longtext NOT NULL,
160+
`content_type_id` int(11) DEFAULT NULL,
161+
`user_id` int(11) NOT NULL,
162+
PRIMARY KEY (`id`),
163+
KEY `django_admin_log_content_type_id_c4bce8eb_fk_django_co` (`content_type_id`),
164+
KEY `django_admin_log_user_id_c564eba6_fk_auth_user_id` (`user_id`),
165+
CONSTRAINT `django_admin_log_content_type_id_c4bce8eb_fk_django_co` FOREIGN KEY (`content_type_id`) REFERENCES `django_content_type` (`id`),
166+
CONSTRAINT `django_admin_log_user_id_c564eba6_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
167+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
168+
169+
-- Volcando datos para la tabla db.django_admin_log: ~0 rows (aproximadamente)
170+
/*!40000 ALTER TABLE `django_admin_log` DISABLE KEYS */;
171+
/*!40000 ALTER TABLE `django_admin_log` ENABLE KEYS */;
172+
173+
-- Volcando estructura para tabla db.django_content_type
174+
CREATE TABLE IF NOT EXISTS `django_content_type` (
175+
`id` int(11) NOT NULL AUTO_INCREMENT,
176+
`app_label` varchar(100) NOT NULL,
177+
`model` varchar(100) NOT NULL,
178+
PRIMARY KEY (`id`),
179+
UNIQUE KEY `django_content_type_app_label_model_76bd3d3b_uniq` (`app_label`,`model`)
180+
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8;
181+
182+
-- Volcando datos para la tabla db.django_content_type: ~9 rows (aproximadamente)
183+
/*!40000 ALTER TABLE `django_content_type` DISABLE KEYS */;
184+
INSERT INTO `django_content_type` (`id`, `app_label`, `model`) VALUES
185+
(1, 'admin', 'logentry'),
186+
(3, 'auth', 'group'),
187+
(2, 'auth', 'permission'),
188+
(4, 'auth', 'user'),
189+
(5, 'contenttypes', 'contenttype'),
190+
(8, 'erp', 'category'),
191+
(7, 'erp', 'employee'),
192+
(9, 'erp', 'type'),
193+
(6, 'sessions', 'session');
194+
/*!40000 ALTER TABLE `django_content_type` ENABLE KEYS */;
195+
196+
-- Volcando estructura para tabla db.django_migrations
197+
CREATE TABLE IF NOT EXISTS `django_migrations` (
198+
`id` int(11) NOT NULL AUTO_INCREMENT,
199+
`app` varchar(255) NOT NULL,
200+
`name` varchar(255) NOT NULL,
201+
`applied` datetime(6) NOT NULL,
202+
PRIMARY KEY (`id`)
203+
) ENGINE=InnoDB AUTO_INCREMENT=25 DEFAULT CHARSET=utf8;
204+
205+
-- Volcando datos para la tabla db.django_migrations: ~24 rows (aproximadamente)
206+
/*!40000 ALTER TABLE `django_migrations` DISABLE KEYS */;
207+
INSERT INTO `django_migrations` (`id`, `app`, `name`, `applied`) VALUES
208+
(1, 'contenttypes', '0001_initial', '2020-11-23 18:40:22.597028'),
209+
(2, 'auth', '0001_initial', '2020-11-23 18:40:25.625992'),
210+
(3, 'admin', '0001_initial', '2020-11-23 18:40:37.163873'),
211+
(4, 'admin', '0002_logentry_remove_auto_add', '2020-11-23 18:40:40.829539'),
212+
(5, 'admin', '0003_logentry_add_action_flag_choices', '2020-11-23 18:40:40.873996'),
213+
(6, 'contenttypes', '0002_remove_content_type_name', '2020-11-23 18:40:41.469414'),
214+
(7, 'auth', '0002_alter_permission_name_max_length', '2020-11-23 18:40:42.967072'),
215+
(8, 'auth', '0003_alter_user_email_max_length', '2020-11-23 18:40:44.853675'),
216+
(9, 'auth', '0004_alter_user_username_opts', '2020-11-23 18:40:44.999653'),
217+
(10, 'auth', '0005_alter_user_last_login_null', '2020-11-23 18:40:47.976573'),
218+
(11, 'auth', '0006_require_contenttypes_0002', '2020-11-23 18:40:48.109720'),
219+
(12, 'auth', '0007_alter_validators_add_error_messages', '2020-11-23 18:40:48.312988'),
220+
(13, 'auth', '0008_alter_user_username_max_length', '2020-11-23 18:40:48.622459'),
221+
(14, 'auth', '0009_alter_user_last_name_max_length', '2020-11-23 18:40:48.916417'),
222+
(15, 'auth', '0010_alter_group_name_max_length', '2020-11-23 18:40:50.410136'),
223+
(16, 'auth', '0011_update_proxy_permissions', '2020-11-23 18:40:50.468529'),
224+
(17, 'auth', '0012_alter_user_first_name_max_length', '2020-11-23 18:40:50.783003'),
225+
(18, 'erp', '0001_initial', '2020-11-23 18:40:51.192912'),
226+
(19, 'erp', '0002_employee_gender', '2020-11-23 18:40:51.370742'),
227+
(20, 'erp', '0003_remove_employee_gender', '2020-11-23 18:40:51.621912'),
228+
(21, 'erp', '0004_category_type', '2020-11-23 18:40:53.143558'),
229+
(22, 'erp', '0005_auto_20201123_1340', '2020-11-23 18:40:57.206607'),
230+
(23, 'sessions', '0001_initial', '2020-11-23 18:41:00.869956'),
231+
(24, 'erp', '0006_remove_employee_gender', '2020-11-23 18:42:07.344048');
232+
/*!40000 ALTER TABLE `django_migrations` ENABLE KEYS */;
233+
234+
-- Volcando estructura para tabla db.django_session
235+
CREATE TABLE IF NOT EXISTS `django_session` (
236+
`session_key` varchar(40) NOT NULL,
237+
`session_data` longtext NOT NULL,
238+
`expire_date` datetime(6) NOT NULL,
239+
PRIMARY KEY (`session_key`),
240+
KEY `django_session_expire_date_a5c62663` (`expire_date`)
241+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
242+
243+
-- Volcando datos para la tabla db.django_session: ~0 rows (aproximadamente)
244+
/*!40000 ALTER TABLE `django_session` DISABLE KEYS */;
245+
/*!40000 ALTER TABLE `django_session` ENABLE KEYS */;
246+
247+
-- Volcando estructura para tabla db.erp_category
248+
CREATE TABLE IF NOT EXISTS `erp_category` (
249+
`id` int(11) NOT NULL AUTO_INCREMENT,
250+
`name` varchar(150) NOT NULL,
251+
PRIMARY KEY (`id`)
252+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
253+
254+
-- Volcando datos para la tabla db.erp_category: ~0 rows (aproximadamente)
255+
/*!40000 ALTER TABLE `erp_category` DISABLE KEYS */;
256+
/*!40000 ALTER TABLE `erp_category` ENABLE KEYS */;
257+
258+
-- Volcando estructura para tabla db.erp_employee
259+
CREATE TABLE IF NOT EXISTS `erp_employee` (
260+
`id` int(11) NOT NULL AUTO_INCREMENT,
261+
`names` varchar(150) NOT NULL,
262+
`dni` varchar(10) NOT NULL,
263+
`date_joined` date NOT NULL,
264+
`date_creation` datetime(6) NOT NULL,
265+
`date_updated` datetime(6) NOT NULL,
266+
`age` int(10) unsigned NOT NULL CHECK (`age` >= 0),
267+
`salary` decimal(9,2) NOT NULL,
268+
`state` tinyint(1) NOT NULL,
269+
`avatar` varchar(100) DEFAULT NULL,
270+
`cvitae` varchar(100) DEFAULT NULL,
271+
`type_id` int(11) NOT NULL,
272+
PRIMARY KEY (`id`),
273+
UNIQUE KEY `dni` (`dni`),
274+
KEY `erp_employee_type_id_01093f72_fk_erp_type_id` (`type_id`),
275+
CONSTRAINT `erp_employee_type_id_01093f72_fk_erp_type_id` FOREIGN KEY (`type_id`) REFERENCES `erp_type` (`id`)
276+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
277+
278+
-- Volcando datos para la tabla db.erp_employee: ~0 rows (aproximadamente)
279+
/*!40000 ALTER TABLE `erp_employee` DISABLE KEYS */;
280+
/*!40000 ALTER TABLE `erp_employee` ENABLE KEYS */;
281+
282+
-- Volcando estructura para tabla db.erp_employee_categ
283+
CREATE TABLE IF NOT EXISTS `erp_employee_categ` (
284+
`id` int(11) NOT NULL AUTO_INCREMENT,
285+
`employee_id` int(11) NOT NULL,
286+
`category_id` int(11) NOT NULL,
287+
PRIMARY KEY (`id`),
288+
UNIQUE KEY `erp_employee_categ_employee_id_category_id_7c02d952_uniq` (`employee_id`,`category_id`),
289+
KEY `erp_employee_categ_category_id_33ba8c0d_fk_erp_category_id` (`category_id`),
290+
CONSTRAINT `erp_employee_categ_category_id_33ba8c0d_fk_erp_category_id` FOREIGN KEY (`category_id`) REFERENCES `erp_category` (`id`),
291+
CONSTRAINT `erp_employee_categ_employee_id_e875c8c4_fk_erp_employee_id` FOREIGN KEY (`employee_id`) REFERENCES `erp_employee` (`id`)
292+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
293+
294+
-- Volcando datos para la tabla db.erp_employee_categ: ~0 rows (aproximadamente)
295+
/*!40000 ALTER TABLE `erp_employee_categ` DISABLE KEYS */;
296+
/*!40000 ALTER TABLE `erp_employee_categ` ENABLE KEYS */;
297+
298+
-- Volcando estructura para tabla db.erp_type
299+
CREATE TABLE IF NOT EXISTS `erp_type` (
300+
`id` int(11) NOT NULL AUTO_INCREMENT,
301+
`name` varchar(150) NOT NULL,
302+
PRIMARY KEY (`id`)
303+
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
304+
305+
-- Volcando datos para la tabla db.erp_type: ~2 rows (aproximadamente)
306+
/*!40000 ALTER TABLE `erp_type` DISABLE KEYS */;
307+
INSERT INTO `erp_type` (`id`, `name`) VALUES
308+
(1, 'Accionista'),
309+
(2, 'presidente'),
310+
(4, 'prueba'),
311+
(5, 'vibra'),
312+
(6, 'hola');
313+
/*!40000 ALTER TABLE `erp_type` ENABLE KEYS */;
314+
315+
/*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */;
316+
/*!40014 SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS) */;
317+
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;

Templates_II/INFO

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
* Templates_II
2+
3+
-

Templates_II/Templates_II/__init__.py

Whitespace-only changes.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)