Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Arturo Montejo Ráez
/
WBT2425_0
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
20
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
6ecbec33
authored
Mar 19, 2025
by
Arturo Montejo Ráez
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Updated SQL with sample code for practice 7
parent
b98ab068
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
fastapi/webapp.sql
react/src/app/available/page.js
fastapi/webapp.sql
View file @
6ecbec33
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
-- https://www.phpmyadmin.net/
-- https://www.phpmyadmin.net/
--
--
-- Servidor: localhost:3306
-- Servidor: localhost:3306
-- Tiempo de generación: 1
8-03-2025 a las 16:21:19
-- Tiempo de generación: 1
9-03-2025 a las 15:50:42
-- Versión del servidor: 10.11.8-MariaDB-0ubuntu0.24.04.1
-- Versión del servidor: 10.11.8-MariaDB-0ubuntu0.24.04.1
-- Versión de PHP: 8.3.6
-- Versión de PHP: 8.3.6
...
@@ -59,6 +59,17 @@ CREATE TABLE `loan` (
...
@@ -59,6 +59,17 @@ CREATE TABLE `loan` (
`end`
date
DEFAULT
NULL
`end`
date
DEFAULT
NULL
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COLLATE
=
utf8mb4_general_ci
;
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COLLATE
=
utf8mb4_general_ci
;
--
-- Volcado de datos para la tabla `loan`
--
INSERT
INTO
`loan`
(
`id_user`
,
`id_book`
,
`status`
,
`start`
,
`end`
)
VALUES
(
1
,
1
,
'available'
,
NULL
,
NULL
),
(
1
,
2
,
'on loan'
,
NULL
,
NULL
),
(
1
,
3
,
'available'
,
NULL
,
NULL
),
(
1
,
4
,
'available'
,
NULL
,
NULL
),
(
1
,
5
,
'available'
,
NULL
,
NULL
);
-- --------------------------------------------------------
-- --------------------------------------------------------
--
--
...
...
react/src/app/available/page.js
View file @
6ecbec33
...
@@ -2,7 +2,6 @@
...
@@ -2,7 +2,6 @@
import
{
useState
,
useEffect
}
from
'react'
;
import
{
useState
,
useEffect
}
from
'react'
;
import
BookList
from
'../../components/booklist'
;
import
BookList
from
'../../components/booklist'
;
import
config
from
'../../config'
;
import
{
fetchAvailableBooks
}
from
'../../api'
;
import
{
fetchAvailableBooks
}
from
'../../api'
;
export
default
function
Page
()
{
export
default
function
Page
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment