Models
Stuff about Things
Customer & Address
import { Entity, Key } from '@briebug/ngrx-auto-entity';
@Entity({
modelName: 'Customer',
uriName: 'customers'
})
export class Customer {
@Key id?: number;
name: string;
title: string;
email: string;
handles?: {
twitter?: string;
facebook?: string;
}
addressId?: number;
}import { Entity, Key } from '@briebug/ngrx-auto-entity';
@Entity({
modelName: 'Address',
uriName: 'addresses'
})
export class Address {
@Key id?: number;
street1: string;
street2: string;
city: string;
state: string;
zip: string;
}Order & Line Item
Last updated