Adding Seat plan component and database tables
This commit is contained in:
@@ -5,8 +5,8 @@ import { Rating } from "../models/acts/rating.model";
|
||||
import { Genre } from "../models/acts/genre.model";
|
||||
import { Tour } from "../models/acts/tour.model";
|
||||
import { Concert } from "../models/acts/concert.model";
|
||||
import { Location } from "../models/acts/location.model";
|
||||
import { City } from "../models/acts/city.model";
|
||||
import { Location } from "../models/locations/location.model";
|
||||
import { City } from "../models/locations/city.model";
|
||||
|
||||
export const band = Router()
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Location } from "../models/acts/location.model";
|
||||
import { City } from "../models/acts/city.model";
|
||||
import { Location } from "../models/locations/location.model";
|
||||
import { City } from "../models/locations/city.model";
|
||||
import { Request, Response, Router } from "express";
|
||||
import { Concert } from "../models/acts/concert.model";
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { Location } from "../models/acts/location.model";
|
||||
import { Location } from "../models/locations/location.model";
|
||||
import { Concert } from "../models/acts/concert.model";
|
||||
import { Request, Response, Router } from "express";
|
||||
import { Tour } from "../models/acts/tour.model";
|
||||
import { City } from "../models/acts/city.model";
|
||||
import { City } from "../models/locations/city.model";
|
||||
|
||||
export const concert = Router()
|
||||
|
||||
|
||||
@@ -1,9 +1,12 @@
|
||||
import { Concert } from "../models/acts/concert.model";
|
||||
import { City } from "../models/acts/city.model";
|
||||
import { Location } from "../models/acts/location.model";
|
||||
import { City } from "../models/locations/city.model";
|
||||
import { Location } from "../models/locations/location.model";
|
||||
import { Request, Response, Router } from "express";
|
||||
import { Tour } from "../models/acts/tour.model";
|
||||
import { Band } from "../models/acts/band.model";
|
||||
import { SeatGroup } from "../models/locations/seatGroup.model";
|
||||
import { Seat } from "../models/locations/seat.model";
|
||||
import { SeatRow } from "../models/locations/seatRow.model";
|
||||
|
||||
export const location = Router()
|
||||
|
||||
@@ -17,6 +20,15 @@ location.get("/", (req: Request, res: Response) => {
|
||||
attributes: {
|
||||
exclude: [ "locationId", "tourId" ]
|
||||
}
|
||||
},
|
||||
{
|
||||
model: SeatGroup,
|
||||
include: [
|
||||
{
|
||||
model: SeatRow,
|
||||
include: [ Seat ]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
attributes: {
|
||||
|
||||
@@ -5,7 +5,7 @@ import { OrderItem } from "../models/ordering/orderItem.model";
|
||||
import { Payment } from "../models/user/payment.model";
|
||||
import { Address } from "../models/user/address.model";
|
||||
import { Band } from "../models/acts/band.model";
|
||||
import { Location } from "../models/acts/location.model";
|
||||
import { Location } from "../models/locations/location.model";
|
||||
|
||||
export const order = Router()
|
||||
|
||||
|
||||
@@ -2,9 +2,9 @@ import { Concert } from "../models/acts/concert.model";
|
||||
import { Band } from "../models/acts/band.model";
|
||||
import { Tour } from "../models/acts/tour.model";
|
||||
import { Request, Response, Router } from "express";
|
||||
import { Location } from "../models/acts/location.model";
|
||||
import { Location } from "../models/locations/location.model";
|
||||
import { Genre } from "../models/acts/genre.model";
|
||||
import { City } from "../models/acts/city.model";
|
||||
import { City } from "../models/locations/city.model";
|
||||
|
||||
export const tour = Router()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user