-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from sahrohit/develop
Develop
- Loading branch information
Showing
75 changed files
with
1,333 additions
and
413 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import { Field, Int, ObjectType } from "type-graphql"; | ||
import { | ||
Entity, | ||
PrimaryGeneratedColumn, | ||
CreateDateColumn, | ||
UpdateDateColumn, | ||
BaseEntity, | ||
Column, | ||
OneToMany, | ||
} from "typeorm"; | ||
import { OrderDetail } from "./OrderDetail"; | ||
|
||
@ObjectType() | ||
@Entity() | ||
export class ShippingMethod extends BaseEntity { | ||
@Field(() => Int) | ||
@PrimaryGeneratedColumn() | ||
id!: number; | ||
|
||
@Field() | ||
@Column() | ||
name!: string; | ||
|
||
@Field(() => Int) | ||
@Column() | ||
price!: number; | ||
|
||
@Field(() => Int) | ||
@Column() | ||
dispatch_in!: number; | ||
|
||
@OneToMany(() => OrderDetail, (orderdetails) => orderdetails.address) | ||
orderdetails!: OrderDetail[]; | ||
|
||
@Field(() => String) | ||
@CreateDateColumn() | ||
created_at = new Date(); | ||
|
||
@Field(() => String) | ||
@UpdateDateColumn() | ||
updated_at = new Date(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
import { Field, Int, ObjectType } from "type-graphql"; | ||
import { | ||
Entity, | ||
PrimaryGeneratedColumn, | ||
Column, | ||
CreateDateColumn, | ||
UpdateDateColumn, | ||
BaseEntity, | ||
ManyToOne, | ||
} from "typeorm"; | ||
import { User } from "./User"; | ||
|
||
@ObjectType() | ||
@Entity() | ||
export class Tenant extends BaseEntity { | ||
@Field(() => Int) | ||
@PrimaryGeneratedColumn() | ||
id!: number; | ||
|
||
@Field() | ||
@Column() | ||
name!: string; | ||
|
||
@Field() | ||
@Column() | ||
desc!: string; | ||
|
||
@Field() | ||
@Column({ | ||
nullable: true, | ||
default: | ||
"https://tailwindcss.com/_next/static/media/tailwindcss-mark.3c5441fc7a190fb1800d4a5c7f07ba4b1345a9c8.svg", | ||
}) | ||
logo?: string; | ||
|
||
@Field() | ||
@Column({ | ||
nullable: true, | ||
default: "Popins", | ||
}) | ||
font?: string; | ||
|
||
@Field() | ||
@Column() | ||
subdomain!: string; | ||
|
||
@Field() | ||
@Column({ nullable: true }) | ||
customDomain?: string; | ||
|
||
@Field() | ||
@Column({ | ||
default: false, | ||
}) | ||
defaultForPreview!: boolean; | ||
|
||
@Field() | ||
@Column() | ||
userId!: number; | ||
|
||
@ManyToOne(() => User, (user) => user.addresses) | ||
user!: User; | ||
|
||
@Field(() => String) | ||
@CreateDateColumn() | ||
created_at = new Date(); | ||
|
||
@Field(() => String) | ||
@UpdateDateColumn() | ||
updated_at = new Date(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
5d33014
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
ecommerce-admin-client – ./apps/admin
ecommerce-admin-client-git-main-sahrohit.vercel.app
ecommerce-admin-client-sahrohit.vercel.app
ecommerce-admin-client.vercel.app
5d33014
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
ecommerce-storefront-client – ./apps/storefront
ecommerce-storefront-client-sahrohit.vercel.app
hamropasal.vercel.app
ecommerce-storefront-client-git-main-sahrohit.vercel.app
rudejellyfish.live
www.rudejellyfish.live