Initial commit: backend, storefront, vendor-panel added

This commit is contained in:
2025-08-01 11:05:32 +08:00
commit 08174125d2
2958 changed files with 310810 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
import { model } from "@medusajs/framework/utils";
import { StoreStatus } from "@mercurjs/framework";
import { MemberInvite } from "./invite";
import { Member } from "./member";
import { SellerOnboarding } from "./onboarding";
export const Seller = model.define("seller", {
id: model.id({ prefix: "sel" }).primaryKey(),
store_status: model.enum(StoreStatus).default(StoreStatus.ACTIVE),
name: model.text().searchable(),
handle: model.text().unique(),
description: model.text().searchable().nullable(),
photo: model.text().nullable(),
email: model.text().nullable(),
phone: model.text().nullable(),
address_line: model.text().nullable(),
city: model.text().nullable(),
state: model.text().nullable(),
postal_code: model.text().nullable(),
country_code: model.text().nullable(),
tax_id: model.text().nullable(),
members: model.hasMany(() => Member),
invites: model.hasMany(() => MemberInvite),
onboarding: model.hasOne(() => SellerOnboarding).nullable(),
});