.
This commit is contained in:
parent
f12967fbb9
commit
af8037e67b
@ -61,7 +61,7 @@ class DealerMapper
|
||||
return {
|
||||
id: source.id.toPrimitive(),
|
||||
user_id: source.user_id.toPrimitive(),
|
||||
//contact_id: undefined,
|
||||
//id_contact: undefined,
|
||||
currency_code: source.currency.toPrimitive(),
|
||||
//logo: "",
|
||||
name: source.name.toPrimitive(),
|
||||
|
||||
@ -46,7 +46,7 @@ export class Dealer_Model extends Model<
|
||||
}
|
||||
|
||||
declare id: string;
|
||||
declare contact_id?: CreationOptional<string | null>;
|
||||
declare id_contact?: CreationOptional<string | null>;
|
||||
declare name: CreationOptional<string>;
|
||||
declare contact_information: CreationOptional<string>;
|
||||
declare default_payment_method: CreationOptional<string>;
|
||||
@ -71,7 +71,7 @@ export default (sequelize: Sequelize) => {
|
||||
primaryKey: true,
|
||||
},
|
||||
|
||||
contact_id: {
|
||||
id_contact: {
|
||||
type: DataTypes.BIGINT().UNSIGNED,
|
||||
allowNull: true,
|
||||
},
|
||||
@ -128,7 +128,7 @@ export default (sequelize: Sequelize) => {
|
||||
deletedAt: "deleted_at",
|
||||
|
||||
indexes: [
|
||||
{ name: "contact_id_idx", fields: ["contact_id"] },
|
||||
{ name: "id_contact_idx", fields: ["id_contact"] },
|
||||
{ name: "status_idx", fields: ["status"] },
|
||||
],
|
||||
|
||||
@ -136,7 +136,7 @@ export default (sequelize: Sequelize) => {
|
||||
|
||||
defaultScope: {
|
||||
attributes: {
|
||||
exclude: ["contact_id"],
|
||||
exclude: ["id_contact"],
|
||||
},
|
||||
},
|
||||
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 4.4 KiB |
Loading…
Reference in New Issue
Block a user