Streamlyne / Cocoa-SDK

Streamlyne API for Cocoa Developers
https://github.com/Streamlyne/Cocoa-SDK
2 stars 1 forks source link

CRUD for Assets #4

Closed Glavin001 closed 10 years ago

Glavin001 commented 10 years ago
Glavin001 commented 10 years ago

Domain model at https://github.com/Streamlyne/api-server/blob/develop/slapi/model.py#L118-L135

class Asset(Document):
    '''
    '''
    name = StringField(required=True, unique=True)
    description = StringField()
    location = StringField()

    component_of = StringField()
    model_number = StringField()  # More than just numbers
    serial_number = StringField()  # Some have - inbetween numbers
    mfg = StringField()
    cost_center = StringField()  # Might not need
    equipment_status = StringField()

    #attributes = ListField(ReferenceField(Attribute))
    attributes = ListField(ObjectIdField())

    isolation_collections = ListField(EmbeddedDocumentField(IsolationCollection))
Glavin001 commented 10 years ago

Blocked by #8.

Glavin001 commented 10 years ago

The properties for this model are all in Core Data now and any additional CRUD features will be implemented by #10 and #7 and consequently apply to enhancing this.