feat: customer page
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
part of '../customer.dart';
|
||||
|
||||
@freezed
|
||||
class Customer with _$Customer {
|
||||
const factory Customer({
|
||||
required String id,
|
||||
required String organizationId,
|
||||
required String name,
|
||||
required String email,
|
||||
required String phone,
|
||||
required String address,
|
||||
required bool isDefault,
|
||||
required bool isActive,
|
||||
required Map<String, dynamic> metadata,
|
||||
required String createdAt,
|
||||
required String updatedAt,
|
||||
}) = _Customer;
|
||||
|
||||
factory Customer.empty() => Customer(
|
||||
id: '',
|
||||
organizationId: '',
|
||||
name: '',
|
||||
email: '',
|
||||
phone: '',
|
||||
address: '',
|
||||
isDefault: false,
|
||||
isActive: false,
|
||||
metadata: const {},
|
||||
createdAt: '',
|
||||
updatedAt: '',
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user