New page for all concerts
This commit is contained in:
@@ -8,16 +8,16 @@ import { Concert } from "./concert.model";
|
||||
@Table({ timestamps: false })
|
||||
export class Band extends Model {
|
||||
@Column
|
||||
name: String
|
||||
name: string
|
||||
|
||||
@Column
|
||||
foundingYear: Number
|
||||
foundingYear: number
|
||||
|
||||
@Column
|
||||
descriptionEn: String
|
||||
descriptionEn: string
|
||||
|
||||
@Column
|
||||
descriptionDe: String
|
||||
descriptionDe: string
|
||||
|
||||
@Column({
|
||||
type: DataType.STRING,
|
||||
@@ -28,13 +28,13 @@ export class Band extends Model {
|
||||
this.setDataValue('images', value.join(';'))
|
||||
}
|
||||
})
|
||||
images: Array<String>
|
||||
images: Array<string>
|
||||
|
||||
@Column
|
||||
imageMembers: String
|
||||
imageMembers: string
|
||||
|
||||
@Column
|
||||
logo: String
|
||||
logo: string
|
||||
|
||||
|
||||
// Relations
|
||||
|
||||
@@ -6,34 +6,37 @@ import { Band } from "./band.model";
|
||||
@Table({ timestamps: false })
|
||||
export class Concert extends Model {
|
||||
@Column
|
||||
date: String
|
||||
date: string
|
||||
|
||||
@Column
|
||||
name: String
|
||||
name: string
|
||||
|
||||
@Column
|
||||
price: Number
|
||||
price: number
|
||||
|
||||
@Column
|
||||
image: String
|
||||
image: string
|
||||
|
||||
@Column
|
||||
inStock: Number
|
||||
inStock: number
|
||||
|
||||
@Column
|
||||
offered: Boolean
|
||||
offered: boolean
|
||||
|
||||
@ForeignKey(() => Band)
|
||||
@Column
|
||||
bandId: Number
|
||||
bandId: number
|
||||
|
||||
@ForeignKey(() => Location)
|
||||
@Column
|
||||
locationId: Number
|
||||
locationId: number
|
||||
|
||||
|
||||
// Relations
|
||||
|
||||
@BelongsTo(() => Band)
|
||||
band: Band
|
||||
|
||||
@BelongsTo(() => Location)
|
||||
location: Location
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ import { BandGenre } from "./bandGenre.model";
|
||||
@Table({ timestamps: false })
|
||||
export class Genre extends Model {
|
||||
@Column
|
||||
name: String
|
||||
name: string
|
||||
|
||||
|
||||
// Relations
|
||||
|
||||
@@ -4,14 +4,14 @@ import { Band } from "./band.model";
|
||||
@Table({ timestamps: false })
|
||||
export class Member extends Model {
|
||||
@Column
|
||||
name: String
|
||||
name: string
|
||||
|
||||
@ForeignKey(() => Band)
|
||||
@Column
|
||||
bandId: Number
|
||||
bandId: number
|
||||
|
||||
@Column
|
||||
image: String
|
||||
image: string
|
||||
|
||||
|
||||
// Relations
|
||||
|
||||
@@ -7,14 +7,14 @@ export class Rating extends Model {
|
||||
|
||||
@ForeignKey(() => Account)
|
||||
@Column
|
||||
accountId: Number
|
||||
accountId: number
|
||||
|
||||
@Column
|
||||
rating: Number
|
||||
rating: number
|
||||
|
||||
@ForeignKey(() => Band)
|
||||
@Column
|
||||
bandId: Number
|
||||
bandId: number
|
||||
|
||||
|
||||
// Relations
|
||||
|
||||
@@ -4,26 +4,26 @@ import { ExerciseGroup } from "./exerciseGroup.model";
|
||||
@Table({ timestamps: false })
|
||||
export class Exercise extends Model {
|
||||
@Column
|
||||
nameDe: String
|
||||
nameDe: string
|
||||
|
||||
@Column
|
||||
nameEn: String
|
||||
nameEn: string
|
||||
|
||||
@Column
|
||||
exerciseNr: Number
|
||||
exerciseNr: number
|
||||
|
||||
@Column
|
||||
descriptionDe: String
|
||||
descriptionDe: string
|
||||
|
||||
@Column
|
||||
descriptionEn: String
|
||||
descriptionEn: string
|
||||
|
||||
@Column
|
||||
solved: Boolean
|
||||
solved: boolean
|
||||
|
||||
@ForeignKey(() => ExerciseGroup)
|
||||
@Column
|
||||
exerciseGroupId: Number
|
||||
exerciseGroupId: number
|
||||
|
||||
|
||||
// Relations
|
||||
|
||||
@@ -4,13 +4,13 @@ import { Exercise } from "./exercise.model";
|
||||
@Table({ timestamps: false })
|
||||
export class ExerciseGroup extends Model {
|
||||
@Column
|
||||
nameDe: String
|
||||
nameDe: string
|
||||
|
||||
@Column
|
||||
nameEn: String
|
||||
nameEn: string
|
||||
|
||||
@Column
|
||||
groupNr: Number
|
||||
groupNr: number
|
||||
|
||||
|
||||
// Relations
|
||||
|
||||
@@ -4,10 +4,10 @@ import { Location } from "./location.model";
|
||||
@Table({ timestamps: false })
|
||||
export class City extends Model {
|
||||
@Column
|
||||
name: String
|
||||
name: string
|
||||
|
||||
@Column
|
||||
country: String
|
||||
country: string
|
||||
|
||||
|
||||
// Relations
|
||||
|
||||
@@ -9,20 +9,20 @@ export class Location extends Model {
|
||||
urlName: string
|
||||
|
||||
@Column
|
||||
name: String
|
||||
name: string
|
||||
|
||||
@Column
|
||||
address: String
|
||||
address: string
|
||||
|
||||
@ForeignKey(() => City)
|
||||
@Column
|
||||
cityId: Number
|
||||
cityId: number
|
||||
|
||||
@Column
|
||||
imageIndoor: String
|
||||
imageIndoor: string
|
||||
|
||||
@Column
|
||||
imageOutdoor: String
|
||||
imageOutdoor: string
|
||||
|
||||
/**
|
||||
* Layout identifier of the location
|
||||
@@ -31,7 +31,7 @@ export class Location extends Model {
|
||||
* 3 = Stage in the middle of the stay area, seat places all around
|
||||
*/
|
||||
@Column
|
||||
layout: Number
|
||||
layout: number
|
||||
|
||||
|
||||
// Relations
|
||||
|
||||
@@ -9,7 +9,7 @@ export class Seat extends Model {
|
||||
|
||||
@ForeignKey(() => SeatRow)
|
||||
@Column
|
||||
seatRowId: Number
|
||||
seatRowId: number
|
||||
|
||||
|
||||
// Relations
|
||||
|
||||
@@ -5,21 +5,21 @@ import { SeatRow } from "./seatRow.model";
|
||||
@Table({ timestamps: false })
|
||||
export class SeatGroup extends Model {
|
||||
@Column
|
||||
name: String
|
||||
name: string
|
||||
|
||||
@Column
|
||||
surcharge: Number
|
||||
surcharge: number
|
||||
|
||||
@Column
|
||||
capacity: Number
|
||||
capacity: number
|
||||
|
||||
@Default(false)
|
||||
@Column
|
||||
standingArea: Boolean
|
||||
standingArea: boolean
|
||||
|
||||
@ForeignKey(() => Location)
|
||||
@Column
|
||||
locationId: Number
|
||||
locationId: number
|
||||
|
||||
|
||||
// Relations
|
||||
|
||||
Reference in New Issue
Block a user