upload files into repos
This commit is contained in:
parent
8a8eca604f
commit
07c76f49f4
19
1.nodejs_js/readme.md
Normal file
19
1.nodejs_js/readme.md
Normal file
@ -0,0 +1,19 @@
|
||||
# Блок заданий "Задание, Java Script, Node JS:"
|
||||
1. Есть таблицы (PgSql, но диалект в данном случае не важен, пишите как на том который знаете):
|
||||
```pgsql
|
||||
CREATE TABLE public.departments (
|
||||
id integer NOT NULL DEFAULT nextval('departments_id_seq'::regclass),
|
||||
created_at timestamp without time zone,
|
||||
updated_at timestamp without time zone,
|
||||
file_id character varying(32) COLLATE pg_catalog."default",
|
||||
CONSTRAINT departments_pkey PRIMARY KEY (id)
|
||||
)
|
||||
CREATE TABLE public.dep_names (
|
||||
id integer NOT NULL DEFAULT nextval('dep_names_id_seq'::regclass),
|
||||
name character varying(1024) COLLATE pg_catalog."default" NOT NULL,
|
||||
department_id integer,
|
||||
name_tsvector tsvector,
|
||||
CONSTRAINT dep_names_pkey PRIMARY KEY (id)
|
||||
)
|
||||
dep_names .department_id (многие) ссылается на departments.id (к одному)
|
||||
```
|
Loading…
Reference in New Issue
Block a user