feat(Image): add Image table

This commit is contained in:
Kristofers Solo 2023-10-30 16:33:36 +02:00
parent 06c9bc4394
commit 325776f93c
3 changed files with 6 additions and 1 deletions

View File

@ -0,0 +1,4 @@
\begin{entityTable}{Attels}{entity-image}
\entityTableRow{datnes\_adrese}{varchar(255)}{unique, not null}{Saglabātā attēla adrese operētājsistēmā}
\entityTableRow{pievienosanas\_laiks}{timestamp}{default current\_timestamp, not null}{Laiks, kad tika izveidots/saglabāts dotais attēls datubāzē}
\end{entityTable}

View File

@ -5,3 +5,4 @@ Visām tabulām, \texttt{VARCHAR} un \texttt{TEXT} laukiem tiek lietots UTF8 kod
\input{./src/design/entities/role-action.tex}
\input{./src/design/entities/role-disadvantage.tex}
\input{./src/design/entities/image.tex}

View File

@ -15,7 +15,7 @@ CREATE TABLE
CREATE TABLE
"Attels" (
"id" SERIAL8 PRIMARY KEY NOT NULL,
"datnes_adrese" VARCHAR(255) UNIQUE,
"datnes_adrese" VARCHAR(255) UNIQUE NOT NULL,
"pievienosanas_laiks" TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL
);