Skip to content

Commit 307e368

Browse files
committed
Create new Booking entity
1 parent 138b5bf commit 307e368

File tree

3 files changed

+60
-1
lines changed

3 files changed

+60
-1
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
public import Foundation
2+
public import CoreData
3+
4+
public typealias BookingCoreDataClassSet = NSSet
5+
6+
@objc(Booking)
7+
public class Booking: NSManagedObject {
8+
9+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
public import Foundation
2+
public import CoreData
3+
4+
5+
public typealias BookingCoreDataPropertiesSet = NSSet
6+
7+
extension Booking {
8+
9+
@nonobjc public class func fetchRequest() -> NSFetchRequest<Booking> {
10+
return NSFetchRequest<Booking>(entityName: "Booking")
11+
}
12+
13+
@NSManaged public var bookingID: Int64
14+
@NSManaged public var siteID: Int64
15+
@NSManaged public var parentID: Int64
16+
@NSManaged public var productID: Int64
17+
@NSManaged public var orderID: Int64
18+
@NSManaged public var resourceID: Int64
19+
@NSManaged public var allDay: Bool
20+
@NSManaged public var cost: String?
21+
@NSManaged public var customerID: Int64
22+
@NSManaged public var dateCreated: Date?
23+
@NSManaged public var dateModified: Date?
24+
@NSManaged public var endDate: Date?
25+
@NSManaged public var startDate: Date?
26+
@NSManaged public var googleCalendarEventID: String?
27+
@NSManaged public var orderItemID: Int64
28+
@NSManaged public var statusKey: String?
29+
@NSManaged public var localTimezone: String?
30+
31+
}

Modules/Sources/Storage/Resources/WooCommerce.xcdatamodeld/Model 127.xcdatamodel/contents

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2-
<model type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="23788.4" systemVersion="24G90" minimumToolsVersion="Automatic" sourceLanguage="Swift" userDefinedModelVersionIdentifier="">
2+
<model type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="24299" systemVersion="24G90" minimumToolsVersion="Automatic" sourceLanguage="Swift" userDefinedModelVersionIdentifier="">
33
<entity name="Account" representedClassName="Account" syncable="YES">
44
<attribute name="displayName" optional="YES" attributeType="String"/>
55
<attribute name="email" optional="YES" attributeType="String"/>
@@ -62,6 +62,25 @@
6262
<attribute name="locale" attributeType="String" defaultValueString=""/>
6363
<attribute name="name" attributeType="String" defaultValueString=""/>
6464
</entity>
65+
<entity name="Booking" representedClassName="Booking" syncable="YES">
66+
<attribute name="allDay" attributeType="Boolean" defaultValueString="NO" usesScalarValueType="YES"/>
67+
<attribute name="bookingID" attributeType="Integer 64" defaultValueString="0" usesScalarValueType="YES"/>
68+
<attribute name="cost" attributeType="String" defaultValueString=""/>
69+
<attribute name="customerID" optional="YES" attributeType="Integer 64" defaultValueString="0" usesScalarValueType="YES"/>
70+
<attribute name="dateCreated" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
71+
<attribute name="dateModified" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
72+
<attribute name="endDate" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
73+
<attribute name="googleCalendarEventID" optional="YES" attributeType="String"/>
74+
<attribute name="localTimezone" attributeType="String" defaultValueString=""/>
75+
<attribute name="orderID" attributeType="Integer 64" defaultValueString="0" usesScalarValueType="YES"/>
76+
<attribute name="orderItemID" optional="YES" attributeType="Integer 64" defaultValueString="0" usesScalarValueType="YES"/>
77+
<attribute name="parentID" optional="YES" attributeType="Integer 64" defaultValueString="0" usesScalarValueType="YES"/>
78+
<attribute name="productID" attributeType="Integer 64" defaultValueString="0" usesScalarValueType="YES"/>
79+
<attribute name="resourceID" optional="YES" attributeType="Integer 64" defaultValueString="0" usesScalarValueType="YES"/>
80+
<attribute name="siteID" attributeType="Integer 64" defaultValueString="0" usesScalarValueType="YES"/>
81+
<attribute name="startDate" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
82+
<attribute name="statusKey" attributeType="String" defaultValueString=""/>
83+
</entity>
6584
<entity name="Country" representedClassName="Country" syncable="YES">
6685
<attribute name="code" attributeType="String"/>
6786
<attribute name="name" attributeType="String"/>

0 commit comments

Comments
 (0)